用户分享列表

This commit is contained in:
仲么了
2023-09-01 15:05:21 +08:00
parent fb5de4370b
commit 47f5beccab
7 changed files with 114 additions and 24 deletions

View File

@@ -32,7 +32,7 @@
<template v-for="(item,index) in IOData">
<view class="item">{{ item.clDid }}</view>
<view class="item">
<view style="width: 30rpx"> {{ item.value || '-'}}</view>
<view style="width: 30rpx"> {{ item.value || '-' }}</view>
<view v-if="item.value"> °C</view>
</view>
</template>
@@ -225,7 +225,7 @@ export default {
} else if (e.item.text === '反馈') {
uni.navigateTo({url: '/pages/device/feedback'})
} else if (e.item.text === '用户') {
uni.navigateTo({url: '/pages/device/user'})
uni.navigateTo({url: '/pages/device/user?id=' + this.devId + '&isPrimaryUser=' + this.isPrimaryUser})
} else if (e.item.text === '报表') {
this.$util.toast('效果是直接打开报表')
} else if (e.item.text === '版本') {
@@ -426,6 +426,13 @@ export default {
text: '分享',
})
}
}
if (this.userInfo.authorities !== 'tourist') {
this.content.splice(0, 0, {
iconPath: '/static/subordinate.png',
text: '用户',
})
}
this.init()
},