lilei 4 rokov pred
rodič
commit
72003a5690
2 zmenil súbory, kde vykonal 8 pridanie a 3 odobranie
  1. 2 2
      manifest.json
  2. 6 1
      pages/work/index/index.vue

+ 2 - 2
manifest.json

@@ -1,7 +1,7 @@
 {
-    "name" : "qhsxKx-mini-html",
+    "name" : "智慧洗车",
     "appid" : "__UNI__93B3920",
-    "description" : "车辆无人快洗",
+    "description" : "智慧洗车",
     "versionName" : "1.0.0",
     "versionCode" : "100",
     "transformPx" : false,

+ 6 - 1
pages/work/index/index.vue

@@ -26,7 +26,7 @@
 				</view>
 				<!-- 状态提示 -->
 				<view class="work-button-tips">
-					{{status == 'start' ? "设备准备就绪" : "设备启动中"}}
+					{{curWorkStutesText}}
 				</view>
 			</view>
 		</view>
@@ -111,6 +111,7 @@ export default {
 			step: 0, // 进度条增值,共60步
 			interId: null, // 进度时间id
 			status: 'start', // 状态,start 开始启动,working 正在工作,stop急停,reseting 归位中, success 洗车成功
+			curWorkStutesText: '设备准备就绪', // 当前机器运行的进度提示
 			showStart: false ,// 启动弹框提示
 			showStop: false, // 急停提示
 			washCarType: '', // 洗车服务类型,不同的类型对应的时间不一样
@@ -162,6 +163,7 @@ export default {
 			// 启动成功
 			setTimeout(() => {
 				this.status = 'working';
+				this.curWorkStutesText='设备已启动';
 				this.showStart = false;
 				// 进度条,服务时间根据不同的服务类型而不同
 				let serverTime = 7
@@ -195,6 +197,7 @@ export default {
 						// 显示急停提示弹框
 						_this.showStop = true;
 						_this.status = 'stop';
+						_this.curWorkStutesText='设备正在紧急停止';
 						_this.resetLoadingStatus();
 			        }
 			    }
@@ -203,6 +206,7 @@ export default {
 		// 洗车完成
 		washCarSuccess(){
 			this.status = "success";
+			this.curWorkStutesText='洗车完成';
 			this.resetLoadingStatus();
 			// 关闭socket
 			this.$store.commit("$closeWebsocket")
@@ -252,6 +256,7 @@ export default {
 			}
 			this.$store.commit("$sendWebsocket",JSON.stringify(cmd))
 			this.status = 'reseting';
+			this.curWorkStutesText='设备正在归位';
 			this.showStart = true;
 			this.showStop = false;
 			// 归位结束后