This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop-wechat/pages/user/wallet/index.js
2021-07-16 16:37:55 +08:00

65 lines
933 B
JavaScript

const App = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
userInfo: {},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
let _this = this;
// 获取我的钱包
_this.getUserDetail();
},
/**
* 获取我的钱包
*/
getUserDetail: function() {
let _this = this;
App._get('user.wallet/index', {}, function(result) {
_this.setData(result.data);
});
},
/**
* 跳转充值页面
*/
onTargetRecharge(e) {
wx.navigateTo({
url: '../recharge/index'
})
},
/**
* 跳转充值记录页面
*/
onTargetRechargeOrder(e) {
wx.navigateTo({
url: '../recharge/order/index'
})
},
/**
* 跳转账单详情页面
*/
onTargetBalanceLog(e) {
wx.navigateTo({
url: '../wallet/balance/log'
})
},
})