commission--yt-commit
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import { baseUrl } from "../../../request"
|
||||
|
||||
// pages/personCenter/billingDetails/billingDetails.js
|
||||
Page({
|
||||
|
||||
@ -5,14 +7,33 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
items: [null, null, null, null]
|
||||
withdrawalList: [],
|
||||
withdrawalStatus: ['审核中', '提现成功', '提现失败']
|
||||
},
|
||||
|
||||
getWithdrawalList() {
|
||||
wx.request({
|
||||
url: baseUrl + '/withdrawalApply/query',
|
||||
method: 'POST',
|
||||
header: {
|
||||
Authorization: wx.getStorageSync('token')
|
||||
},
|
||||
success: res => {
|
||||
console.log('账单明细---->',res.data);
|
||||
console.log('登录token---->',wx.getStorageSync('token'));
|
||||
if (res.data.code === 1) {
|
||||
this.setData({
|
||||
withdrawalList: res.data.data
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
this.getWithdrawalList()
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user