页面切图
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
</view>
|
||||
<uni-fab ref="fab" direction="vertical" horizontal="right" vertical="bottom" :content="content"
|
||||
@trigger="trigger" />
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</Cn-page>
|
||||
@@ -121,6 +121,15 @@ export default {
|
||||
let userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||
console.log(userInfo.role);
|
||||
switch (userInfo.role) {
|
||||
case 1:
|
||||
this.content.splice(0, 0, {
|
||||
iconPath: '/static/version.png',
|
||||
text: '版本',
|
||||
}, {
|
||||
iconPath: '/static/template.png',
|
||||
text: '模版',
|
||||
})
|
||||
break;
|
||||
case 3:
|
||||
this.content.splice(1, 0, {
|
||||
iconPath: '/static/transfer.png',
|
||||
@@ -128,7 +137,7 @@ export default {
|
||||
})
|
||||
break;
|
||||
case 4:
|
||||
this.content.splice(0, 0,{
|
||||
this.content.splice(0, 0, {
|
||||
iconPath: '/static/subordinate.png',
|
||||
text: '用户',
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user