|
@@ -12,16 +12,21 @@
|
|
|
<div class="record-list">
|
|
|
<div class="listItem" v-for="(item, index) in records" :key="index">
|
|
|
<div class="flex listItemC">
|
|
|
- <div class="tr4">金额</div>
|
|
|
+ <div class="tr4">类型</div>
|
|
|
+ <div class="money-col">金额</div>
|
|
|
<div class="status-text">状态</div>
|
|
|
<div class="remark">详情</div>
|
|
|
<div class="right">日期</div>
|
|
|
</div>
|
|
|
<div class="flex listItemB">
|
|
|
- <div class="tr4">{{ item.money }}</div>
|
|
|
- <div class="status-text">{{ getStatusText(item.stat) }}</div>
|
|
|
- <div class="remark">{{ item.remark }}</div>
|
|
|
- <div class="right gggg">{{ item.addtime }}</div>
|
|
|
+ <div class="tr4">{{ getTypeText(item.type) }}</div>
|
|
|
+ <div class="money-col money-text">{{ item.money }}</div>
|
|
|
+ <div class="status-text">{{ getStatusText(item.stat, item) }}</div>
|
|
|
+ <div class="remark">{{ item.remark || '-' }}</div>
|
|
|
+ <div class="right gggg">
|
|
|
+ <div>{{ item.addtime.split(' ')[0] }}</div>
|
|
|
+ <div>{{ item.addtime.split(' ')[1] }}</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -61,13 +66,42 @@ export default {
|
|
|
console.error('获取提现记录失败:', error);
|
|
|
}
|
|
|
},
|
|
|
- getStatusText(stat) {
|
|
|
+ getStatusText(stat, item) {
|
|
|
+ if (stat === 0 && item.type === 2) {
|
|
|
+ // 获取提现日期
|
|
|
+ const withdrawDate = new Date(item.addtime);
|
|
|
+ const cutoffDate = new Date('2025-06-29 00:00:00');
|
|
|
+
|
|
|
+ if (withdrawDate < cutoffDate) {
|
|
|
+ return '审核已通过,7月20号到账您的银行卡';
|
|
|
+ } else {
|
|
|
+ // 计算到账日期:提现日期 + 21天
|
|
|
+ const arrivalDate = new Date(withdrawDate);
|
|
|
+ arrivalDate.setDate(withdrawDate.getDate() + 21);
|
|
|
+
|
|
|
+ const month = arrivalDate.getMonth() + 1;
|
|
|
+ const day = arrivalDate.getDate();
|
|
|
+
|
|
|
+ return `审核已通过,${month}月${day}号到账您的银行卡`;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
const statusMap = {
|
|
|
0: '审核中',
|
|
|
1: '提现成功',
|
|
|
2: '提现失败'
|
|
|
};
|
|
|
return statusMap[stat] || '未知';
|
|
|
+ },
|
|
|
+ getTypeText(type) {
|
|
|
+ const typeMap = {
|
|
|
+ 1: '红旗资产',
|
|
|
+ 2: '退休补贴',
|
|
|
+ 3: '党员薪资',
|
|
|
+ 4: '每日分红',
|
|
|
+ 5: '原始股权'
|
|
|
+ };
|
|
|
+ return typeMap[type] || '未知';
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -144,12 +178,37 @@ export default {
|
|
|
|
|
|
.tr4 {
|
|
|
flex: 0 0 75px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
text-align: center;
|
|
|
+ gap: 2px;
|
|
|
+}
|
|
|
+
|
|
|
+.type-text {
|
|
|
+ font-size: 13px;
|
|
|
+ color: #666;
|
|
|
+}
|
|
|
+
|
|
|
+.money-col {
|
|
|
+ flex: 0 0 70px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.money-text {
|
|
|
+ font-size: 16px;
|
|
|
+ color: #222;
|
|
|
+ font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.right {
|
|
|
flex: 0 0 132px;
|
|
|
text-align: right;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: flex-end;
|
|
|
+ word-break: break-all;
|
|
|
}
|
|
|
|
|
|
.gggg {
|
|
@@ -169,7 +228,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
.remark {
|
|
|
- flex: 1 1 87px;
|
|
|
+ flex: 0 1 auto;
|
|
|
+ min-width: 20px;
|
|
|
+ max-width: 120px;
|
|
|
text-align: left;
|
|
|
color: #666;
|
|
|
font-size: 13px;
|