服务器提交
This commit is contained in:
1
public/weapp/pages_promotion/fenxiao/promote.js
Executable file
1
public/weapp/pages_promotion/fenxiao/promote.js
Executable file
@@ -0,0 +1 @@
|
||||
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_promotion/fenxiao/promote"],{"0612":function(t,e,o){"use strict";var n=o("b0ae"),i=o.n(n);i.a},"3e5f":function(t,e,o){"use strict";o.r(e);var n=o("ffd2"),i=o("de57");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("0612");var r=o("828b"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=s.exports},"415e":function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("d381");n(o("3240"));var i=n(o("3e5f"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},b0ae:function(t,e,o){},c1e7:function(t,e,o){"use strict";var n=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(o("0817"));var i={data:function(){return{tabIndex:0,promoteContent:{},promote:{page:0,page_size:5,page_count:0,list:[]},isPay:0,detailData:{},templateId:"",poster:""}},onShow:function(){var t=this;setTimeout((function(){t.addonIsExist.fenxiao||(t.$util.showToast({title:"商家未开启分销",mask:!0,duration:2e3}),setTimeout((function(){t.$util.redirectTo("/pages/index/index")}),2e3))}),1e3),this.storeToken?(this.getTeam(),this.getPromoteRule(),this.getFenxiaoDetail()):this.$nextTick((function(){t.$refs.login.open("/pages_promotion/fenxiao/promote_code")}))},methods:{toPoster:function(){this.$util.redirectTo("/pages_promotion/fenxiao/promote_code")},tabCut:function(t){this.tabIndex=t,this.isPay=t,this.promote.page_count=0,this.promote.page=0,this.promote.page_size=5,this.getTeam()},getTeam:function(){var t=this;this.promote.page_count>0&&this.promote.page==this.promote.page_count||(this.promote.page++,this.$api.sendRequest({url:"/fenxiao/api/fenxiao/team",data:{page:this.promote.page,page_size:this.promote.page_size,is_pay:this.isPay,level:1},success:function(e){t.$refs.loadingCover&&t.$refs.loadingCover.hide(),e.code>=0?(1==t.promote.page&&(t.promote.list=[]),t.promote.page_count=e.data.page_count,t.promote.list=t.promote.list.concat(e.data.list)):t.$util.showToast({title:e.message})},fail:function(e){t.$refs.loadingCover&&t.$refs.loadingCover.hide()}}))},getFenxiaoDetail:function(){var t=this;this.$api.sendRequest({url:"/fenxiao/api/fenxiao/detail",success:function(e){e.data?t.detailData=e.data:t.$util.showToast({title:e.message})}})},getPromoteRule:function(){var t=this;this.$api.sendRequest({url:"/fenxiao/api/config/promoterule",success:function(e){e.data?(t.promoteContent=e.data,t.promoteContent.content=e.data.content?e.data.content:""):t.$util.showToast({title:e.message})},fail:function(e){t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})}}};e.default=i},de57:function(t,e,o){"use strict";o.r(e);var n=o("c1e7"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},ffd2:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}));var n={nsMpHtml:function(){return o.e("components/ns-mp-html/ns-mp-html").then(o.bind(null,"d108"))},nsCopyright:function(){return o.e("components/ns-copyright/ns-copyright").then(o.bind(null,"f37bd"))},nsLogin:function(){return Promise.all([o.e("common/vendor"),o.e("components/ns-login/ns-login")]).then(o.bind(null,"2910"))},loadingCover:function(){return o.e("components/loading-cover/loading-cover").then(o.bind(null,"c003"))}},i=function(){var t=this,e=t.$createElement,o=(t._self._c,t.$util.img("public/uniapp/fenxiao/promote/promote_bg.png")),n=t.$util.img("public/uniapp/fenxiao/promote/my_earnings.png"),i=t.$util.img("public/uniapp/fenxiao/promote/money.png"),a=t.promote.list.length,r=a?t.__map(t.promote.list,(function(e,o){var n=t.__get_orig(e),i=e.headimg?t.$util.img(e.headimg):null,a=e.headimg?null:t.$util.getDefaultImage();return{$orig:n,g4:i,g5:a}})):null,s=t.$util.img("public/uniapp/fenxiao/promote/activity_rules.png");t._isMounted||(t.e0=function(e,o){var n=arguments[arguments.length-1].currentTarget.dataset,i=n.eventParams||n["event-params"];o=i.item;o.headimg=t.$util.getDefaultImage().head}),t.$mp.data=Object.assign({},{$root:{g0:o,g1:n,g2:i,g3:a,l0:r,g6:s}})},a=[]}},[["415e","common/runtime","common/vendor"]]]);
|
||||
Reference in New Issue
Block a user