|
@@ -84,6 +84,16 @@
|
|
|
</view>
|
|
|
</u-overlay>
|
|
|
</view>
|
|
|
+ <u-modal :show="showModel" @confirm="confirmModel" :confirmText="confirmText" ref="uModal" :asyncClose="true" >
|
|
|
+ <view class="slot-content">
|
|
|
+ <view style="display: flex;justify-content: center;padding-bottom: 20rpx;">
|
|
|
+ <image style="width: 100rpx;height: 100rpx;" :src="showStatus == 0 ? suImage : errorImage" mode="scaleToFill" />
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <rich-text :nodes="contentModel"></rich-text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-modal>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -117,6 +127,12 @@
|
|
|
password: '',
|
|
|
personList:[],
|
|
|
serviceMoney: null,
|
|
|
+ showModel: false,
|
|
|
+ contentModel: '提交申请提交成功,佣金将会在1-2个工作日内发放到银行卡,请耐心等待!',
|
|
|
+ errorImage: this.$commonConfig.staticUrl + 'cash/shiban.png',
|
|
|
+ suImage: this.$commonConfig.staticUrl + 'cash/chenggong.png',
|
|
|
+ showStatus: null,
|
|
|
+ confirmText: '关闭',
|
|
|
}
|
|
|
},
|
|
|
onLoad(page) {
|
|
@@ -133,6 +149,7 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
//this.statusBarHeight = getApp().globalData.statusBarHeight
|
|
|
+ this.showModel = false
|
|
|
this.getWithdrawInfo()
|
|
|
|
|
|
},
|
|
@@ -268,6 +285,9 @@
|
|
|
this.personList.forEach((item,index)=> {
|
|
|
list.push(item.personsId)
|
|
|
})
|
|
|
+ this.contentModel = "提现申请提交失败!"
|
|
|
+ this.confirmText = '关闭'
|
|
|
+ this.showStatus = 1
|
|
|
let res = await this.$u.api.withdrawApply({
|
|
|
noSign: 1,
|
|
|
userid: this.distribution_user_info.userId,
|
|
@@ -279,21 +299,23 @@
|
|
|
withdrawList: list
|
|
|
})
|
|
|
|
|
|
- if (res && res.code === 200) {
|
|
|
- navigateTo('/pages/cashPrompt/index',{
|
|
|
- id: res.data.orderId,
|
|
|
- serviceMoney: this.serviceMoney,
|
|
|
- // ...res.data.bankInfo,
|
|
|
- // moneyValue: this.moneyValue,
|
|
|
- // withdrawType: 'wechat',
|
|
|
- // serviceType: this.withdrawInfo.serviceType,
|
|
|
- // serviceCharge: this.withdrawInfo.serviceCharge
|
|
|
- })
|
|
|
+ if (res && res.code == 200) {
|
|
|
+ this.contentModel = "提现申请提交成功,佣金将会在1-2个工作日内发放到银行卡,请耐心等待!"
|
|
|
+ this.confirmText = '返回'
|
|
|
+ this.showStatus = 0
|
|
|
+ this.showModel = true
|
|
|
+
|
|
|
+ // navigateTo('/pages/cashPrompt/index',{
|
|
|
+ // id: res.data.orderId,
|
|
|
+ // serviceMoney: this.serviceMoney,
|
|
|
+ // // ...res.data.bankInfo,
|
|
|
+ // // moneyValue: this.moneyValue,
|
|
|
+ // // withdrawType: 'wechat',
|
|
|
+ // // serviceType: this.withdrawInfo.serviceType,
|
|
|
+ // // serviceCharge: this.withdrawInfo.serviceCharge
|
|
|
+ // })
|
|
|
} else {
|
|
|
- uni.showToast({
|
|
|
- title: res.msg,
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
+ this.showModel = true
|
|
|
this.password = ''
|
|
|
}
|
|
|
this.showModal = false
|
|
@@ -302,10 +324,7 @@
|
|
|
console.error("e===", e)
|
|
|
this.password = ''
|
|
|
this.showModal = false
|
|
|
- uni.showToast({
|
|
|
- title: "提交失败",
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
+ this.showModel = true
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
@@ -359,6 +378,15 @@
|
|
|
});
|
|
|
//window.history.replaceState(null, null, document.URL); // 保留此行代码
|
|
|
},
|
|
|
+ /** */
|
|
|
+ confirmModel() {
|
|
|
+ this.showModal = false
|
|
|
+ if(this.showStatus == 0) {
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: 2
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|