|
@@ -133,13 +133,16 @@ export default {
|
|
uni.$on('wsMessage',(e)=>{
|
|
uni.$on('wsMessage',(e)=>{
|
|
console.log(e)
|
|
console.log(e)
|
|
if(e.type == 'xcz'){
|
|
if(e.type == 'xcz'){
|
|
|
|
+ // 进度消息
|
|
if(e.data.level == 'c'){
|
|
if(e.data.level == 'c'){
|
|
// 启动成功
|
|
// 启动成功
|
|
this.startWashCarSuccess()
|
|
this.startWashCarSuccess()
|
|
}
|
|
}
|
|
|
|
+ // 错误消息
|
|
|
|
+ if(e.data.level == 'f'){
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- // 进度消息
|
|
|
|
- // 错误消息
|
|
|
|
// 紧急停止成功
|
|
// 紧急停止成功
|
|
// this.stopWashCarSuccess()
|
|
// this.stopWashCarSuccess()
|
|
// 复位成功
|
|
// 复位成功
|