跳转
This commit is contained in:
15
App.vue
15
App.vue
@@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import {queryDictDataCache} from './common/api/dictionary.js'
|
import { queryDictDataCache } from './common/api/dictionary.js'
|
||||||
import {getImageUrl} from '@/common/api/basic'
|
import { getImageUrl } from '@/common/api/basic'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function () {
|
onLaunch: function () {
|
||||||
@@ -23,6 +23,17 @@ export default {
|
|||||||
onHide: function () {
|
onHide: function () {
|
||||||
console.log('App Hide')
|
console.log('App Hide')
|
||||||
},
|
},
|
||||||
|
onShow: function (options) {
|
||||||
|
// 获取从推送消息中传递的参数
|
||||||
|
this.pushParams = options.query
|
||||||
|
|
||||||
|
// 判断是否从推送消息中进入应用,如果是,则跳转到指定页面
|
||||||
|
if (options.query && options.querytargetPage) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: options.querytargetPage,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"name" : "灿能物联",
|
"name" : "灿能物联",
|
||||||
"appid" : "__UNI__88BC25B",
|
"appid" : "__UNI__88BC25B",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.3.2",
|
"versionName" : "1.3.4",
|
||||||
"versionCode" : 132,
|
"versionCode" : 134,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
@@ -139,8 +139,8 @@
|
|||||||
"proxy" : {
|
"proxy" : {
|
||||||
"/api" : {
|
"/api" : {
|
||||||
"https" : true,
|
"https" : true,
|
||||||
// "target" : "https://pqmcn.com:8092/api",
|
"target" : "https://pqmcn.com:8092/api",
|
||||||
"target" : "http://192.168.1.115:10215",
|
// "target" : "http://192.168.1.13:10215",
|
||||||
"changOrigin" : true,
|
"changOrigin" : true,
|
||||||
"pathRewrite" : {
|
"pathRewrite" : {
|
||||||
"/api" : ""
|
"/api" : ""
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
show-badge
|
show-badge
|
||||||
badgeType="error"
|
badgeType="error"
|
||||||
:badge-text="item.status == 1 ? '' : '未读'"
|
:badge-text="item.status == 1 ? '' : '未读'"
|
||||||
:title="item.showName"
|
:title="'告警代码:'+item.code"
|
||||||
:note="item.startTime"
|
:note="item.startTime"
|
||||||
@click="jump(item)"
|
@click="jump(item)"
|
||||||
clickable
|
clickable
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<view class="mb5"> 设备名称:{{ detail.equipmentName }}</view>
|
<view class="mb5"> 设备名称:{{ detail.equipmentName }}</view>
|
||||||
<view class="mb5"> 项目名称:{{ detail.projectName }} </view>
|
<view class="mb5"> 项目名称:{{ detail.projectName }} </view>
|
||||||
<view class="mb5"> 工程名称:{{ detail.engineeringName }} </view>
|
<view class="mb5"> 工程名称:{{ detail.engineeringName }} </view>
|
||||||
<view class="mb5"> 告警名称:{{ detail.showName }}</view>
|
<view class="mb5"> 告警代码:{{ detail.code }}</view>
|
||||||
<view class="mb5" v-for="(item, textIndex) in detail.dataSet" :key="textIndex">
|
<view class="mb5" v-for="(item, textIndex) in detail.dataSet" :key="textIndex">
|
||||||
{{ item.showName + ':' + (item.value == 3.1415926 ? '-' : item.value) + (item.unit || '') }}
|
{{ item.showName + ':' + (item.value == 3.1415926 ? '-' : item.value) + (item.unit || '') }}
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
Reference in New Issue
Block a user