123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- import APIClient from '../../../utils/APIClient.js'
- Page({
-
- data: {
- title: '',
- totalMoney: 0,
- textDoc: '收到的奖金将自动转入微信钱包',
- textPrompt: '',
- walletDetail: '资金明细',
- },
- toWalletDetail: function(e) {
- let title = e.currentTarget.dataset.title;
- wx.navigateTo({
- url: `../walletDetails/walletDetails?title=${title}`
- });
- },
-
- onLoad: function (options) {
- if (options.title) {
- wx.setNavigationBarTitle({
- title: options.title
- });
- this.setData({
- title: options.title
- });
- }
-
- APIClient.myWallet().success(res => {
- console.log(res.data.data);
- this.setData({
- totalMoney:res.data.data.income / 100
- });
- }).fail(err => {
- console.log(err);
- });
- },
-
- onReady: function () {
-
- },
-
- onShow: function () {
-
- },
-
- onHide: function () {
-
- },
-
- onUnload: function () {
-
- },
-
- onPullDownRefresh: function () {
-
- },
-
- onReachBottom: function () {
-
- },
-
- onShareAppMessage: function () {
-
- }
- })
|