rk
8 天以前 8caa1157044d2229e56a288cc5665fadf526dd45
app/pages/wallet/wallet.vue
@@ -53,8 +53,8 @@
                  </view>
               </view>
               <view class="item-date-bottom">
                  <text>收入:¥{{(countDataList.totalIncome || 0).toFixed(2)}}</text>
                  <text>支出:¥{{(countDataList.totalExpense || 0).toFixed(2)}}</text>
                  <text>收入:¥{{((countDataList.totalIncome || 0) / 100).toFixed(2)}}</text>
                  <text>支出:¥{{((countDataList.totalExpense || 0) / 100).toFixed(2)}}</text>
               </view>
            </view>
            <view class="item-list">
@@ -113,7 +113,7 @@
                  <view  @click="checkType(2)" :class="tempType === 2?'sear-item-list-item active':'sear-item-list-item'">提现退回</view>
                  <view  @click="checkType(3)" :class="tempType === 3?'sear-item-list-item active':'sear-item-list-item'">平台奖励</view>
                  <view  @click="checkType(4)" :class="tempType === 4?'sear-item-list-item active':'sear-item-list-item'">责任扣款</view>
                  <view  @click="checkType(5)" :class="tempType === 5?'sear-item-list-item active':'sear-item-list-item'">异常金额</view>
                  <view  @click="checkType(5)" :class="tempType === 5?'sear-item-list-item active':'sear-item-list-item'">异常转运</view>
                  <view style="width: 216rpx; height: 0;"></view>
               </view>
            </view>
@@ -166,6 +166,7 @@
      data() {
         return {
            currentPage:1,
            loading:false,
            total:0,
            active:0,
            wordsWidth:250,
@@ -240,6 +241,7 @@
                return value
            },
         getShopPage() {
            console.log(this.loading, this.hasNext)
            if(this.loading || !this.hasNext){
               return
            }
@@ -248,6 +250,12 @@
               this.hasNext = true
               this.dataList=[]
            }
            console.log({
                  startTime: this.startDate || this.defaultStartDate,
                  endTime: this.endDate || this.defaultEndDate,
                  type: this.type,
                  optType: this.active === 1?1:(this.active === 2?-1:'')
               })
            this.$u.api.driverPage({
               capacity: 10,
               model: {
@@ -259,15 +267,16 @@
               page: this.currentPage
            }).then(res => {
               if (res.code == 200) {
                  this.dataList.push(...res.data.records)
                  const records = res.data.records || []
                  this.dataList.push(...records)
                  this.total = res.data.total
                  this.currentPage = this.currentPage+1
                  if (this.dataList.length >= res.data.total) {
                     this.hasNext = false
                  } else {
                     this.hasNext = true
                  }
                  this.currentPage++
                  this.hasNext = this.dataList.length < res.data.total
               }
            }).catch(err => {
               console.log(err)
            }).finally(() => {
               this.loading = false
            })
         },
         getShopSummary() {
@@ -383,7 +392,7 @@
               2: '提现退回',
               3: '平台奖励',
               4: '责任扣款',
               5: '异常金额'
               5: '异常转运'
            }
            return typeMap[type] || ''
         },
@@ -394,7 +403,7 @@
               2: '提现退回',
               3: '平台奖励',
               4: '责任扣款',
               5: '异常金额'
               5: '异常转运'
            }
            return typeMap[type] || ''
         },
@@ -428,7 +437,7 @@
            this.tempType = index
         },
         getFirstPageData(){
            this.currentPage = 0
            this.currentPage = 1
            this.hasNext=true
            this.loading=false
            this.total=0