| 1 |
- require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle/pages/goods_collects/goods_collects"],{"106a":function(t,n,e){"use strict";e.r(n);var o=e("9072"),c=e("1296");for(var i in c)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(i);e("ed37");var l=e("828b"),a=Object(l["a"])(c["default"],o["b"],o["c"],!1,null,"aa859838",null,!1,o["a"],void 0);n["default"]=a.exports},1296:function(t,n,e){"use strict";e.r(n);var o=e("36cb"),c=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=c.a},"36cb":function(t,n,e){"use strict";var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=o(e("af34")),i=e("30a0"),l=null,a={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(){l=this.$refs["collect"]},methods:{upCallback:function(t){var n=this,e=t.num,o=t.size;(0,i.apiGoodsCollectList)({page_no:e,page_size:o}).then((function(t){var o=t.lists,i=(t.page_size,t.count);o.forEach((function(t){return t.show=!1})),1===e&&(n.collectList=[]),n.collectList=[].concat((0,c.default)(n.collectList),(0,c.default)(o)),l.endSuccess(o.length,i)})).catch((function(t){l.endBySize()}))},goGoodsDetail:function(t){this.$Router.push({path:"/pages/goods_detail/goods_detail",query:{id:t}})},swipeClick:function(t,n){if(0==n){var e=this.collectList[t];e.show=!1,this.handleCollectDel(e.goods_id)}},swipeOpen:function(t){var n=this;this.collectList[t].show=!0,this.collectList.map((function(e,o){t!=o&&(n.collectList[o].show=!1)}))},handleCollectDel:function(t){(0,i.apiGoodsCollect)({goods_id:t,is_collect:0}).then((function(){l.downCallback()})).catch((function(t){console.log(t)}))}}};n.default=a},"4a89":function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("b46f");o(e("3240"));var c=o(e("106a"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(c.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},9072:function(t,n,e){"use strict";e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var o={mescrollContain:function(){return Promise.all([e.e("common/vendor"),e.e("components/mescroll-contain/mescroll-contain")]).then(e.bind(null,"3ff6"))},uSwipeAction:function(){return e.e("components/uview-ui/components/u-swipe-action/u-swipe-action").then(e.bind(null,"574e"))},goodsCard:function(){return e.e("components/goods-card/goods-card").then(e.bind(null,"4daa"))},price:function(){return e.e("components/price/price").then(e.bind(null,"1266"))}},c=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.collectList,(function(n,e){var o=t.__get_orig(n);return{$orig:o,a0:{"border-raius":0,height:"200rpx"}}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},i=[]},dac4:function(t,n,e){},ed37:function(t,n,e){"use strict";var o=e("dac4"),c=e.n(o);c.a}},[["4a89","common/runtime","common/vendor"]]]);
|