服务器提交
This commit is contained in:
1
public/weapp/pages_promotion/pinfan/list.js
Executable file
1
public/weapp/pages_promotion/pinfan/list.js
Executable file
@@ -0,0 +1 @@
|
||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_promotion/pinfan/list"],{1396:function(n,t,e){"use strict";e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return i}));var i={nsAdv:function(){return e.e("components/ns-adv/ns-adv").then(e.bind(null,"7e88"))},nsEmpty:function(){return e.e("components/ns-empty/ns-empty").then(e.bind(null,"52a6"))},hoverNav:function(){return e.e("components/hover-nav/hover-nav").then(e.bind(null,"c1f1"))},loadingCover:function(){return e.e("components/loading-cover/loading-cover").then(e.bind(null,"c003"))}},a=function(){var n=this,t=n.$createElement,e=(n._self._c,n.addonIsExist.pinfan?n.$util.img("public/uniapp/pinfan/rebate_left.png"):null),i=n.addonIsExist.pinfan?n.$util.img("public/uniapp/pinfan/rebate_right.png"):null,a=n.addonIsExist.pinfan?n.$util.img("public/uniapp/pinfan/open_group.png"):null,o=n.addonIsExist.pinfan?n.$util.img("public/uniapp/pinfan/spot.png"):null,s=n.addonIsExist.pinfan?n.$util.img("public/uniapp/pinfan/deliver_goods.png"):null,u=n.addonIsExist.pinfan?n.$util.img("public/uniapp/pinfan/spot.png"):null,r=n.addonIsExist.pinfan?n.$util.img("public/uniapp/pinfan/gift.png"):null,l=n.addonIsExist.pinfan?n.dataList.length:null,d=n.addonIsExist.pinfan&&l?n.__map(n.dataList,(function(t,e){var i=n.__get_orig(t),a=n.goodsImg(t.goods_image),o=n.goodsTag(t),s=""!=o?n.goodsTag(t):null,u=parseFloat(t.pintuan_price).toFixed(2).split("."),r=parseFloat(t.pintuan_price).toFixed(2).split(".");return{$orig:i,m0:a,m1:o,m2:s,g8:u,g9:r}})):null,c=n.addonIsExist.pinfan?n.dataList.length:null;n.$mp.data=Object.assign({},{$root:{g0:e,g1:i,g2:a,g3:o,g4:s,g5:u,g6:r,g7:l,l0:d,g10:c}})},o=[]},"61a8":function(n,t,e){"use strict";e.r(t);var i=e("1396"),a=e("c630");for(var o in a)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(o);e("a008");var s=e("828b"),u=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"ee7afcb2",null,!1,i["a"],void 0);t["default"]=u.exports},8585:function(n,t,e){"use strict";(function(n,t){var i=e("47a9");e("d381");i(e("3240"));var a=i(e("61a8"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"85e9":function(n,t,e){},a008:function(n,t,e){"use strict";var i=e("85e9"),a=e.n(i);a.a},c630:function(n,t,e){"use strict";e.r(t);var i=e("d992"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=a.a},d992:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={components:{uniTag:function(){e.e("components/uni-tag/uni-tag").then(function(){return resolve(e("43db"))}.bind(null,e)).catch(e.oe)},nsAdv:function(){e.e("components/ns-adv/ns-adv").then(function(){return resolve(e("7e88"))}.bind(null,e)).catch(e.oe)}},data:function(){return{dataList:[],mpShareData:null}},onLoad:function(t){var e=this;if(setTimeout((function(){e.addonIsExist.pinfan||(e.$util.showToast({title:"商家未开启拼团返利",mask:!0,duration:2e3}),setTimeout((function(){e.$util.redirectTo("/pages/index/index")}),2e3))}),1e3),t.source_member&&n.setStorageSync("source_member",t.source_member),t.scene){var i=decodeURIComponent(t.scene);i=i.split("&"),i.length&&i.forEach((function(t){-1!=t.indexOf("sku_id")&&(e.skuId=t.split("-")[1]),-1!=t.indexOf("m")&&n.setStorageSync("source_member",t.split("-")[1]),-1!=t.indexOf("is_test")&&n.setStorageSync("is_test",1)}))}},onShow:function(){var t=this;this.storeToken&&n.getStorageSync("source_member")&&this.$util.onSourceMember(n.getStorageSync("source_member")),this.$util.getMpShare().then((function(n){t.mpShareData=n}))},onShareAppMessage:function(){return this.mpShareData.appMessage},onShareTimeline:function(){return this.mpShareData.timeLine},methods:{getData:function(n){var t=this;this.$api.sendRequest({url:"/pinfan/api/goods/page",data:{page_size:n.size,page:n.num},success:function(e){var i=[],a=e.message;0==e.code&&e.data?i=e.data.list:t.$util.showToast({title:a}),n.endSuccess(i.length),1==n.num&&(t.dataList=[]),t.dataList=t.dataList.concat(i),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(){n.endErr(),this.$refs.loadingCover&&this.$refs.loadingCover.hide()}})},toDetail:function(n){this.$util.redirectTo("/pages_promotion/pinfan/detail",{pinfan_id:n.pintuan_id})},imgError:function(n){this.dataList[n].goods_image=this.$util.getDefaultImage().goods,this.$forceUpdate()},goodsImg:function(n){var t=n.split(",");return t[0]?this.$util.img(t[0],{size:"mid"}):this.$util.getDefaultImage().goods},goodsTag:function(n){return n.label_name||""}}};t.default=i}).call(this,e("df3c")["default"])}},[["8585","common/runtime","common/vendor"]]]);
|
||||
Reference in New Issue
Block a user