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.7 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/rebate/rebate"],{"0268":function(t,e,n){},2086:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return i}));var i={uniCard:function(){return n.e("uni_modules/uni-card/components/uni-card/uni-card").then(n.bind(null,"1e6b"))},uButton:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-button/u-button")]).then(n.bind(null,"e681"))},uniSegmentedControl:function(){return n.e("uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control").then(n.bind(null,"4631"))},uLoadmore:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(n.bind(null,"9fc5"))}},o=function(){var t=this.$createElement;this._self._c},u=[]},"225f":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("7859");i(n("3240"));var o=i(n("341d"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"2f1e":function(t,e,n){"use strict";var i=n("0268"),o=n.n(i);o.a},"341d":function(t,e,n){"use strict";n.r(e);var i=n("2086"),o=n("6968");for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);n("2f1e");var s=n("828b"),a=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=a.exports},6968:function(t,e,n){"use strict";n.r(e);var i=n("7098"),o=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=o.a},7098:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{commissionList:[],pages:1,pageNum:1,status:"loadmore",shopId:"",items:["订单返佣","邀请返佣"],current:0,allrebateAmount:0,rebateAmount:0}},onLoad:function(){this.shopId=t.getStorageSync("shopId"),this.type=t.getStorageSync("type")},onShow:function(){this.getList(),this.getBalance()},onReachBottom:function(){if(0!=this.inStorageStatus){if(this.pageNum>=this.pages)return;this.status="loading",this.pageNum+=1,this.getList()}},methods:{onClickItem:function(t){this.current!=t.currentIndex&&(this.current=t.currentIndex),this.getList()},getBalance:function(){var t=this;this.tui.request("/app/shop/getShopRebateBalance","post",{},!1,!1,!0).then((function(e){200==e.code&&(t.rebateAmount=e.result.rebateAmount,t.allrebateAmount=e.result.allrebateAmount)}))},getList:function(){var t,e,n=this;this.commissionList=[],0==this.current?(t="/app/deductlog/getShopLogById",e={shopId:this.shopId,pageNum:this.pageNum,pageSize:10}):(t="/app/inviteLog/getInviteLogListByShop",e={pageNumber:this.pageNum,pageSize:10}),this.tui.request(t,"post",e,!1,!1,!0).then((function(t){if(n.status="nomore",200==t.code){n.commissionList=t.result.records;for(var e=0;e<n.commissionList.length;e++)void 0==n.commissionList[e].shopAfterDepoBal&&(n.commissionList[e].shopAfterDepoBal="暂无"),null==n.commissionList[e].createTime&&(n.commissionList[e].createTime="暂无")}}))},goToDetail:function(){t.navigateTo({url:"/pages/rebate/detail"})},goToWithdrawal:function(){var e=this;0!=this.type?this.tui.toast("您暂无提现权限!"):this.tui.request("/app/operatingArea/getByArea","post",{province:"",city:"",area:"",shippingType:0,seachParams:"测试"},!1,!0).then((function(n){e.status="nomore",200==n.code?(e.isOnLine=n.result.operatingAreaList[0].isOnLine,"0"==n.result.operatingAreaList[0].isOnLine?e.tui.toast("功能测试中,暂未开放"):t.navigateTo({url:"/pages/rebate/withdrawal?balance=".concat(e.rebateAmount)})):e.tui.toast(n.message)}))}}};e.default=n}).call(this,n("df3c")["default"])}},[["225f","common/runtime","common/vendor"]]]);