more.vue 2.05 KB
<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>