| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-goods_collects-goods_collects"],{"0127":function(t,e,o){var i=o("c86c");e=i(!1),e.push([t.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-444de25e]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.goods[data-v-444de25e]{display:flex;border-radius:7px;background-color:#fff;overflow:hidden}.goods--square[data-v-444de25e]{flex-direction:column;width:%?347?%;height:%?510?%}.goods--square .goods-images[data-v-444de25e]{width:%?345?%;height:%?345?%}.goods--square .goods-content[data-v-444de25e]{padding:%?14?%}.goods--rectangle[data-v-444de25e]{flex-direction:row;align-items:center;height:%?250?%;padding:%?20?%}.goods--rectangle .goods-images[data-v-444de25e]{box-sizing:border-box;width:calc(%?250?% - 2 * %?20?%);height:calc(%?250?% - 2 * %?20?%);border-radius:7px;overflow:hidden;position:relative}.goods--rectangle .goods-images .goods-status[data-v-444de25e]{position:absolute;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);color:#fff;font-size:%?24?%;text-align:center}.goods--rectangle .goods-content[data-v-444de25e]{margin-left:%?20?%}.goods-content[data-v-444de25e]{box-sizing:border-box;flex:1;display:flex;flex-direction:column;justify-content:space-between;height:100%}.goods-content .goods-other[data-v-444de25e]{flex:1;display:flex;flex-direction:column;justify-content:flex-end}.goods-name[data-v-444de25e]{font-size:%?28?%;color:#333;overflow:hidden}.invalid[data-v-444de25e]{opacity:.7}",""]),t.exports=e},"02a1":function(t,e,o){"use strict";var i=o("dad1"),n=o.n(i);n.a},"065f":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"price-container",class:t.themeName},[o("v-uni-view",{class:["price-wrap",{"price-wrap--disabled":t.lineThrough}],style:{color:t.color}},[o("v-uni-view",{staticClass:"fix-pre",style:{fontSize:t.minorSize}},[t._t("prefix",[t._v(t._s(t.prefix))])],2),o("v-uni-view",{staticClass:"content",style:{"font-weight":t.fontWeight}},[o("v-uni-text",{staticClass:"integer",style:{fontSize:t.mainSize}},[t._v(t._s(t.integer))]),o("v-uni-text",{staticClass:"decimals",style:{fontSize:t.minorSize}},[t._v(t._s(t.decimals))])],1),o("v-uni-view",{staticClass:"fix-suf",style:{fontSize:t.minorSize}},[t._t("suffix",[t._v(t._s(t.suffix))])],2)],1)],1)},n=[]},"106a":function(t,e,o){"use strict";o.r(e);var i=o("8f6a"),n=o("1296");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);o("98ff");var r=o("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"68d67c72",null,!1,i["a"],void 0);e["default"]=s.exports},1159:function(t,e,o){var i=o("ebe7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("967d").default;n("5b3c8380",i,!0,{sourceMap:!1,shadowMode:!1})},1266:function(t,e,o){"use strict";o.r(e);var i=o("065f"),n=o("c592");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);o("afc2");var r=o("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"38923d38",null,!1,i["a"],void 0);e["default"]=s.exports},1296:function(t,e,o){"use strict";o.r(e);var i=o("5961"),n=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},"23d8":function(t,e,o){"use strict";o.r(e);var i=o("502e"),n=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},"30a0":function(t,e,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.apicheckCanBuy=e.apiSearchHistoryClear=e.apiSearchHistory=e.apiGoodsTeamPlace=e.apiGoodsTeamList=e.apiGoodsTeamHistory=e.apiGoodsTeamDetail=e.apiGoodsMarketing=e.apiGoodsLists=e.apiGoodsDetail=e.apiGoodsCommentList=e.apiGoodsCommentCategory=e.apiGoodsCollectList=e.apiGoodsCollect=e.apiGoodsCategory=e.apiBrandLists=void 0;var n=i(o("bd92"));e.apiGoodsLists=function(t){return n.default.get("goods/lists",{params:t})};e.apiGoodsDetail=function(t){return n.default.get("goods/detail",{params:t})};e.apiSearchHistory=function(){return n.default.get("goods/searchRecord")};e.apiSearchHistoryClear=function(){return n.default.post("goods/clearRecord")};e.apiGoodsCategory=function(){return n.default.get("goodsCategory/lists",{params:{page_no:1,page_size:100}})};e.apiGoodsMarketing=function(t){return n.default.get("goods/goodsMarketing",{params:t})};e.apiGoodsCollect=function(t){return n.default.post("collect/handleCollectgoods",t)};e.apiGoodsCollectList=function(t){return n.default.get("collect/lists",{params:t})};e.apiGoodsCommentCategory=function(t){return n.default.get("goods_comment/commentCategory",{params:t})};e.apiGoodsCommentList=function(t){return n.default.get("goods_comment/lists",{params:t})};e.apiGoodsTeamList=function(t){return n.default.get("team/lists",{params:t})};e.apiGoodsTeamDetail=function(t){return n.default.get("team/detail",{params:t})};e.apiGoodsTeamPlace=function(t){return n.default.post("team/kaituan",t)};e.apiGoodsTeamHistory=function(t){return n.default.get("team/record",{params:t})};e.apiBrandLists=function(t){return n.default.get("goods_brand/lists",{params:t})};e.apicheckCanBuy=function(t){return n.default.get("goods/checkCanBuy",{params:t})}},3737:function(t,e,o){"use strict";var i=o("7bed"),n=o.n(i);n.a},"3ff6":function(t,e,o){"use strict";o.r(e);var i=o("43ef"),n=o("6379");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);var r=o("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},"43ef":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return i}));var i={mescrollUni:o("01b6").default},n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("mescroll-uni",{ref:"mescrollRef",attrs:{top:t.top,height:t.height,up:t.upOption,down:t.downOption,bottom:t.bottom},on:{init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)},down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)}}},[t._t("default")],2)},a=[]},"45b8":function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("64aa");var i={name:"GoodsCard",props:{shape:{type:String,default:"square"},image:{type:String,default:""},name:{type:String,default:""},price:{type:[String,Number],default:0},minPrice:{type:[String,Number,Boolean],default:!1},containStyle:{type:Object,default:function(){}},imageStyle:{type:Object,default:function(){}},disableMsg:{type:String,default:""}},computed:{TipMsg:function(){switch(this.disableMsg){case"商品库存不足":return"库存不足";case"商品不能购买":return"商品下架";case"超过购买限制":return"不可购买"}}}};e.default=i},"4daa":function(t,e,o){"use strict";o.r(e);var i=o("6f28"),n=o("70e0");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);o("3737");var r=o("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"444de25e",null,!1,i["a"],void 0);e["default"]=s.exports},"502e":function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("64aa");var i={name:"u-swipe-action",props:{index:{type:[Number,String],default:""},btnWidth:{type:[String,Number],default:180},disabled:{type:Boolean,default:!1},show:{type:Boolean,default:!1},bgColor:{type:String,default:"#ffffff"},vibrateShort:{type:Boolean,default:!1},options:{type:Array,default:function(){return[]}}},watch:{show:{immediate:!0,handler:function(t,e){t?this.open():this.close()}}},data:function(){return{moveX:0,scrollX:0,status:!1,movableAreaWidth:0,elId:this.$u.guid(),showBtn:!1}},computed:{movableViewWidth:function(){return this.movableAreaWidth+this.allBtnWidth+"px"},innerBtnWidth:function(){return uni.upx2px(this.btnWidth)},allBtnWidth:function(){return uni.upx2px(this.btnWidth)*this.options.length},btnStyle:function(){var t=this;return function(e){return e.width=t.btnWidth+"rpx",e}}},mounted:function(){this.getActionRect()},methods:{btnClick:function(t){this.status=!1,this.$emit("click",this.index,t)},change:function(t){this.scrollX=t.detail.x},close:function(){this.moveX=0,this.status=!1},open:function(){this.disabled||(this.moveX=-this.allBtnWidth,this.status=!0)},touchend:function(){this.moveX=this.scrollX,this.$nextTick((function(){var t=this;0==this.status?this.scrollX<=-this.allBtnWidth/4?(this.moveX=-this.allBtnWidth,this.status=!0,this.emitOpenEvent(),this.vibrateShort&&uni.vibrateShort()):(this.moveX=0,this.status=!1,this.emitCloseEvent()):this.scrollX>3*-this.allBtnWidth/4?(this.moveX=0,this.$nextTick((function(){t.moveX=101})),this.status=!1,this.emitCloseEvent()):(this.moveX=-this.allBtnWidth,this.status=!0,this.emitOpenEvent())}))},emitOpenEvent:function(){this.$emit("open",this.index)},emitCloseEvent:function(){this.$emit("close",this.index)},touchstart:function(){},getActionRect:function(){var t=this;this.$uGetRect(".u-swipe-action").then((function(e){t.movableAreaWidth=e.width,t.$nextTick((function(){t.showBtn=!0}))}))},contentClick:function(){1==this.status&&(this.status="close",this.moveX=0),this.$emit("content-click",this.index)}}};e.default=i},"566d":function(t,e,o){"use strict";o.r(e);var i=o("907d"),n=o("d2f6");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);o("02a1");var r=o("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"29ea2fe6",null,!1,i["a"],void 0);e["default"]=s.exports},"574e":function(t,e,o){"use strict";o.r(e);var i=o("6f0c"),n=o("23d8");for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);o("94c2");var r=o("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"3295b596",null,!1,i["a"],void 0);e["default"]=s.exports},5961:function(t,e,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(o("b7c7"));o("bf0f"),o("2797"),o("c223"),o("aa9c"),o("fd3c");var a=o("30a0"),r=null,s={name:"GoodsCollects",data:function(){return{collectList:[],swipeOptions:[{text:"删除",style:{backgroundColor:"#FF2C3C"}}],upOpt:{noMoreSize:10,empty:{icon:"/static/images/empty/collect.png",tip:"暂无收藏~",fixed:!0}}}},mounted:function(){r=this.$refs["collect"]},methods:{upCallback:function(t){var e=this,o=t.num,i=t.size;(0,a.apiGoodsCollectList)({page_no:o,page_size:i}).then((function(t){var i=t.lists,a=(t.page_size,t.count);i.forEach((function(t){return t.show=!1})),1===o&&(e.collectList=[]),e.collectList=[].concat((0,n.default)(e.collectList),(0,n.default)(i)),r.endSuccess(i.length,a)})).catch((function(t){r.endBySize()}))},goGoodsDetail:function(t){this.$Router.push({path:"/pages/goods_detail/goods_detail",query:{id:t}})},swipeClick:function(t,e){if(0==e){var o=this.collectList[t];o.show=!1,this.handleCollectDel(o.goods_id)}},swipeOpen:function(t){var e=this;this.collectList[t].show=!0,this.collectList.map((function(o,i){t!=i&&(e.collectList[i].show=!1)}))},handleCollectDel:function(t){(0,a.apiGoodsCollect)({goods_id:t,is_collect:0}).then((function(){r.downCallback()})).catch((function(t){console.log(t)}))}}};e.default=s},"5cd1":function(t,e,o){var i=o("c86c");e=i(!1),e.push([t.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-29ea2fe6]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.u-image[data-v-29ea2fe6]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-29ea2fe6]{width:100%;height:100%}.u-image__loading[data-v-29ea2fe6], .u-image__error[data-v-29ea2fe6]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#f3f4f6;color:#909399;font-size:%?46?%}",""]),t.exports=e},"5f45":function(t,e,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(o("2bc2")),a={name:"MescrollContain",mixins:[n.default],props:{height:{type:String},top:{type:String},bottom:{type:String},upOption:{type:Object,default:function(){return{}}},downOption:{type:Object,default:function(){return{}}}},methods:{downCallback:function(){this.mescroll&&this.mescroll.resetUpScroll()},upCallback:function(t){var e=t.num,o=t.size;this.$emit("upcallback",{num:e,size:o})},endErr:function(){this.mescroll.endErr()},endBySize:function(t,e){this.mescroll.endBySize(t,e)},endSuccess:function(t,e){this.mescroll.endBySize(t,e)}}};e.default=a},6379:function(t,e,o){"use strict";o.r(e);var i=o("5f45"),n=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},"6f0c":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{},[o("v-uni-movable-area",{staticClass:"u-swipe-action",style:{backgroundColor:t.bgColor}},[o("v-uni-movable-view",{staticClass:"u-swipe-view",style:{width:t.movableViewWidth?t.movableViewWidth:"100%"},attrs:{direction:"horizontal",disabled:t.disabled,x:t.moveX},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchend.apply(void 0,arguments)},touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchstart.apply(void 0,arguments)}}},[o("v-uni-view",{staticClass:"u-swipe-content",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.contentClick.apply(void 0,arguments)}}},[t._t("default")],2),t._l(t.options,(function(e,i){return t.showBtn?o("v-uni-view",{key:i,staticClass:"u-swipe-del",style:[t.btnStyle(e.style)],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.btnClick(i)}}},[o("v-uni-view",{staticClass:"u-btn-text"},[t._v(t._s(e.text))])],1):t._e()}))],2)],1)],1)},n=[]},"6f28":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return i}));var i={uImage:o("566d").default,price:o("1266").default},n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{class:["goods",{"goods--square":"square"===t.shape},{"goods--rectangle":"rectangle"===t.shape},{invalid:t.disableMsg}],style:[t.containStyle]},[o("v-uni-view",{staticClass:"goods-images",style:[t.imageStyle]},[o("u-image",{attrs:{width:"100%",height:"100%",src:t.image,mode:"scaleToFill"}}),t.disableMsg?o("v-uni-view",{staticClass:"goods-status"},[t._v(t._s(t.TipMsg))]):t._e()],1),o("v-uni-view",{staticClass:"goods-content"},[o("v-uni-view",{staticClass:"goods-name line-2"},[t._t("name",[t._v(t._s(t.name))])],2),o("v-uni-view",{staticClass:"goods-other"},[t._t("default",[o("price",{attrs:{content:t.price,"main-size":"42rpx","minor-size":"36rpx",color:t.themeColor}},[o("v-uni-view",{attrs:{slot:"suffix"},slot:"suffix"},[o("price",{directives:[{name:"show",rawName:"v-show",value:Number(t.minPrice),expression:"Number(minPrice)"}],staticClass:"muted sm m-l-12",attrs:{"line-through":!0,content:t.minPrice}})],1)],1)])],2)],1)],1)},a=[]},"70e0":function(t,e,o){"use strict";o.r(e);var i=o("45b8"),n=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},"7bed":function(t,e,o){var i=o("0127");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("967d").default;n("29c5f229",i,!0,{sourceMap:!1,shadowMode:!1})},"7d5b":function(t,e,o){var i=o("94a4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("967d").default;n("4bb2155c",i,!0,{sourceMap:!1,shadowMode:!1})},"84e3":function(t,e,o){var i=o("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/** S Font\'s size **/\n/** E Font\'s size **/[data-v-38923d38]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.price-container[data-v-38923d38]{display:inline-block}.price-wrap[data-v-38923d38]{display:flex;align-items:baseline}.price-wrap--disabled[data-v-38923d38]{position:relative}.price-wrap--disabled[data-v-38923d38]::before{position:absolute;left:0;top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:block;content:"";height:.05em;background-color:currentColor}',""]),t.exports=e},"8f6a":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return i}));var i={mescrollContain:o("3ff6").default,uSwipeAction:o("574e").default,goodsCard:o("4daa").default,price:o("1266").default},n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"goods-collects",class:t.themeName},[o("mescroll-contain",{ref:"collect",attrs:{top:"20rpx","up-option":t.upOpt},on:{upcallback:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)}}},[o("v-uni-view",t._l(t.collectList,(function(e,i){return o("v-uni-view",{key:e.goods_id,staticClass:"collect"},[o("u-swipe-action",{key:e.goods_id,staticStyle:{width:"100%"},attrs:{show:e.show,index:i,options:t.swipeOptions},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.swipeClick.apply(void 0,arguments)},open:function(e){arguments[0]=e=t.$handleEvent(e),t.swipeOpen.apply(void 0,arguments)}}},[o("goods-card",{attrs:{shape:"rectangle",name:e.name,image:e.image,"contain-style":{"border-raius":0,height:"200rpx"},"image-style":{width:"160rpx",height:"160rpx"}}},[o("v-uni-text",{staticClass:"muted xs skuline"},[t._v(t._s(e.spec_value_str))]),o("v-uni-view",{staticClass:"m-t-10 flex row-between"},[o("price",{attrs:{content:e.min_price,mainSize:"32rpx",minorSize:"24rpx",color:t.themeColor}}),e.status?[o("v-uni-view",{staticClass:"collect-button collect-button--normal",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.goGoodsDetail(e.goods_id)}}},[t._v("去购买")])]:[o("v-uni-view",{staticClass:"collect-button collect-button--muted"},[t._v("已失效")])]],2)],1)],1)],1)})),1)],1)],1)},a=[]},"907d":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return i}));var i={uIcon:o("1340").default},n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"u-image",style:[t.wrapStyle,t.backgroundStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t.isError?t._e():o("v-uni-image",{staticClass:"u-image__image",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)},attrs:{src:t.src,mode:t.mode,"lazy-load":t.lazyLoad,"show-menu-by-longpress":t.showMenuByLongpress},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.onErrorHandler.apply(void 0,arguments)},load:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadHandler.apply(void 0,arguments)}}}),t.showLoading&&t.loading?o("v-uni-view",{staticClass:"u-image__loading",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius),backgroundColor:this.bgColor}},[t.$slots.loading?t._t("loading"):o("u-icon",{attrs:{name:t.loadingIcon,width:t.width,height:t.height}})],2):t._e(),t.showError&&t.isError&&!t.loading?o("v-uni-view",{staticClass:"u-image__error",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)}},[t.$slots.error?t._t("error"):o("u-icon",{attrs:{name:t.errorIcon,width:t.width,height:t.height}})],2):t._e()],1)},a=[]},"94a4":function(t,e,o){var i=o("c86c");e=i(!1),e.push([t.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-3295b596]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.u-swipe-action[data-v-3295b596]{width:auto;height:auto;position:relative;overflow:hidden}.u-swipe-view[data-v-3295b596]{display:flex;flex-direction:row;height:auto;position:relative\n /* 这一句很关键,覆盖默认的绝对定位 */}.u-swipe-content[data-v-3295b596]{flex:1}.u-swipe-del[data-v-3295b596]{position:relative;font-size:%?30?%;color:#fff}.u-btn-text[data-v-3295b596]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}",""]),t.exports=e},"94c2":function(t,e,o){"use strict";var i=o("7d5b"),n=o.n(i);n.a},"98ff":function(t,e,o){"use strict";var i=o("1159"),n=o.n(i);n.a},a814:function(t,e,o){var i=o("84e3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("967d").default;n("5314be22",i,!0,{sourceMap:!1,shadowMode:!1})},afc2:function(t,e,o){"use strict";var i=o("a814"),n=o.n(i);n.a},c592:function(t,e,o){"use strict";o.r(e);var i=o("e9e8"),n=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},c5ec:function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("64aa");var i={name:"u-image",props:{src:{type:String,default:""},mode:{type:String,default:"aspectFill"},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"auto"},shape:{type:String,default:"square"},borderRadius:{type:[String,Number],default:0},lazyLoad:{type:Boolean,default:!0},showMenuByLongpress:{type:Boolean,default:!0},loadingIcon:{type:String,default:"photo"},errorIcon:{type:String,default:"error-circle"},showLoading:{type:Boolean,default:!0},showError:{type:Boolean,default:!0},fade:{type:Boolean,default:!0},webp:{type:Boolean,default:!1},duration:{type:[String,Number],default:500},bgColor:{type:String,default:"#f3f4f6"}},data:function(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{}}},watch:{src:{immediate:!0,handler:function(t){t?this.isError=!1:(this.isError=!0,this.loading=!1)}}},computed:{wrapStyle:function(){var t={};return t.width=this.$u.addUnit(this.width),t.height=this.$u.addUnit(this.height),t.borderRadius="circle"==this.shape?"50%":this.$u.addUnit(this.borderRadius),t.overflow=this.borderRadius>0?"hidden":"visible",this.fade&&(t.opacity=this.opacity,t.transition="opacity ".concat(Number(this.durationTime)/1e3,"s ease-in-out")),t}},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(t){this.loading=!1,this.isError=!0,this.$emit("error",t)},onLoadHandler:function(){var t=this;if(this.loading=!1,this.isError=!1,this.$emit("load"),!this.fade)return this.removeBgColor();this.opacity=0,this.durationTime=0,setTimeout((function(){t.durationTime=t.duration,t.opacity=1,setTimeout((function(){t.removeBgColor()}),t.durationTime)}),50)},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};e.default=i},d2f6:function(t,e,o){"use strict";o.r(e);var i=o("c5ec"),n=o.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},dad1:function(t,e,o){var i=o("5cd1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("967d").default;n("58fd5abf",i,!0,{sourceMap:!1,shadowMode:!1})},e9e8:function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("64aa");var i=o("7398"),n={name:"Price",props:{content:{type:String|Number,required:!0},prec:{type:Number,default:2},autoPrec:{type:Boolean,default:!0},color:{type:String,default:"inherit"},mainSize:{type:String,default:"inherit"},minorSize:{type:String,default:"inherit"},lineThrough:{type:Boolean,default:!1},fontWeight:{type:String|Number,default:"normal"},prefix:{type:String,default:"¥"},suffix:{type:String,default:""}},computed:{integer:function(){return(0,i.formatPrice)({price:this.content,take:"int"})},decimals:function(){var t=(0,i.formatPrice)({price:this.content,take:"dec",prec:this.prec});return t=t%10==0?t.substr(0,t.length-1):t,this.autoPrec?1*t?"."+t:"":this.prec?"."+t:""}}};e.default=n},ebe7:function(t,e,o){var i=o("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/** S Font\'s size **/\n/** E Font\'s size **/[data-v-68d67c72]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.collect[data-v-68d67c72]{position:relative}.collect[data-v-68d67c72]:nth-child(n + 2)::after{position:absolute;top:0;right:0;display:block;content:"";width:calc(100% - %?160?% - %?20?% * 2);border-top:1px solid #e5e5e5}.collect-button[data-v-68d67c72]{box-sizing:border-box;padding:%?8?% %?30?%;font-size:%?26?%;border-radius:60px}.collect-button--normal[data-v-68d67c72]{border-width:1px;border-style:solid}.red_theme .collect-button--normal[data-v-68d67c72]{color:#ff2c3c}.orange_theme .collect-button--normal[data-v-68d67c72]{color:#f7971e}.pink_theme .collect-button--normal[data-v-68d67c72]{color:#fa444d}.gold_theme .collect-button--normal[data-v-68d67c72]{color:#e0a356}.blue_theme .collect-button--normal[data-v-68d67c72]{color:#2f80ed}.green_theme .collect-button--normal[data-v-68d67c72]{color:#2ec840}.red_theme .collect-button--normal[data-v-68d67c72]{border-color:#ff2c3c}.orange_theme .collect-button--normal[data-v-68d67c72]{border-color:#f7971e}.pink_theme .collect-button--normal[data-v-68d67c72]{border-color:#fa444d}.gold_theme .collect-button--normal[data-v-68d67c72]{border-color:#e0a356}.blue_theme .collect-button--normal[data-v-68d67c72]{border-color:#2f80ed}.green_theme .collect-button--normal[data-v-68d67c72]{border-color:#2ec840}.collect-button--muted[data-v-68d67c72]{color:#666;background-color:#f2f2f2}',""]),t.exports=e}}]);
|