From 73e46c000ec0389e72a2c5afd7b986e82564e147 Mon Sep 17 00:00:00 2001
From: imax <373170631@qq.com>
Date: Thu, 7 Jul 2022 23:50:38 +0800
Subject: [PATCH 1/2] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D01?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/center/cash/cash.js | 17 ++++++++-----
pages/center/cash/cash.wxml | 2 +-
pages/center/cashlist/cashlist.js | 28 ++++++++++++++++++----
pages/center/center.js | 4 ++--
pages/center/center.wxml | 4 ++--
pages/center/order/order.js | 4 ++--
pages/center/orderdetail/orderdetail.js | 29 +++++++++++++++++++----
pages/center/orderdetail/orderdetail.wxml | 11 ++++++++-
pages/center/orderdetail/orderdetail.wxss | 10 ++++++--
pages/club/club.js | 12 ++++++++--
pages/club/club.wxml | 2 +-
pages/club/clubDetail/clubDetail.js | 4 ++--
pages/club/manage/manage.js | 1 +
pages/club/manage/manage.wxml | 4 ++--
pages/message/message.wxml | 2 +-
utils/common.js | 10 +++++++-
16 files changed, 111 insertions(+), 33 deletions(-)
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..d05d963 100644
--- a/pages/center/cashlist/cashlist.js
+++ b/pages/center/cashlist/cashlist.js
@@ -1,4 +1,6 @@
// pages/center/cashlist/cashlist.js
+var Api = require('../../../utils/common.js');
+var re = require('../../../utils/request.js');
Page({
/**
@@ -6,10 +8,10 @@ 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'},
+ // {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'},
]
},
@@ -17,7 +19,25 @@ Page({
* 生命周期函数--监听页面加载
*/
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: res.data
+ });
+ })
},
/**
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..c9ac8d7 100644
--- a/pages/center/center.wxml
+++ b/pages/center/center.wxml
@@ -94,12 +94,12 @@
-->
-