rk
昨天 9f8b3700ffbcc616a97e7ee2ea283ef4df3d666a
small-program/shop/pages/wallet/wallet.vue
@@ -58,22 +58,24 @@
                  </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">
               <view class="item-list-item"  v-for="(item, index) in dataList" :key="index" @click="jumpDetail(item)">
                  <view class="image">
                     <image  v-if="item.type === 0" src="/static/icon/ic_shouru@2x.png" mode="widthFix"></image>
                     <image  v-if="item.type === 3" src="/static/icon/ic_shouru@2x.png" mode="widthFix"></image>
                     <image  v-if="item.type === 1" src="/static/icon/ic_tixian@2x.png" mode="widthFix"></image>
                     <image  v-if="item.type === 2" src="/static/icon/ic_tuikuan@2x.png" mode="widthFix"></image>
                     <image  v-if="item.type === 4 || item.type === 5" src="/static/icon/ic_tixian@2x.png" mode="widthFix"></image>
                  </view>
                  <view class="info">
                     <view class="info">
                        <view class="info-a">
                           <view class="info-a-label">
                           {{item.type === 0 ? '完成订单' : item.type === 1 ? '提现支出' : item.type === 2 ? '提现退回' : ''}}
                           {{item.type === 0 ? '完成订单' : item.type === 1 ? '提现支出' : item.type === 2 ? '提现退回' : item.type === 3 ? '平台奖励' : item.type === 4 ? '责任扣款' : item.type === 5 ? '保管补贴' : ''}}
                           <template  v-if="item.type === 1">
                              <text style="color: #FF0020;"  v-if="item.status == 2">处理中</text>
                              <text style="color: #FF0020;" v-else-if="item.status == 1">失败</text>
@@ -81,7 +83,7 @@
                           </template>
                           </view>
                           <view class="info-a-price">
                              <text>{{item.type==1?'-':'+'}}{{item.amountInfo || 0}}</text>
                              <text>{{[1, 4].includes(item.type) ? '-' : '+'}}{{item.amountInfo || 0}}</text>
                              <text></text>
                           </view>
                        </view>
@@ -117,7 +119,10 @@
                  <view  @click="checkType(0)" :class="tempType == 0?'sear-item-list-item active':'sear-item-list-item'">全部</view>
                  <view  @click="checkType(1)" :class="tempType == 1?'sear-item-list-item active':'sear-item-list-item'">订单结算</view>
                  <view  @click="checkType(2)" :class="tempType == 2?'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(6)" :class="tempType == 6?'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 style="width: 216rpx; height: 0;"></view>
                  <view style="width: 216rpx; height: 0;"></view>
               </view>
            </view>
@@ -215,7 +220,9 @@
         this.countDataList={}
         this.show = false
         this.initDateStr()
         uni.$on('accountListReload', this.getFirstPageData())
         uni.$on('accountListReload', ()=>{
            this.getFirstPageData()
         })
      },
      methods:{
         bindChange1 (e) {
@@ -238,21 +245,21 @@
               return
            }
            this.loading=true
            if(this.currentPage == 1){
               this.hasNext = true
               this.dataList=[]
            }
            this.$u.api.shopPage({
               capacity: 10,
               model: {
                  startTime: this.startDate || this.defaultStartDate,
                  endTime: this.endDate || this.defaultEndDate,
                  optType: this.active === 1 ? 1 : (this.active === 2 ? -1 : ''),
                  type: this.type === 1 ? 0 : (this.type === 2 ? 1 : (this.type === 4 ? 2 : '')),
                  type: this.type === 0 ? '' : (this.type === 1 ? 0 : (this.type === 2 ? 1 : (this.type === 3 ? 3 : (this.type === 4 ? 4 : (this.type === 5 ? 5 : (this.type === 6 ? 2 : '')))))),
               },
               page: this.currentPage
            }).then(res => {
               if (res.code == 200) {
                  if(res.data.page == 1){
                     this.hasNext = true
                     this.dataList=[]
                  }
                  this.dataList.push(...res.data.records)
                  this.total = res.data.total
                  this.currentPage = this.currentPage+1
@@ -269,7 +276,7 @@
               startTime: this.startDate || this.defaultStartDate,
               endTime: this.endDate || this.defaultEndDate,
               optType: this.active === 1 ? 1 : (this.active === 2 ? -1 : ''),
               type: this.type === 1 ? 0 : (this.type === 2 ? 1 : (this.type === 4 ? 2 : '')),
               type: this.type === 0 ? '' : (this.type === 1 ? 0 : (this.type === 2 ? 1 : (this.type === 3 ? 3 : (this.type === 4 ? 4 : (this.type === 5 ? 5 : (this.type === 6 ? 2 : '')))))),
            }).then(res=>{
               if(res.code == 200){
                  this.countDataList = res.data
@@ -329,7 +336,7 @@
                  this.words = '全部'
               }else {
                  let t1 = this.active === 1 ? '收入 ':(this.active === 2 ? '支出 ' : '');
                  let t2 = this.type === 1 ? '订单结算' : (this.type === 2 ? '提现': (this.type === 3 ? '订单结算退回' : (this.type === 4 ? '提现退回' : '')))
                  let t2 = this.type === 1 ? '订单结算' : (this.type === 2 ? '提现' : (this.type === 3 ? '平台奖励' : (this.type === 4 ? '责任扣款' : (this.type === 5 ? '保管补贴' : (this.type === 6 ? '提现退回' : '')))))
                  if(t1 !='' && t2 !=''){
                     this.wordsWidth = 350
                  }
@@ -373,7 +380,7 @@
            
            this.getShopStatistics()
            this.getShopSummary()
            this.getShopPage()
            this.getFirstPageData()
         },
         checkActive(index){
            this.tempActive =index