diff --git a/pages/center/cash/cash.js b/pages/center/cash/cash.js
index a3f8ee1..76f1da3 100644
--- a/pages/center/cash/cash.js
+++ b/pages/center/cash/cash.js
@@ -34,16 +34,21 @@ Page({
re.request(Api.getcash(), postData, header).then((res) => {
let datas = res.data.data;
console.log(datas)
- wx.showToast({
- title: '操作成功,等待审核',
- icon: 'none'
- })
- })
+ if(res.code === 0){
+ wx.showToast({
+ title: '操作成功,等待审核',
+ icon: 'none'
+ });
+ setTimeout(() => wx.navigateBack({
+ delta: 1,
+ }), 1000);
+ }
+ });
},
/**
* 生命周期函数--监听页面加载
*/
- onLoad: function (options) {
+ onLoad: function (options) {console.log(options)
this.setData({
mon:options.mon
})
diff --git a/pages/center/cash/cash.wxml b/pages/center/cash/cash.wxml
index 44d0171..1ebc302 100644
--- a/pages/center/cash/cash.wxml
+++ b/pages/center/cash/cash.wxml
@@ -7,7 +7,7 @@
提现金额
-
+
每天一次,单笔最高3万元。
确认提现
diff --git a/pages/center/cashlist/cashlist.js b/pages/center/cashlist/cashlist.js
index 7c9e322..3b5bc5b 100644
--- a/pages/center/cashlist/cashlist.js
+++ b/pages/center/cashlist/cashlist.js
@@ -1,23 +1,42 @@
// pages/center/cashlist/cashlist.js
+var Api = require('../../../utils/common.js');
+var re = require('../../../utils/request.js');
Page({
/**
* 页面的初始数据
*/
data: {
- cashlist:[
- {money:'655',time:'2020-12-10 12:00:00',status:'1'},
- {money:'655',time:'2020-12-10 12:00:00',status:'2'},
- {money:'655',time:'2020-12-10 12:00:00',status:'3'},
- {money:'655',time:'2020-12-10 12:00:00',status:'1'},
- ]
+ cashlist:[]
+ // {money:'655',time:'2020-12-10 12:00:00',status:'1'},
+ // {money:'655',time:'2020-12-10 12:00:00',status:'2'},
+ // {money:'655',time:'2020-12-10 12:00:00',status:'3'},
+ // {money:'655',time:'2020-12-10 12:00:00',status:'1'},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
+ this.getCashList();
+ },
+ getCashList(){
+ var that = this;
+ var header = {
+ token:wx.getStorageSync('token'),
+ "Content-Type": "application/x-www-form-urlencoded"
+ };
+ var postData = {
+
+ };
+ re.request(Api.cashList(), postData, header).then((res) => {
+ let datas = res.data.data;
+ console.log(datas)
+ this.setData({
+ cashlist: datas
+ });
+ })
},
/**
diff --git a/pages/center/center.js b/pages/center/center.js
index 5e6ac3c..07e15e3 100644
--- a/pages/center/center.js
+++ b/pages/center/center.js
@@ -14,9 +14,9 @@ Page({
quan:{nouse:0,userd:0,pass:0}
},
tocash:function(){
- var that = this;
+ var that = this;//console.log('mm:',that.data.mymoney)
wx.navigateTo({
- url: './cash/cash?mon='+that.data.mymoney.moneyCash+''
+ url: './cash/cash?mon='+that.data.mymoney.moneyCash
})
},
toorder:function(){
diff --git a/pages/center/center.wxml b/pages/center/center.wxml
index ab5079e..c256cd4 100644
--- a/pages/center/center.wxml
+++ b/pages/center/center.wxml
@@ -55,7 +55,7 @@
提现
- 提现记录
+
@@ -94,12 +94,12 @@
-->
-