周总批发商场
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
3.2 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/goods_combination/index"],{"079e":function(t,n,i){"use strict";i.r(n);var e=i("d89f"),o=i.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(a);n["default"]=o.a},"1e54":function(t,n,i){"use strict";i.d(n,"b",(function(){return e})),i.d(n,"c",(function(){return o})),i.d(n,"a",(function(){}));var e=function(){var t=this,n=t.$createElement,i=(t._self._c,t.bannerList.length),e=t.$t("人参与"),o=t.pinkPeople.length,a=o>5?t.pinkPeople.length:null,c=t.combinationList.length,u=c?t.__map(t.combinationList,(function(n,i){var e=t.__get_orig(n),o=t.$t("¥"),a=t.$t("¥"),c=n.stock>0&&n.quota>0?t.$t("人团"):null,u=n.stock>0&&n.quota>0?t.$t("去拼团"):null,l=n.stock>0&&n.quota>0?null:t.$t("已售罄");return{$orig:e,m1:o,m2:a,m3:c,m4:u,m5:l}})):null;t.$mp.data=Object.assign({},{$root:{g0:i,m0:e,g1:o,g2:a,g3:c,l0:u}})},o=[]},"1fdb":function(t,n,i){"use strict";var e=i("4754"),o=i.n(e);o.a},4754:function(t,n,i){},"898e":function(t,n,i){"use strict";i.r(n);var e=i("1e54"),o=i("079e");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(n,t,(function(){return o[t]}))}(a);i("1fdb");var c=i("f0c5"),u=Object(c["a"])(o["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=u.exports},d89f:function(t,n,i){"use strict";(function(t){var e=i("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i("84d8"),a=i("5d9d"),c=e(i("19b6")),u=(getApp(),{components:{home:function(){Promise.all([i.e("common/vendor"),i.e("components/home/index")]).then(function(){return resolve(i("3b71"))}.bind(null,i)).catch(i.oe)}},mixins:[c.default],data:function(){return{pinkPeople:[],pinkCount:0,bannerList:[],circular:!0,autoplay:!0,interval:3e3,duration:500,combinationList:[],limit:10,page:1,loading:!1,loadend:!1}},onLoad:function(){t.setNavigationBarTitle({title:this.$t("拼团列表")}),this.getCombinationList(),this.getBannerList(),this.getPink()},methods:{getPink:function(){var t=this;(0,o.getPink)().then((function(n){t.pinkPeople=n.data.avatars,t.pinkCount=n.data.pink_count}))},getBannerList:function(){var t=this;(0,o.getCombinationBannerList)().then((function(n){t.bannerList=n.data}))},goDetail:function(t){var n=t.link;this.$util.JumpPath(n)},openSubcribe:function(n){t.showLoading({title:this.$t("正在加载中")}),(0,a.openPinkSubscribe)().then((function(i){t.hideLoading(),t.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(n.id)})})).catch((function(){t.hideLoading()}))},getCombinationList:function(){var t=this;if(!t.loadend&&!t.loading){var n={page:t.page,limit:t.limit};this.loading=!0,(0,o.getCombinationList)(n).then((function(n){var i=t.combinationList,e=t.limit;t.page++,t.loadend=e>n.data.length,t.combinationList=i.concat(n.data),t.page=t.data.page,t.loading=!1})).catch((function(){t.loading=!1}))}}},onReachBottom:function(){this.getCombinationList()}});n.default=u}).call(this,i("543d")["default"])},f9e0:function(t,n,i){"use strict";(function(t,n){var e=i("4ea4");i("4789");e(i("66fd"));var o=e(i("898e"));t.__webpack_require_UNI_MP_PLUGIN__=i,n(o.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])}},[["f9e0","common/runtime","common/vendor"]]]);