42 lines
1.0 KiB
JavaScript
42 lines
1.0 KiB
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,
|
|
result: ['a'],
|
|
page: 1,
|
|
per_page: 10,
|
|
order_list: [],
|
|
total: 0
|
|
},
|
|
|
|
onChange(event) {
|
|
this.setData({
|
|
result: event.detail,
|
|
});
|
|
},
|
|
onLoad(){
|
|
//可提现问诊订单列表
|
|
let params = {};
|
|
params.page = this.data.page;
|
|
params.per_page = this.data.per_page;
|
|
api.getDoctorWithdrawalOrder(params).then(response => {
|
|
console.log(response);
|
|
if(response.data.total > 0){
|
|
this.setData({
|
|
order_list: response.data.data,
|
|
current_page: response.data.current_page,
|
|
per_page: response.data.per_page,
|
|
last_page: response.data.last_page
|
|
})
|
|
}
|
|
}).catch(errors => {console.error(errors);})
|
|
|
|
}
|
|
}) |