1.2.4
This commit is contained in:
3
androidPrivacy.json
Normal file
3
androidPrivacy.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"prompt" : "none"
|
||||||
|
}
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
"name" : "灿能物联",
|
"name" : "灿能物联",
|
||||||
"appid" : "__UNI__88BC25B",
|
"appid" : "__UNI__88BC25B",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.2.2",
|
"versionName" : "1.2.4",
|
||||||
"versionCode" : 122,
|
"versionCode" : 124,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<Cn-htmlToImg domId="header" @renderFinish="renderFinish">
|
<Cn-htmlToImg domId="header" @renderFinish="renderFinish">
|
||||||
<view class="header" id="header" ref="header" @click="previewImg">
|
<view class="header" id="header" ref="header" @click="previewImg">
|
||||||
<img
|
<img
|
||||||
:src="deviceInfo.filePath"
|
:src="topoImg"
|
||||||
style="width: 375px; display: block"
|
style="width: 375px; display: block"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
@load="domLoading = false"
|
@load="domLoading = false"
|
||||||
@@ -119,6 +119,7 @@ export default {
|
|||||||
navMenuActive: 0,
|
navMenuActive: 0,
|
||||||
navHeight: 0,
|
navHeight: 0,
|
||||||
img: '',
|
img: '',
|
||||||
|
topoImg:'',
|
||||||
navMenuList: [
|
navMenuList: [
|
||||||
{
|
{
|
||||||
text: '基本',
|
text: '基本',
|
||||||
@@ -247,6 +248,19 @@ export default {
|
|||||||
this.navMenuActive = idx
|
this.navMenuActive = idx
|
||||||
uni.pageScrollTo({scrollTop: 0, duration: 0})
|
uni.pageScrollTo({scrollTop: 0, duration: 0})
|
||||||
},
|
},
|
||||||
|
downloadImg() {
|
||||||
|
uni.downloadFile({
|
||||||
|
url: this.deviceInfo.filePath,
|
||||||
|
success: (res) => {
|
||||||
|
console.log(res)
|
||||||
|
pathToBase64(res.tempFilePath).then((res) => {
|
||||||
|
console.log(res)
|
||||||
|
this.topoImg = res
|
||||||
|
})
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
init() {
|
init() {
|
||||||
console.log('init')
|
console.log('init')
|
||||||
|
|
||||||
@@ -255,6 +269,7 @@ export default {
|
|||||||
queryTopologyDiagram(this.devId).then((res) => {
|
queryTopologyDiagram(this.devId).then((res) => {
|
||||||
res.data.filePath = this.$config.static + res.data.filePath
|
res.data.filePath = this.$config.static + res.data.filePath
|
||||||
this.deviceInfo = res.data
|
this.deviceInfo = res.data
|
||||||
|
this.downloadImg()
|
||||||
uni.setNavigationBarTitle({title: this.deviceInfo.devName || '设备详情'})
|
uni.setNavigationBarTitle({title: this.deviceInfo.devName || '设备详情'})
|
||||||
this.topolodyData.filter((item) => {
|
this.topolodyData.filter((item) => {
|
||||||
let index = this.deviceInfo.appsLineTopologyDiagramPO.findIndex((element) => {
|
let index = this.deviceInfo.appsLineTopologyDiagramPO.findIndex((element) => {
|
||||||
|
|||||||
@@ -92,12 +92,12 @@ export default {
|
|||||||
url: '/pages/home/selectEngineering',
|
url: '/pages/home/selectEngineering',
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if(this.userInfo.authorities === 'tourist'){
|
if (this.userInfo.authorities === 'tourist') {
|
||||||
return uni.showToast({
|
return uni.showToast({
|
||||||
title: '此功能仅对VIP用户开放',
|
title: '此功能仅对VIP用户开放',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
})
|
})
|
||||||
}else if(this.userInfo.authorities === 'market_user'){
|
} else if (this.userInfo.authorities === 'market_user') {
|
||||||
return uni.showToast({
|
return uni.showToast({
|
||||||
title: '请联系管理员配置工程',
|
title: '请联系管理员配置工程',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
@@ -171,17 +171,25 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||||
if (
|
let access_token = uni.getStorageSync(this.$cacheKey.access_token)
|
||||||
this.userInfo.authorities === 'app_vip_user' ||
|
if (!access_token) {
|
||||||
this.userInfo.authorities == 5 ||
|
uni.reLaunch({
|
||||||
this.userInfo.authorities === 'tourist'
|
url: `/pages/user/login`
|
||||||
) {
|
})
|
||||||
// uni.setTabBarBadge({
|
} else {
|
||||||
// index: 1,
|
if (
|
||||||
// text: '6',
|
this.userInfo.authorities === 'app_vip_user' ||
|
||||||
// })
|
this.userInfo.authorities == 5 ||
|
||||||
|
this.userInfo.authorities === 'tourist'
|
||||||
|
) {
|
||||||
|
// uni.setTabBarBadge({
|
||||||
|
// index: 1,
|
||||||
|
// text: '6',
|
||||||
|
// })
|
||||||
|
}
|
||||||
|
this.init()
|
||||||
}
|
}
|
||||||
this.init()
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user