Commit 2cbea4d8 authored by Your Name's avatar Your Name

互动审核员不能点击学习项目

parent fa6982b0
<template> <template>
<div class="my-tabbar"> <div class="my-tabbar">
<van-tabbar v-model="activeIndex" active-color="#EE0A24" route> <van-tabbar v-model="activeIndex" active-color="#EE0A24" route>
<van-tabbar-item v-for="item in iconList" :to="item.url" :key="item.title"> <van-tabbar-item v-for="item in iconList" @click="changeHandle(item.title, +userInfo.roleList[0])" :to="+userInfo.roleList[0] == 17 && item.title == '学习项目' ? '' : item.url" :key="item.title">
<span>{{item.title}}</span> <span>{{item.title}}</span>
<template #icon="props"> <template #icon="props">
<img :src="props.active ? item.icon.active : item.icon.inactive" /> <img :src="props.active ? item.icon.active : item.icon.inactive" />
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
methods: { methods: {
changeHandle(index1,index2) { changeHandle(index1,index2) {
// console.log(index1,index2) // console.log(index1,index2)
if(index1 == '观影互动' && index2 == 2 || index1 == '学习项目' && index2 == 17) { if(index1 == '学习项目' && index2 == 17) {
this.$toast('暂无该权限!') this.$toast('暂无该权限!')
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment