页面切图

This commit is contained in:
仲么了
2023-02-09 08:50:01 +08:00
parent 3f50cca6db
commit 1393a997a8
29 changed files with 625 additions and 80 deletions

View File

@@ -5,7 +5,7 @@
<image mode="aspectFill" class="mine-header-head" src="/static/head.png" />
<view class="mine-header-name hide-txt">
<view>灿能电力</view>
<view class="tag">工程</view>
<view class="tag">{{roleName}}</view>
</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
@@ -14,10 +14,9 @@
<view class="mine-nav-label">角色升级</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view> -->
<view class="mine-nav" @click="jump('message')"
>
<image mode="aspectFill" class="mine-nav-icon" src="/static/message2.png" />
<view class="mine-nav-label">个人消息</view>
<view class="mine-nav" @click="jump('message')">
<image mode="aspectFill" class="mine-nav-icon" src="/static/subordinate.png" />
<view class="mine-nav-label">子用户列表</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
<view class="mine-nav" @click="jump('gateway')"
@@ -43,11 +42,38 @@
export default {
data () {
return {
loading: false
loading: true,
userInfo: {}
}
},
computed: {
roleName () {
let roleName = ''
switch (this.userInfo.role) {
case 1:
roleName = '运维管理'
break
case 2:
roleName = '专职管理'
break
case 3:
roleName = '工程'
break
case 4:
roleName = '主用户'
break
case 5:
roleName = '子用户'
break
}
return roleName
}
},
methods: {
init () {
this.loading = false
},
upgrade (code) {
console.log(code);
@@ -79,8 +105,8 @@ export default {
}
}
},
onLoad () {
this.init()
onShow () {
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
},
}
</script>