aa
jiangping
2024-08-02 7dc29ed74ebaa8a0e66f68264d9a13f95dc3af21
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) {