修改报警

This commit is contained in:
”Rain“ 2024-05-22 22:52:32 +08:00
parent bbb423b1d6
commit de72340de5
3 changed files with 7 additions and 4 deletions

View File

@ -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: {

View File

@ -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' // 工作流测试地址

View File

@ -148,6 +148,7 @@
let {
accountType
} = res.result;
if (accountType == 5 || accountType == 6 || accountType == 10) {
if (this.type == "user") {
//