more.vue
2.05 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
79
80
81
82
83
84
85
86
87
88
89
90
<template>
<view>
<view v-if="userType=='1'" class="girdBox f3">
<view @click="goPath('/pages/rank/approval?type=3')">
<image src="@/static/icon/21.png" />越段考试审核
</view>
<view @click="goPath('/pages/rank/scoreApproval?type=3')">
<image src="@/static/icon/22.png" />越段成绩审核
</view>
<view @click="goPath('/pages/level/ztx/cert?type=3')">
<image src="@/static/icon/23.png" />越段证书发布
</view>
</view>
<view class="girdBox" v-if="userType=='2'">
<view @click="goPath('/pages/rank/apply?type=2')">
<image src="@/static/icon/11.png" />段位考试申请
</view>
<view @click="goPath('/pages/exam/payment?type=2')">
<image src="@/static/icon/13.png" />段位考试<br />缴费单
</view>
<view @click="goPath('/pages/exam/score?type=2')">
<image src="@/static/icon/12.png" />段位考试<br />成绩录入
</view>
<view @click="goPath('/pages/rank/apply?type=3')">
<image src="@/static/icon/14.png" />越位考试<br />申请
</view>
<view @click="goPath('/pages/exam/payment?type=3')">
<image src="@/static/icon/16.png" />越段考试<br />缴费单
</view>
<view @click="goPath('/pages/exam/score?type=3')">
<image src="@/static/icon/15.png" />越段考试<br />成绩录入
</view>
</view>
</view>
</template>
<script setup>
import {
onShow,onLoad
} from '@dcloudio/uni-app'
import {
ref
} from 'vue'
const app = getApp()
const userType = ref()
onLoad((option)=>{
userType.value = option.userType
})
function goPath(path) {
uni.navigateTo({
url: path
});
}
</script>
<style scoped lang="scss">
.girdBox {
display: flex;
flex-wrap: wrap;
padding: 30rpx 0;
background: #FFFFFF;
margin: 50rpx;
border-radius: 20rpx;
view {
width: 25%;
text-align: center;
padding: 2% 0;
font-size: 24rpx;
color: #434343;
image {
width: 80rpx;
height: 80rpx;
display: block;
margin: auto;
}
}
}
.f3{
view {
width:33%;}
}
</style>