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.
2 lines
4.7 KiB
2 lines
4.7 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/rebate/rebate"],{233:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(234));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},234:function(e,t,n){"use strict";n.r(t);var o=n(235),i=n(237);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n(239);var s,u=n(38),a=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],s);a.options.__file="pages/rebate/rebate.vue",t["default"]=a.exports},235:function(e,t,n){"use strict";n.r(t);var o=n(236);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},236:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return s})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return o}));try{o={uniCard:function(){return n.e("uni_modules/uni-card/components/uni-card/uni-card").then(n.bind(null,1025))},uButton:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-button/u-button")]).then(n.bind(null,1113))},uniSegmentedControl:function(){return n.e("uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control").then(n.bind(null,1173))},uLoadmore:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(n.bind(null,1134))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement;e._self._c},r=!1,s=[];i._withStripped=!0},237:function(e,t,n){"use strict";n.r(t);var o=n(238),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},238:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.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=e.getStorageSync("shopId"),this.type=e.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(e){this.current!=e.currentIndex&&(this.current=e.currentIndex),this.getList()},getBalance:function(){var e=this;this.tui.request("/app/shop/getShopRebateBalance","post",{},!1,!1,!0).then((function(t){200==t.code&&(e.rebateAmount=t.result.rebateAmount,e.allrebateAmount=t.result.allrebateAmount)}))},getList:function(){var e,t,n=this;this.commissionList=[],0==this.current?(e="/app/deductlog/getShopLogById",t={shopId:this.shopId,pageNum:this.pageNum,pageSize:10}):(e="/app/inviteLog/getInviteLogListByShop",t={pageNumber:this.pageNum,pageSize:10}),this.tui.request(e,"post",t,!1,!1,!0).then((function(e){if(n.status="nomore",200==e.code){n.commissionList=e.result.records;for(var t=0;t<n.commissionList.length;t++)void 0==n.commissionList[t].shopAfterDepoBal&&(n.commissionList[t].shopAfterDepoBal="暂无"),null==n.commissionList[t].createTime&&(n.commissionList[t].createTime="暂无")}}))},goToDetail:function(){e.navigateTo({url:"/pages/rebate/detail"})},goToWithdrawal:function(){var t=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){t.status="nomore",200==n.code?(t.isOnLine=n.result.operatingAreaList[0].isOnLine,"0"==n.result.operatingAreaList[0].isOnLine?t.tui.toast("功能测试中,暂未开放"):e.navigateTo({url:"/pages/rebate/withdrawal?balance=".concat(t.rebateAmount)})):t.tui.toast(n.message)}))}}};t.default=n}).call(this,n(2)["default"])},239:function(e,t,n){"use strict";n.r(t);var o=n(240),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},240:function(e,t,n){}},[[233,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/rebate/rebate.js.map
|