优化
This commit is contained in:
@@ -23,11 +23,16 @@ Page({
|
||||
],
|
||||
},
|
||||
onLoad(){
|
||||
this.getDoctorWithdrawalRecord();
|
||||
let year = this.data.select_date;
|
||||
year = Number(year);
|
||||
this.getDoctorWithdrawalRecord(year);
|
||||
},
|
||||
getDoctorWithdrawalRecord(){
|
||||
getDoctorWithdrawalRecord(year){
|
||||
this.setData({
|
||||
record_list: []
|
||||
})
|
||||
//获取提现数据
|
||||
api.getDoctorWithdrawalRecord({year: this.data.select_date}).then(response => {
|
||||
api.getDoctorWithdrawalRecord({year: year}).then(response => {
|
||||
console.log(response);
|
||||
if(response.data.total > 0){
|
||||
this.setData({
|
||||
@@ -46,28 +51,22 @@ Page({
|
||||
onPickerChange(e) {
|
||||
const { key } = e.currentTarget.dataset;
|
||||
const { value } = e.detail;
|
||||
|
||||
console.log('picker change:', e.detail);
|
||||
|
||||
this.setData({
|
||||
select_date: value
|
||||
})
|
||||
|
||||
this.getDoctorWithdrawalRecord();
|
||||
|
||||
let year = this.data.select_date;
|
||||
year = Number(year);
|
||||
this.getDoctorWithdrawalRecord(year);
|
||||
},
|
||||
onColumnChange(e) {
|
||||
const { key } = e.currentTarget.dataset;
|
||||
const { value } = e.detail;
|
||||
|
||||
console.log('Column change:', e.detail);
|
||||
|
||||
},
|
||||
onPickerCancel(e) {
|
||||
const { key } = e.currentTarget.dataset;
|
||||
const { value } = e.detail;
|
||||
|
||||
console.log('picker Cancel:', e.detail);
|
||||
|
||||
}
|
||||
})
|
||||
@@ -15,13 +15,13 @@
|
||||
</view>
|
||||
<view class="data_item_top_content">
|
||||
<view class="name">{{item.account_name}}<text style="margin-left:20rpx;font-size: 28rpx;color:#999;">(尾号{{item.bank_card_code_four}})</text></view>
|
||||
<view class="date">{{item.examine_time}}</view>
|
||||
<view class="date">{{item.created_at}}</view>
|
||||
</view>
|
||||
<view class="data_item_top_num">
|
||||
<view class="jine">¥{{item.applied_withdrawal_amount}}</view>
|
||||
<view class="status_box">
|
||||
<!-- 审核状态(1:审核中 2:审核通过 3:审核未通过) -->
|
||||
<view class="status status_ing">{{item.examine_status}}</view>
|
||||
<view class="status status_ing">{{item.examine_status==1?'审核中':item.examine_status==2?'审核通过':item.examine_status==3?'审核未通过':'未知'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user