优化
This commit is contained in:
+35
-19
@@ -17,26 +17,23 @@ Page({
|
||||
withdrawal_amount: "xxxx",
|
||||
income_tax: "xx",
|
||||
contactKeFu: false,
|
||||
skeleton_loading: true
|
||||
skeleton_loading: true,
|
||||
order_inquiry_ids: ""
|
||||
},
|
||||
onLoad(options){
|
||||
//获取提现数据
|
||||
api.getDoctorWithdrawal().then(response => {
|
||||
console.log(response);
|
||||
if(response.data.bank_card_id){
|
||||
this.setData({
|
||||
bank_card_id: response.data.bank_card_id,
|
||||
bank_icon_path: response.data.bank_icon_path,
|
||||
bank_name : response.data.bank_name,
|
||||
bank_card_code_mask: response.data.bank_card_code_mask,
|
||||
withdrawal_amount: response.data.withdrawal_amount,
|
||||
income_tax: response.data.income_tax,
|
||||
skeleton_loading: false
|
||||
})
|
||||
}
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
onLoad(option){
|
||||
let order_inquiry_ids = option.order_inquiry_ids;
|
||||
let params = {};
|
||||
if(order_inquiry_ids){
|
||||
params.order_inquiry_ids = order_inquiry_ids;
|
||||
this.setData({
|
||||
"navbarData.back_url": "/Pages/yishi/my/index",
|
||||
"navbarData.back_url_type": 1,
|
||||
})
|
||||
}
|
||||
this.postDoctorWithdrawalInfo(params);
|
||||
},
|
||||
onShow(){
|
||||
|
||||
},
|
||||
contactKeFu(e){
|
||||
let _this = this;
|
||||
@@ -54,4 +51,23 @@ Page({
|
||||
})
|
||||
|
||||
},
|
||||
postDoctorWithdrawalInfo(params){
|
||||
//获取提现数据
|
||||
api.postDoctorWithdrawalInfo(params).then(response => {
|
||||
console.log(response);
|
||||
if(response.data.bank.bank_card_id){
|
||||
this.setData({
|
||||
bank_card_id: response.data.bank.bank_card_id,
|
||||
bank_icon_path: response.data.bank.bank_icon_path,
|
||||
bank_name : response.data.bank.bank_name,
|
||||
bank_card_code_mask: response.data.bank.bank_card_code_mask,
|
||||
withdrawal_amount: response.data.withdrawal_amount,
|
||||
income_tax: response.data.income_tax,
|
||||
skeleton_loading: false
|
||||
})
|
||||
}
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -32,7 +32,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="cash_right">
|
||||
<navigator url="/Pages/yishi/wenzhenorder/index" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<navigator url="/Pages/yishi/wenzhenorderV2/index" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<van-button custom-style="text-align: center;border-radius: 10rpx;padding: 20rpx 50rpx;" color="linear-gradient(310deg, #FF931A 0%, #FF931A 0%, #FCB75D 100%);">
|
||||
查看订单
|
||||
</van-button>
|
||||
|
||||
Reference in New Issue
Block a user