payment.vue
1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<template>
<view>
<!-- 会员缴费 -->
<view class="appList">
<view class="appItem" v-for="item in list" @click="goDteail(item)">
<view class="status">
<text v-if="item.status==1" class="text-primary">审核中</text>
<text v-if="item.status==2" class="text-success"> 审核通过</text>
<text v-if="item.status==3" class="text-danger"> 审核拒绝</text>
<text v-if="item.status==4" class="text-warning">已退回</text>
</view>
<view class="date">
<uni-icons type="calendar" size="16" color="#7D8592"></uni-icons>
{{item.commitTime}} 提交
</view>
<view class="name">{{item.paymentName}}</view>
<view class="flexbox">
<view>
人数合计
<view>{{item.personCount}}</view>
</view>
<view>
新会员合计
<view>{{item.newPersonCount}}</view>
</view>
<view>
年限合计
<view>{{item.totalYear}}</view>
</view>
</view>
<view class="func" v-if="item.status==0">
<button>提交审核</button>
</view>
</view>
</view>
</view>
</template>
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
onMounted,
ref
} from 'vue'
import {
onLoad
} from '@dcloudio/uni-app'
const queryParams = ref({
// pageNum: 1,
// pageSize: 10
})
const list = ref([])
const total = ref(0)
onMounted(() => {
getList()
})
function getList() {
api.getPaymentList(queryParams.value).then(res => {
list.value = res.rows
total.value = res.total
})
}
function goDteail(item) {
let path = `/pages/personalVip/paymentDetail?wfCode=${item.wfCode}`
uni.navigateTo({
url: path
});
}
</script>
<style>
</style>