页面切图

This commit is contained in:
仲么了
2023-02-27 14:56:08 +08:00
parent 89f0e79ceb
commit a8eef6d797
15 changed files with 387 additions and 20 deletions

View File

@@ -154,8 +154,11 @@ export default {
} else if (e.item.text === '用户') {
uni.navigateTo({ url: '/pages/device/user' })
} else if (e.item.text === '报表') {
// uni.navigateTo({ url: '/pages/device/user' })
this.$util.toast('效果是直接打开报表')
}else if (e.item.text === '版本') {
this.$util.toast('功能暂未开放')
}else if (e.item.text === '模版') {
this.$util.toast('效果是功能暂未开放直接打开报表')
}
this.$refs.fab.close()
},
@@ -167,6 +170,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(0, 0, {
iconPath: '/static/transfer.png',