页面切图

This commit is contained in:
仲么了
2023-02-10 16:32:41 +08:00
parent 1e81b90b8f
commit 51f9add37c
12 changed files with 447 additions and 28 deletions

View File

@@ -20,7 +20,7 @@
<ShuChu v-else-if="navMenuActive == 2"></ShuChu>
<GanJieDian v-else-if="navMenuActive == 3"></GanJieDian>
<ZhuangTaiLiang v-else-if="navMenuActive == 4"> </ZhuangTaiLiang>
<QiTa v-else-if="navMenuActive == 5"></QiTa>
<QiTa v-else-if="navMenuActive == 5"></QiTa>
<view style="height:20rpx"></view>
</view>
<uni-fab ref="fab" direction="vertical" horizontal="right" vertical="bottom" :content="content"
@@ -63,15 +63,15 @@ export default {
text: '干接点'
}, {
text: '状态量'
},{
}, {
text: '其他'
}],
content: [{
iconPath: '/static/record.png',
text: '记录',
}, {
iconPath: '/static/report.png',
text: '告警',
}, {
iconPath: '/static/record.png',
text: '记录',
}, {
iconPath: '/static/about.png',
text: '关于',
@@ -108,6 +108,8 @@ export default {
uni.navigateTo({ url: '/pages/device/transfer' })
} else if (e.item.text === '反馈') {
uni.navigateTo({ url: '/pages/device/feedback' })
} else if (e.item.text === '用户') {
uni.navigateTo({ url: '/pages/device/user' })
}
this.$refs.fab.close()
},
@@ -119,7 +121,7 @@ export default {
console.log(userInfo.role);
switch (userInfo.role) {
case 3:
this.content.splice(0, 0, {
this.content.splice(1, 0, {
iconPath: '/static/transfer.png',
text: '移交',
})
@@ -128,12 +130,16 @@ export default {
this.content.splice(0, 0, {
iconPath: '/static/share.png',
text: '分享',
}, {
iconPath: '/static/subordinate.png',
text: '用户',
}, {
iconPath: '/static/delate.png',
text: '删除',
})
break;
case 5:
this.content.splice(0, 0, {
this.content.push({
iconPath: '/static/feedback.png',
text: '反馈',
})