From 1a6905045d38bb50b0c6554c3440bdfd339c8d23 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 30 七月 2024 19:13:46 +0800
Subject: [PATCH] ‘’
---
wechat_jiaxuan/pages/userinfo/mysub.js | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/wechat_jiaxuan/pages/userinfo/mysub.js b/wechat_jiaxuan/pages/userinfo/mysub.js
index fa703a1..f790c8c 100644
--- a/wechat_jiaxuan/pages/userinfo/mysub.js
+++ b/wechat_jiaxuan/pages/userinfo/mysub.js
@@ -40,10 +40,18 @@
type: activeTabs
},page,capacity
}).then(res => {
- this.setData({
- dataList: res.data.records,
- total: res.data.total,
- })
+ if(res.data && res.data.records){
+ const temp = res.data.records.map(item => {
+ if(item.budget > 10000){
+ item.budget = (item.budget / 10000).toFixed(2) + '涓�'
+ }
+ return item
+ })
+ this.setData({
+ dataList: [ ...this.data.dataList, ...temp ],
+ total: res.data.total,
+ })
+ }
})
},
tabsChange(e) {
--
Gitblit v1.9.3