修改
This commit is contained in:
parent
460de84e77
commit
eaa0f93465
@ -36,7 +36,7 @@
|
||||
<!--v-if="bzlist.length == 2"-->
|
||||
|
||||
<!--v-if="bzlist.length == 1 && !hdorderNo"-->
|
||||
<view v-if="bzlist.length == 1 && !hdorderNo" style="display:flex;margin-bottom:20px;align-items: center;justify-content: space-between;">
|
||||
<view v-if="bzlist.length <= 2 && !hdorderNo" style="display:flex;margin-bottom:20px;align-items: center;justify-content: space-between;">
|
||||
<view style="display:flex;width:380rpx;align-items: center;color:#009688;">
|
||||
车辆到达指定位置后请点击开始换电按钮
|
||||
<!-- <up-icon name="checkmark" color="#009688" size="20" /> -->
|
||||
@ -132,6 +132,8 @@
|
||||
import { ref,inject,computed } from 'vue'
|
||||
import { onUnload } from '@dcloudio/uni-app'
|
||||
import { dzbzxq,starthz,gethzmsg } from '@/utils/service'
|
||||
import conf from '@/utils/config'
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
n:any
|
||||
index:string|number
|
||||
@ -174,8 +176,8 @@
|
||||
})
|
||||
if(props.n.status == 2){
|
||||
uni.connectSocket({
|
||||
//url: `ws://192.168.5.14:9104/wechat/websocket/${uni.getStorageSync('wxuid')}`,
|
||||
url:`ws://api.evo-techina.com/wechat/websocket/${uni.getStorageSync('wxuid')}`,
|
||||
url: `ws://api.evo-techina.com/websocket/${uni.getStorageSync('wxuid')}`,
|
||||
//url:`ws://api.evo-techina.com/wechat/websocket/${uni.getStorageSync('wxuid')}`,
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
}
|
||||
@ -223,13 +225,13 @@
|
||||
}else if(n == 3){
|
||||
return '启动对中机构'
|
||||
}else if(n == 4){
|
||||
return '取新电池'
|
||||
}else if(n == 5){
|
||||
return '拆旧电池'
|
||||
}else if(n == 6){
|
||||
return '装新电池'
|
||||
}else if(n == 7){
|
||||
}else if(n == 5){
|
||||
return '存旧电池'
|
||||
}else if(n == 6){
|
||||
return '取新电池'
|
||||
}else if(n == 7){
|
||||
return '装新电池'
|
||||
}else if(n == 8){
|
||||
return '换电完成'
|
||||
}
|
||||
|
||||
@ -196,16 +196,16 @@ let isinit = true
|
||||
|
||||
onLoad((opt:any) => {
|
||||
hdzcode.value = opt.hdzcode
|
||||
if(uni.getStorageSync('wxuid')){
|
||||
loginstate({
|
||||
wuid:uni.getStorageSync('wxuid')
|
||||
}).then((rps:any) => {
|
||||
if(rps.data && rps.data.wxToken){
|
||||
uni.setStorageSync('wxToken',rps.data.wxToken)
|
||||
}
|
||||
getinfo()
|
||||
})
|
||||
}
|
||||
// if(uni.getStorageSync('wxuid')){
|
||||
// loginstate({
|
||||
// wuid:uni.getStorageSync('wxuid')
|
||||
// }).then((rps:any) => {
|
||||
// if(rps.data && rps.data.wxToken){
|
||||
// uni.setStorageSync('wxToken',rps.data.wxToken)
|
||||
// }
|
||||
// getinfo()
|
||||
// })
|
||||
// }
|
||||
})
|
||||
|
||||
onShow(() => {
|
||||
|
||||
@ -9,13 +9,16 @@ const development = {
|
||||
//apiBaseUrl:'https://587910rq36.zicp.fun' //'/fetch/' //'http://192.168.110.73:8082/' //https://xcjf.56365.cc/' //'/fetch'//网站域名接口地址参考,发布小程序和APP时使用
|
||||
// #endif
|
||||
//apiBaseUrl:'http://192.168.5.213:9100/gateway'
|
||||
apiBaseUrl:'http://192.168.5.14:9104',
|
||||
//apiBaseUrl:'http://192.168.5.14:9104',
|
||||
apiBaseUrl:'https://api.evo-techina.com',
|
||||
ws:'ws://192.168.5.14:9104'
|
||||
|
||||
}
|
||||
|
||||
const production = {
|
||||
//apiBaseUrl:'http://124.239.176.15:8888',
|
||||
apiBaseUrl:'https://api.evo-techina.com'
|
||||
apiBaseUrl:'https://api.evo-techina.com',
|
||||
ws:'ws://api.evo-techina.com'
|
||||
//API_URL:'http://chuangcheng.56365.cc' //测试环境
|
||||
}
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
//import conf from './config'
|
||||
import conf from './config'
|
||||
|
||||
let httpList:any[] = []
|
||||
|
||||
@ -86,7 +86,7 @@ export function request(method:any,url:string,data?:any,isLoading?:any){
|
||||
})
|
||||
}
|
||||
|
||||
//终端请求
|
||||
//中断请求
|
||||
export function abort() {
|
||||
httpList.forEach(n => {
|
||||
n.abort()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user