glhcp/server/public/mobile/static/js/bundle-pages-user_collectio...

1 line
24 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-user_collection-user_collection"],{"01a1":function(t,e,i){"use strict";i.r(e);var n=i("3121"),o=i("e59b");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("369c");var r,s=i("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"ccd8ff96",null,!1,n["a"],r);e["default"]=c.exports},"0c2a":function(t,e,i){"use strict";i.r(e);var n=i("98e9"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"0d00":function(t,e,i){"use strict";i.r(e);var n=i("aa0e"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"204b":function(t,e,i){"use strict";i.r(e);var n=i("37c9"),o=i("f787");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("f23e");var r,s=i("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"41974e18",null,!1,n["a"],r);e["default"]=c.exports},"259e":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={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=n},3121:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={mescrollUni:i("de4f").default,uSwipeAction:i("204b").default,uImage:i("7171").default,priceFormat:i("8312").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("mescroll-uni",{ref:"mescrollRef",attrs:{top:"80rpx",down:t.downOption,up:t.upOption},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)}}},[i("v-uni-view",{staticClass:"collection-list"},[i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==t.type,expression:"type == 1"}],staticClass:"goods-list p-t-20"},t._l(t.collectionList,(function(e,n){return i("v-uni-view",{key:e.id},[i("u-swipe-action",{attrs:{show:t.selectIndex==e.id,index:e.id,"bg-color":"transparent","btn-width":130,options:t.options},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickBtn.apply(void 0,arguments)},open:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"collection-item flex bg-white",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toGoods(e)}}},[i("u-image",{staticClass:"m-r-20",attrs:{width:"160rpx",height:"160rpx","border-radius":"6rpx","lazy-load":!0,src:e.image}}),i("v-uni-view",{staticClass:"info flex-1"},[i("v-uni-view",{staticClass:"flex row-between"},[i("v-uni-view",{staticClass:"name line-2"},[t._v(t._s(e.name))])],1),i("v-uni-view",{staticClass:"flex row-between m-t-20"},[i("price-format",{attrs:{"first-size":30,"second-size":26,price:e.min_price,weight:400,"subscript-size":30,color:t.colorConfig.primary}}),i("v-uni-view",{staticClass:"btn primary flex row-center br60 sm",class:{"valid muted":0==e.is_valid}},[t._v(t._s(0==e.is_valid?"已失效":"去购买"))])],1)],1)],1)],1)],1)})),1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2==t.type,expression:"type == 2"}],staticClass:"store-list"},t._l(t.collectionList,(function(e,n){return i("v-uni-view",{key:e.id,staticClass:"m-t-20"},[i("u-swipe-action",{attrs:{show:t.selectIndex==e.id,index:e.id,"bg-color":"transparent","btn-width":130,options:t.options},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickBtn.apply(void 0,arguments)},open:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"store-item bg-white flex",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toShop(e)}}},[i("u-image",{attrs:{width:"80rpx",height:"80rpx","border-radius":"60rpx",src:e.logo}}),i("v-uni-view",{staticClass:"flex-1 m-l-10"},[i("v-uni-view",{staticClass:"store-name lg"},[t._v(t._s(e.name)),1==e.type?i("v-uni-text",{staticClass:"xxs tag white m-l-10 line-1"},[t._v("自营")]):t._e()],1),i("v-uni-view",{staticClass:"m-t-12 xs muted flex row-between"},[t._v("主营行业:"+t._s(e.cid_desc)),0!=e.score?i("v-uni-view",{staticClass:"xs"},[t._v("评分:"),i("v-uni-text",{staticStyle:{color:"#ffa200"}},[t._v(t._s(e.score))])],1):t._e()],1)],1)],1)],1)],1)})),1)],1)],1)},a=[]},"369c":function(t,e,i){"use strict";var n=i("a3ef"),o=i.n(n);o.a},"37c9":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{},[i("v-uni-movable-area",{staticClass:"u-swipe-action",style:{backgroundColor:t.bgColor}},[i("v-uni-movable-view",{staticClass:"u-swipe-view",style:{width:t.showBtn?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)}}},[i("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,n){return t.showBtn?i("v-uni-view",{key:n,staticClass:"u-swipe-del",style:[t.btnStyle(e.style)],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.btnClick(n)}}},[i("v-uni-view",{staticClass:"u-btn-text"},[t._v(t._s(e.text))])],1):t._e()}))],2)],1)],1)},a=[]},"3bc8":function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var o=n(i("1da1")),a=i("e9dc"),r=i("b194"),s=n(i("9df2")),c=n(i("6f4a")),l={mixins:[s.default,c.default],name:"collection-list",props:{type:{type:[String,Number]}},data:function(){return{collectionList:[],downOption:{auto:!1},upOption:{auto:!1,noMoreSize:4,empty:{icon:"/static/images/goods_null.png",tip:"暂无收藏~",fixed:!0}},options:[{text:"取消收藏",style:{backgroundColor:"#FF2C3C"}}],selectIndex:-1}},methods:{upCallback:function(t){var e=this;return(0,o.default)(regeneratorRuntime.mark((function i(){var n,o,r,s,c,l,u,d,f;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.num,o=t.size,r=e.type,1!=r){i.next=9;break}return i.next=6,(0,a.getCollectGoods)({page_size:o,page_no:n});case 6:i.t0=i.sent,i.next=12;break;case 9:return i.next=11,(0,a.getCollectShop)({page_size:o,page_no:n});case 11:i.t0=i.sent;case 12:s=i.t0,c=s.data,l=s.code,1==l&&(u=c.lists,d=u.length,f=!!c.more,1==t.num&&(e.collectionList=[]),e.collectionList=e.collectionList.concat(u),e.mescroll.endSuccess(d,f));case 16:case"end":return i.stop()}}),i)})))()},toGoods:function(t){t.is_valid&&this.$Router.push({path:"/pages/goods_details/goods_details",query:{id:t.id}})},toShop:function(t){this.$Router.push({path:"/pages/store_index/store_index",query:{id:t.id}})},open:function(t){this.selectIndex=t},clickBtn:function(t){var e=this;return(0,o.default)(regeneratorRuntime.mark((function i(){var n,o,s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(1!=e.type){i.next=6;break}return i.next=3,(0,a.collectGoods)({goods_id:t});case 3:i.t0=i.sent,i.next=9;break;case 6:return i.next=8,(0,r.changeShopFollow)({shop_id:t});case 8:i.t0=i.sent;case 9:n=i.t0,o=n.code,n.data,s=n.msg,1==o&&(e.$toast({title:s}),e.downCallback());case 14:case"end":return i.stop()}}),i)})))()}}};e.default=l},"4ec2":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={tabs:i("a243").default,tab:i("201c").default,collectionList:i("01a1").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"user-collection"},[i("tabs",{attrs:{"is-scroll":!1,current:t.active},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onChange.apply(void 0,arguments)}}},[i("tab",{attrs:{name:"商品"}},[i("collection-list",{attrs:{type:1,i:0,index:t.active}})],1),i("tab",{attrs:{name:"店铺"}},[i("collection-list",{attrs:{type:2,i:1,index:t.active}})],1)],1)],1)},a=[]},"51b1":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-swipe-action[data-v-41974e18]{width:auto;height:auto;position:relative;overflow:hidden}.u-swipe-view[data-v-41974e18]{display:flex;flex-direction:row;height:auto;position:relative\n /* 这一句很关键,覆盖默认的绝对定位 */}.u-swipe-content[data-v-41974e18]{flex:1}.u-swipe-del[data-v-41974e18]{position:relative;font-size:%?30?%;color:#fff}.u-btn-text[data-v-41974e18]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}',""]),t.exports=e},"5a93":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".price-format[data-v-0a5a34e0]{font-family:Avenir,SourceHanSansCN,PingFang SC,Arial,Hiragino Sans GB,Microsoft YaHei,sans-serif}",""]),t.exports=e},"5c2f":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-image[data-v-5c6487b9]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-5c6487b9]{width:100%;height:100%}.u-image__loading[data-v-5c6487b9], .u-image__error[data-v-5c6487b9]{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},"660b":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uIcon:i("4569").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("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():i("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},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?i("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"):i("u-icon",{attrs:{name:t.loadingIcon,width:t.width,height:t.height}})],2):t._e(),t.showError&&t.isError&&!t.loading?i("v-uni-view",{staticClass:"u-image__error",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)}},[t.$slots.error?t._t("error"):i("u-icon",{attrs:{name:t.errorIcon,width:t.width,height:t.height}})],2):t._e()],1)},a=[]},"6f4a":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{i:Number,index:{type:Number,default:function(){return 0}}},data:function(){return{downOption:{auto:!1},upOption:{auto:!1},isInit:!1}},watch:{index:function(t){this.i!==t||this.isInit||(this.isInit=!0,this.mescroll&&this.mescroll.triggerDownScroll())}},methods:{mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var t=this.$refs.mescrollRef||this.$refs["mescrollRef"+this.i];t&&(this.mescroll=t.mescroll)}},mescrollInit:function(t){this.mescroll=t,this.mescrollInitByRef&&this.mescrollInitByRef(),this.i===this.index&&(this.isInit=!0,this.mescroll.triggerDownScroll())}}},o=n;e.default=o},7171:function(t,e,i){"use strict";i.r(e);var n=i("660b"),o=i("cb4c");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("7208");var r,s=i("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"5c6487b9",null,!1,n["a"],r);e["default"]=c.exports},7208:function(t,e,i){"use strict";var n=i("774a"),o=i.n(n);o.a},"774a":function(t,e,i){var n=i("5c2f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("28f9c44e",n,!0,{sourceMap:!1,shadowMode:!1})},"7eac":function(t,e,i){"use strict";var n=i("ab77"),o=i.n(n);o.a},8312:function(t,e,i){"use strict";i.r(e);var n=i("a126"),o=i("0d00");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("7eac");var r,s=i("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"0a5a34e0",null,!1,n["a"],r);e["default"]=c.exports},"93fa":function(t,e,i){"use strict";i.r(e);var n=i("4ec2"),o=i("0c2a");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);var r,s=i("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"29d6aea2",null,!1,n["a"],r);e["default"]=c.exports},"98e9":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{active:0}},methods:{onChange:function(t){this.active=t}}};e.default=n},a126:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-text",{class:(t.lineThrough?"line-through":"")+" price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?i("v-uni-text",{style:{"font-size":t.subscriptSize+"rpx","margin-right":"2rpx"}},[t._v("¥")]):t._e(),i("v-uni-text",{style:{"font-size":t.firstSize+"rpx","margin-right":"1rpx"}},[t._v(t._s(t.priceSlice.first))]),t.priceSlice.second?i("v-uni-text",{style:{"font-size":t.secondSize+"rpx"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()],1)},a=[]},a3ef:function(t,e,i){var n=i("e727");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("2968db18",n,!0,{sourceMap:!1,shadowMode:!1})},aa0e:function(t,e,i){"use strict";i("a9e3"),i("acd8"),i("ac1f"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:[String,Number],default:28},secondSize:{type:[String,Number],default:28},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:[String,Number],default:28},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&""!==t&&void 0!==t?(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e):this.priceSlice={first:0}}}};e.default=n},ab77:function(t,e,i){var n=i("5a93");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("0d47c85e",n,!0,{sourceMap:!1,shadowMode:!1})},b194:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getShopList=a,e.getShopCategory=r,e.getShopInfo=s,e.getShopGoodsCategory=c,e.changeShopFollow=l,e.shopApply=u,e.shopApplyRecord=d,e.shopApplyDetail=f,e.getTreaty=p,e.getShopService=h,e.getInvoiceSetting=v,e.apiInvoiceAdd=g,e.apiInvoiceEdit=m,e.apiInvoiceDetail=b,e.apiOrderInvoiceDetail=w;var o=n(i("b175"));i("357b");function a(t){return o.default.get("shop/getShopList",{params:t})}function r(){return o.default.get("shop_category/getList")}function s(t){return o.default.get("shop/getShopInfo",{params:t})}function c(t){return o.default.get("shop_goods_category/getShopGoodsCategory",{params:t})}function l(t){return o.default.post("shop_follow/changeStatus",t)}function u(t){return o.default.post("ShopApply/apply",t)}function d(t){return o.default.get("ShopApply/record",{params:t})}function f(t){return o.default.get("ShopApply/detail",{params:{id:t}})}function p(){return o.default.get("ShopApply/getTreaty")}function h(t){return o.default.get("setting/getShopCustomerService",{params:{shop_id:t}})}function v(t){return o.default.get("order_invoice/setting",{params:t})}function g(t){return o.default.post("order_invoice/add",t)}function m(t){return o.default.post("order_invoice/edit",t)}function b(t){return o.default.get("order_invoice/detail",{params:t})}function w(t){return o.default.get("order/invoice",{params:t})}},cb4c:function(t,e,i){"use strict";i.r(e);var n=i("259e"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},d4ac:function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={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(){var t=this;setTimeout((function(){t.getActionRect()}),100)},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,console.log(t.movableAreaWidth),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=n},e13e:function(t,e,i){var n=i("51b1");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("2437131f",n,!0,{sourceMap:!1,shadowMode:!1})},e59b:function(t,e,i){"use strict";i.r(e);var n=i("3bc8"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},e727:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.collection-list[data-v-ccd8ff96]{width:100%}.collection-list .goods-list .collection-item[data-v-ccd8ff96]{padding:%?20?%}.collection-list .goods-list .collection-item[data-v-ccd8ff96]:not(:last-of-type){border-bottom:1px solid #e5e5e5}.collection-list .goods-list .collection-item .btn[data-v-ccd8ff96]{width:%?148?%;height:%?52?%;border:1px solid #ff2c3c}.collection-list .goods-list .collection-item .btn.valid[data-v-ccd8ff96]{background-color:#f2f2f2;border-color:transparent}.collection-list .store-list[data-v-ccd8ff96]{margin:0 %?20?%}.collection-list .store-list .store-item[data-v-ccd8ff96]{padding:%?15?% %?20?%;border-radius:%?16?%}.collection-list .store-list .store-item .tag[data-v-ccd8ff96]{background:linear-gradient(267deg,#ff2c3c,#f52e99);border-radius:%?6?%;padding:0 %?9?%;vertical-align:%?5?%}',""]),t.exports=e},f23e:function(t,e,i){"use strict";var n=i("e13e"),o=i.n(n);o.a},f787:function(t,e,i){"use strict";i.r(e);var n=i("d4ac"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a}}]);