35 lines
914 B
JavaScript
35 lines
914 B
JavaScript
import { API } from './../../../utils/network/api'
|
|
|
|
const api = new API()
|
|
const app = getApp()
|
|
Page({
|
|
data: {
|
|
navbarData: {
|
|
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
|
title: '提现记录', //导航栏 中间的标题
|
|
},
|
|
height: app.globalData.height,
|
|
record_list: [],
|
|
current_page: 0,
|
|
total: 0,
|
|
per_page: 0,
|
|
last_page: 0
|
|
},
|
|
onLoad(){
|
|
//获取提现数据
|
|
api.getDoctorWithdrawalRecord({year:'2023'}).then(response => {
|
|
console.log(response);
|
|
if(response.data.total > 0){
|
|
this.setData({
|
|
record_list: response.data.data,
|
|
current_page: response.data.current_page,
|
|
total: response.data.total,
|
|
per_page: response.data.per_page,
|
|
last_page: response.data.last_page,
|
|
})
|
|
}
|
|
}).catch(errors => {
|
|
console.error(errors);
|
|
})
|
|
}
|
|
}) |