页面切图

This commit is contained in:
仲么了
2023-02-20 14:19:28 +08:00
parent 7d28b3476a
commit 5e69ab1da6
50 changed files with 1136 additions and 213 deletions

View File

@@ -1,5 +1,5 @@
<template>
<Cn-page :loading="loading">
<Cn-page :loading="loading" noPadding>
<view slot="body">
<view class="index">
<!-- 运维 -->
@@ -12,12 +12,11 @@
<ZhuYongHu v-if="userInfo.role == 4" />
<!-- 子用户 -->
<ZiYongHu v-if="userInfo.role == 5" />
<uni-fab ref="fab" direction="vertical" horizontal="right" vertical="bottom" :content="content"
@trigger="trigger" />
</view>
</view>
</Cn-page>
</Cn-page>
</template>
<script>
import YunWei from "./comp/indexYunWei.vue";
@@ -37,7 +36,7 @@ export default {
return {
loading: false,
userInfo: {
role: 1
role: 4
}
}
},
@@ -61,15 +60,15 @@ export default {
text: '子用户',
}
]
if (arr.indexOf(this.userInfo.role) > -1) {
content.push({
iconPath: '/static/device.png',
text: '添加设备',
}, {
iconPath: '/static/gateway.png',
text: '添加网关',
})
}
// if (arr.indexOf(this.userInfo.role) > -1) {
// content.push({
// iconPath: '/static/device.png',
// text: '添加设备',
// }, {
// iconPath: '/static/gateway.png',
// text: '添加网关',
// })
// }
return content
}
},
@@ -128,13 +127,13 @@ export default {
this.loading = false
},
onShow () {
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo) || { role: 1 }
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo) || { role: 4 }
}
}
</script>
<style lang="scss">
.index {
padding: 34rpx 0;
padding: 34rpx 0 0;
}
/deep/ .uni-card {