122 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Vue
		
	
	
	
		
		
			
		
	
	
			122 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Vue
		
	
	
	
|  | <template> | ||
|  | 	<view class="content"> | ||
|  | 		<view class="theflex"> | ||
|  | 			<view @click="goRouter(item.path)" class="kuaibox" v-if="item.isShow" v-for="(item,index) in kuaiList" | ||
|  | 				:key="index"> | ||
|  | 				<view class=""> | ||
|  | 					{{item.name}} | ||
|  | 				</view> | ||
|  | 				<image class="kuaiimg" :src="item.url" mode=""></image> | ||
|  | 			</view> | ||
|  | 		</view> | ||
|  | 	</view> | ||
|  | </template> | ||
|  | 
 | ||
|  | <script> | ||
|  | 	import * as mar from "@/config/market.js" | ||
|  | 	export default { | ||
|  | 		data() { | ||
|  | 			return { | ||
|  | 				kuaiList: [{ | ||
|  | 					name: "业绩分布", | ||
|  | 					url: "../../static/images/mark1.png", | ||
|  | 					path: "", | ||
|  | 					value: "marketDynamics", | ||
|  | 					isShow: false, | ||
|  | 				}, { | ||
|  | 					name: "奖金明细", | ||
|  | 					url: "../../static/images/mark2.png", | ||
|  | 					path: "/pages/bonus/index", | ||
|  | 					value: 'incomeDetail', | ||
|  | 					isShow: false, | ||
|  | 				}, { | ||
|  | 					name: "奖金来源", | ||
|  | 					url: "../../static/images/mark3.png", | ||
|  | 					path: "/pages/bonusSource/index", | ||
|  | 					value: 'bonusSource', | ||
|  | 					isShow: false, | ||
|  | 				}, { | ||
|  | 					name: "考核明细", | ||
|  | 					url: "../../static/images/mark5.png", | ||
|  | 					path: "/pages/market/examineDetail/examineDetail", | ||
|  | 					isShow: false, | ||
|  | 					value: 'appraisal', | ||
|  | 				}, { | ||
|  | 					name: "注册列表", | ||
|  | 					url: "../../static/images/mark6.png", | ||
|  | 					path: "/pages/market/registerList/registerList", | ||
|  | 					isShow: false, | ||
|  | 					value: 'registration', | ||
|  | 				}, { | ||
|  | 					name: "招商列表", | ||
|  | 					url: "../../static/images/mark7.png", | ||
|  | 					path: "/pages/market/investmentList/investmentList", | ||
|  | 					isShow: false, | ||
|  | 					value: 'investment', | ||
|  | 				}, { | ||
|  | 					name: "活动专区", | ||
|  | 					url: "../../static/images/mark9.png", | ||
|  | 					path: "/pages/market/activeArea/activeArea", | ||
|  | 					isShow: false, | ||
|  | 					value: 'activeZone', | ||
|  | 				}] | ||
|  | 			} | ||
|  | 		}, | ||
|  | 		mounted() { | ||
|  | 			this.getMenuLists() | ||
|  | 		}, | ||
|  | 		methods: { | ||
|  | 			goRouter(path) { | ||
|  | 				uni.navigateTo({ | ||
|  | 					url: path | ||
|  | 				}) | ||
|  | 			}, | ||
|  | 			getMenuLists() { | ||
|  | 				mar.menuList().then((res) => { | ||
|  | 					res.data.forEach((item) => { | ||
|  | 						this.kuaiList.forEach((items) => { | ||
|  | 							if (item.menuKey == items.value) { | ||
|  | 								items.isShow = true | ||
|  | 							} | ||
|  | 						}) | ||
|  | 					}) | ||
|  | 				}) | ||
|  | 			} | ||
|  | 		} | ||
|  | 	} | ||
|  | </script> | ||
|  | 
 | ||
|  | <style lang="scss" scoped> | ||
|  | 	.content { | ||
|  | 		background-color: #F2F2F2; | ||
|  | 		height: 100vh; | ||
|  | 		padding: 4rpx 21rpx 500rpx 21rpx; | ||
|  | 
 | ||
|  | 		.theflex { | ||
|  | 			display: flex; | ||
|  | 			flex-wrap: wrap; | ||
|  | 			justify-content: space-between; | ||
|  | 		} | ||
|  | 
 | ||
|  | 		.kuaibox { | ||
|  | 			width: 40%; | ||
|  | 			// height: 150rpx;
 | ||
|  | 			border-radius: 20rpx; | ||
|  | 			display: flex; | ||
|  | 			align-items: center; | ||
|  | 			justify-content: space-between; | ||
|  | 			padding: 60rpx 40rpx 60rpx 22rpx; | ||
|  | 			margin: 13rpx 0rpx; | ||
|  | 			background-color: #FFFFFF; | ||
|  | 			font-size: 24rpx; | ||
|  | 			font-family: Source Han Sans CN; | ||
|  | 			font-weight: 400; | ||
|  | 			color: #666666; | ||
|  | 
 | ||
|  | 			.kuaiimg { | ||
|  | 				width: 52rpx; | ||
|  | 				height: 53rpx; | ||
|  | 			} | ||
|  | 		} | ||
|  | 	} | ||
|  | </style> |