|
@@ -33,7 +33,7 @@
|
|
|
<view class="list-item flex justify-between align-center" v-else>
|
|
|
<view class="time">
|
|
|
<view class="status">
|
|
|
- {{item.status}}
|
|
|
+ 状态:{{getStatusText(item.status)}}
|
|
|
</view>
|
|
|
<view class="time">
|
|
|
{{item.createTime}}
|
|
@@ -83,6 +83,28 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
+/**
|
|
|
+ * 获取状态文本
|
|
|
+ * @param {number} status - 状态值
|
|
|
+ * @returns {string} - 状态文本
|
|
|
+ */
|
|
|
+function getStatusText(status) {
|
|
|
+ switch (status) {
|
|
|
+ case 1:
|
|
|
+ return '申请中';
|
|
|
+ case 2:
|
|
|
+ return '打款中';
|
|
|
+ case 3:
|
|
|
+ return '已到账';
|
|
|
+ case 4:
|
|
|
+ return '打款失败';
|
|
|
+ case 5:
|
|
|
+ return '驳回';
|
|
|
+ default:
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const {
|
|
|
proxy
|
|
|
} = getCurrentInstance();
|
|
@@ -95,7 +117,7 @@
|
|
|
getTotal()
|
|
|
//获取列表
|
|
|
// reset()
|
|
|
- // getList()
|
|
|
+ getList()
|
|
|
})
|
|
|
|
|
|
onMounted(async () => {
|