修改报警
This commit is contained in:
parent
bbb423b1d6
commit
de72340de5
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="holdon">
|
||||
<view class="holdon" v-if="accountType == 6">
|
||||
<image class="ball" @click="goNavigateTo()"
|
||||
:style="'left:'+(moveX == 0 & x>0? x+'%':moveX+'px')+';top:'+(moveY == 0 & y>0? y+'%':moveY+'px')+';transform: translate(-'+(x+'%') +',-' +(y+'%') +');'"
|
||||
@touchstart="drag_start" @touchmove.prevent="drag_hmove" src="@/static/rescue-phone.png" mode="aspectFit">
|
||||
@ -46,6 +46,7 @@
|
||||
longitude: "",
|
||||
latitude: "",
|
||||
},
|
||||
accountType:'',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@ -56,7 +57,8 @@
|
||||
this.windowWidth = windowWidth
|
||||
this.windowHeight = windowHeight
|
||||
this.projectSn = JSON.parse(uni.getStorageSync('userInfo')).sn;
|
||||
this.workerInfoId = JSON.parse(uni.getStorageSync('userInfo')).userId;
|
||||
this.workerInfoId = JSON.parse(uni.getStorageSync('userInfo')).workerId;
|
||||
this.accountType = JSON.parse(uni.getStorageSync('userInfo')).accountType;
|
||||
console.log(JSON.parse(uni.getStorageSync('userInfo')));
|
||||
},
|
||||
methods: {
|
||||
|
||||
4
main.js
4
main.js
@ -41,8 +41,8 @@ if (process.env.NODE_ENV === 'development') {
|
||||
// Vue.prototype.url_config = 'http://182.90.224.237:51234/' //雄哥内网穿透地址
|
||||
// Vue.prototype.url_config = 'http://jxj.zhgdyun.com:61212/' //杰哥内网穿透地址
|
||||
// Vue.prototype.url_config = ' http://192.168.34.221:28888/' //郭圣雄本地
|
||||
// Vue.prototype.url_config = 'http://192.168.34.221:9111/' //郭圣雄本地
|
||||
Vue.prototype.url_config = 'http://192.168.34.155:19111/' //彭洁本地
|
||||
Vue.prototype.url_config = 'http://192.168.34.221:9111/' //郭圣雄本地
|
||||
// Vue.prototype.url_config = 'http://192.168.34.155:19111/' //彭洁本地
|
||||
// Vue.prototype.work_url = 'http://47.93.215.234:19997' // 工作流线上地址(弃用)
|
||||
// Vue.prototype.work_url = 'http://42.180.188.17:19997' // 工作流线上地址
|
||||
// Vue.prototype.work_url = 'http://42.180.188.17:19097' // 工作流测试地址
|
||||
|
||||
@ -148,6 +148,7 @@
|
||||
let {
|
||||
accountType
|
||||
} = res.result;
|
||||
|
||||
if (accountType == 5 || accountType == 6 || accountType == 10) {
|
||||
if (this.type == "user") {
|
||||
// 用户端
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user