tianyi 1 week ago
parent
commit
784ec75674
  1. 24
      pages/worker/wallet.vue

24
pages/worker/wallet.vue

@ -269,7 +269,9 @@
}, },
methods: { methods: {
beginData(){ beginData(){
this.tui.request("/worker/getAllDepo/", "GET", {userId:uni.getStorageSync('id')}, false, true).then((res) => { this.NB.sendRequest("/worker/getAllDepo/", {
userId:uni.getStorageSync('id')
}, false, 'get', 'application/json').then((res) => {
if (res.code == 200) { if (res.code == 200) {
if(res.result.user){ if(res.result.user){
this.balanceUser = res.result.user this.balanceUser = res.result.user
@ -286,10 +288,11 @@
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'none' icon: 'none'
}); })
return
} }
uni.hideLoading() uni.hideLoading()
}).catch((res) => {}) }).catch((res) => {});
}, },
// //
withDraw(){ withDraw(){
@ -436,8 +439,7 @@
}else{ }else{
data.shopId = this.shopId data.shopId = this.shopId
} }
that.tui.request(this.commionUrl, "POST", data, false, false).then((res) => { this.NB.sendRequest(this.commionUrl, data, false, 'POST', 'application/json').then((res) => {
that.loadStatus = 'nomore';
if (res.code == 200) { if (res.code == 200) {
this.$refs.payPopup.close(); this.$refs.payPopup.close();
this.withdrawRequestId = '' this.withdrawRequestId = ''
@ -458,7 +460,7 @@
title: res.message, title: res.message,
icon: 'none' icon: 'none'
}); });
}) });
}, },
chooseLinkId(type,item){ chooseLinkId(type,item){
if(type == 'user'){ if(type == 'user'){
@ -539,8 +541,8 @@
if (!this.canOpenShopOrder(item)) return if (!this.canOpenShopOrder(item)) return
if (this.resolvingSettlementOrderId) return if (this.resolvingSettlementOrderId) return
this.resolvingSettlementOrderId = true this.resolvingSettlementOrderId = true
this.tui.request("/mall/order/orderIdBySettlementRecord/" + item.linkId, "GET", {}, false, true).then((res) => { this.NB.sendRequest("/mall/order/orderIdBySettlementRecord/" + item.linkId, {}, false, 'GET', 'application/json').then((res) => {
if (res.code == 200 && res.result) { if (res.code == 200) {
this.skipWalletRefreshOnShow = true this.skipWalletRefreshOnShow = true
uni.navigateTo({ uni.navigateTo({
url: '/package2/shop/orderDetail?id=' + res.result, url: '/package2/shop/orderDetail?id=' + res.result,
@ -561,7 +563,7 @@
icon: 'none' icon: 'none'
}); });
this.resolvingSettlementOrderId = false this.resolvingSettlementOrderId = false
}) });
}, },
rewardList(){ rewardList(){
this.loadStatus = 'loading' this.loadStatus = 'loading'
@ -572,7 +574,7 @@
if (this.activeWalletType === 'user') { if (this.activeWalletType === 'user') {
params.excludeDealingsWay = '免单奖励' params.excludeDealingsWay = '免单奖励'
} }
that.tui.request("/mall/coupon/selectRewardByRegionId", "POST", params, false, false).then((res) => { this.NB.sendRequest("/mall/coupon/selectRewardByRegionId", params, false, 'POST', 'application/json').then((res) => {
that.loadStatus = 'nomore'; that.loadStatus = 'nomore';
if (res.code == 200) { if (res.code == 200) {
that.totalPages = res.result.pages that.totalPages = res.result.pages
@ -590,7 +592,7 @@
return return
} }
uni.hideLoading() uni.hideLoading()
}).catch((res) => {}) }).catch((res) => {});
}, },
back() { back() {
uni.navigateBack() uni.navigateBack()

Loading…
Cancel
Save