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