From ce06ca62a0dd65d4a8fb57126948449c804ad77e Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 19 五月 2026 19:40:08 +0800
Subject: [PATCH] 提交
---
small-program/shop/pages/wallet/wallet.vue | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/small-program/shop/pages/wallet/wallet.vue b/small-program/shop/pages/wallet/wallet.vue
index 0b05a48..f2a329f 100644
--- a/small-program/shop/pages/wallet/wallet.vue
+++ b/small-program/shop/pages/wallet/wallet.vue
@@ -66,14 +66,16 @@
<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 ? '璐d换鎵f' : 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, 5].includes(item.type) ? '-' : '+'}}{{item.amountInfo || 0}}</text>
<text></text>
</view>
</view>
@@ -114,11 +116,14 @@
<view class="sear-item">
<view class="sear-item-label">浜ゆ槗绫诲瀷</view>
<view class="sear-item-list">
- <view @click="checkType(0)" :class="tpe == 0?'sear-item-list-item active':'sear-item-list-item'">鍏ㄩ儴</view>
+ <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(5)" :class="tempType == 5?'sear-item-list-item active':'sear-item-list-item'">璐d换鎵f</view>
+ <view @click="checkType(6)" :class="tempType == 6?'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'">璐d换鎵f</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>
@@ -247,7 +252,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 : '')))))),
},
page: this.currentPage
}).then(res => {
@@ -272,7 +277,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
@@ -332,7 +337,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 ? '璐d换鎵f' : (this.type === 5 ? '寮傚父閲戦' : (this.type === 6 ? '鎻愮幇閫�鍥�' : '')))))
if(t1 !='' && t2 !=''){
this.wordsWidth = 350
}
--
Gitblit v1.9.3