From 7dc29ed74ebaa8a0e66f68264d9a13f95dc3af21 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 02 八月 2024 11:09:06 +0800
Subject: [PATCH] aa

---
 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