lilei преди 4 години
родител
ревизия
9778c149b0
променени са 4 файла, в които са добавени 12 реда и са изтрити 7 реда
  1. 1 1
      App.vue
  2. 1 1
      manifest.json
  3. 1 1
      pages/getOrder/getOrder.vue
  4. 9 4
      pages/work/index/index.vue

+ 1 - 1
App.vue

@@ -1,6 +1,6 @@
 <script>
 	// const uat_URL = 'http://md.test.zyucgj.com/saas/clz/' // 预发布
-	const uat_URL = 'http://192.168.16.104:8103/cw-wechat/' // 本地
+	const uat_URL = 'http://192.168.16.103:8103/cw-wechat/' // 本地
 	const pro_URL = 'https://car.zyucgj.com/saas/clz/'  // 生产
 	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url

+ 1 - 1
manifest.json

@@ -57,7 +57,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wxb6f09597a1545d81",
+        "appid" : "wx3c26d022890f7c2b",
         "setting" : {
             "urlCheck" : false,
             "es6" : true,

+ 1 - 1
pages/getOrder/getOrder.vue

@@ -161,7 +161,7 @@
 			// 	let recommendId=scene.split('&')[1];
 			// 	//其他逻辑处理。。。。。
 			//   }
-			this.$store.state.vuex_orderInfo.bizId = option.bizId || '9898'
+			this.$store.state.vuex_orderInfo.bizId = option.bizId || '9999'
 			this.$store.state.vuex_orderInfo.storeId = option.storeId || '100000'
 			uni.removeStorageSync('stepIndex')
 			// 注册全局监听事件

+ 9 - 4
pages/work/index/index.vue

@@ -122,6 +122,7 @@ export default {
 	onLoad(options) {
 		// 创建websocket
 		this.$store.commit('$webSocket')
+		this.$store.state.vuex_workStatus = 'start'
 		// 获取用户及订单信息
 		let orderInfo = this.$store.state.vuex_orderInfo
 		this.washCarType = orderInfo.itemCode
@@ -131,14 +132,18 @@ export default {
 		// 监听消息
 		uni.$on('wsMessage',(e)=>{
 			console.log(e)
+			if(e.type == 'xcz'){
+				if(e.data.level == 'c'){
+					// 启动成功
+					this.startWashCarSuccess()
+				}
+			}
 			// 进度消息
 			// 错误消息
-			// 启动成功
-			this.startWashCarSuccess()
 			// 紧急停止成功
-			this.stopWashCarSuccess()
+			// this.stopWashCarSuccess()
 			// 复位成功
-			this.resetRabtSuccess()
+			// this.resetRabtSuccess()
 		})
 	},
 	methods: {