From a29e8864a8c6237c8fc5c2133daff41d119fa357 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Tue, 11 Jun 2024 18:04:13 +0800 Subject: [PATCH] 1 --- pages/user/index.vue | 8 ++++---- pages/users/order_list1/index.vue | 9 +++++---- pages/users/user_money/index.vue | 6 +++--- pages/users/user_money/zhuanzhang.vue | 16 +++++++++++++++- 4 files changed, 27 insertions(+), 12 deletions(-) diff --git a/pages/user/index.vue b/pages/user/index.vue index 132e156..1955316 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -87,19 +87,19 @@ --> - {{userInfo.now_money}} + {{userInfo.now_money||0}} 余额 - 3000 + {{userInfo.brokerage_level||0}} 累计收益 - {{userInfo.integral}} + {{userInfo.integral||0}} 积分 - 3 + {{userInfo.total_coupon||0}} 优惠券 diff --git a/pages/users/order_list1/index.vue b/pages/users/order_list1/index.vue index 823e1e9..6a19ebc 100644 --- a/pages/users/order_list1/index.vue +++ b/pages/users/order_list1/index.vue @@ -11,15 +11,15 @@ 全部 {{orderData.all || 0}} - + 待付款 {{orderData.noPay || 0}} - + 寄售中 {{orderData.noPostage || 0}} - + 已完成 {{orderData.noDeliver || 0}} @@ -551,7 +551,8 @@ }) } else { getOrderList({ - status: that.orderStatus - 1, + // status: that.orderStatus - 1, + status: that.orderStatus , page: that.page, limit: that.limit, is_burst:1, diff --git a/pages/users/user_money/index.vue b/pages/users/user_money/index.vue index c9c8ffe..9e56829 100644 --- a/pages/users/user_money/index.vue +++ b/pages/users/user_money/index.vue @@ -35,13 +35,13 @@ 累计消费(元) {{userInfo.total_consume || 0}} - + 贡献值 - {{userInfo.contribute_value || 0}} + {{userInfo.contribution || 0}} diff --git a/pages/users/user_money/zhuanzhang.vue b/pages/users/user_money/zhuanzhang.vue index 423dc08..db279c7 100644 --- a/pages/users/user_money/zhuanzhang.vue +++ b/pages/users/user_money/zhuanzhang.vue @@ -4,7 +4,7 @@ 可转账金额(元) - 3000 + {{now_money}} @@ -51,12 +51,20 @@ export default{ timer:null, timeNum:60, canClick:true, + now_money:0 } }, beforeDestroy() { clearInterval(this.timer); }, methods:{ + getUserInfo() { + let that = this; + getUserInfo().then(res => { + that.now_money = res.data.now_money; + + }); + }, getCodeHandle(){ if(!this.form.phone){ uni.showToast({ @@ -129,6 +137,12 @@ export default{ } zhuanzhangApi(params).then(res=>{ console.log(res,"00") + }).catch((res)=>{ + console.log(res) + uni.showToast({ + title: res, + icon: 'none' + }) })