From 1cee3a660c5f8e5f4290ae894c2898c4966a834d Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 02 八月 2024 18:33:33 +0800
Subject: [PATCH] ''
---
wechat_jiaxuan/pages/userinfo/mysub.js | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/wechat_jiaxuan/pages/userinfo/mysub.js b/wechat_jiaxuan/pages/userinfo/mysub.js
index fa703a1..706bf84 100644
--- a/wechat_jiaxuan/pages/userinfo/mysub.js
+++ b/wechat_jiaxuan/pages/userinfo/mysub.js
@@ -18,6 +18,7 @@
onPullDownRefresh: function () {
console.log('涓嬫媺鍒锋柊');
this.setData({ dataList: [], page: 1, total: 0 })
+ wx.stopPullDownRefresh()
this.getList()
},
onReachBottom() {
@@ -40,10 +41,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