浏览代码

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
修改

1004749546@qq.com 4 年之前
父节点
当前提交
9758ac4226
共有 2 个文件被更改,包括 19 次插入19 次删除
  1. 2 2
      App.vue
  2. 17 17
      pages/index/index.vue

+ 2 - 2
App.vue

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

+ 17 - 17
pages/index/index.vue

@@ -301,24 +301,24 @@
 			// 扫码洗车
 			scanCode () {
 				let _this = this
-				uni.navigateTo({
-					url: '/pages/getOrder/getOrder?scene=100040,2001'
-				})
+				// uni.navigateTo({
+				// 	url: '/pages/getOrder/getOrder?scene=100040,2001'
+				// })
 				// 检验是否登录或登录是否过期
-				// uni.scanCode({
-				//     success: function (res) {
-				//         console.log(res);
-				// 		if(res.scanType != 'WX_CODE'){
-				// 			setTimeout(()=>{
-				// 				_this.toashMsg("无法识别此二维码")
-				// 			},1000)
-				// 		}else{
-				// 			 uni.navigateTo({
-				// 				url: '/'+res.path
-				// 			 })
-				// 		}
-				//     }
-				// });
+				uni.scanCode({
+				    success: function (res) {
+				        console.log(res);
+						if(res.scanType != 'WX_CODE'){
+							setTimeout(()=>{
+								_this.toashMsg("无法识别此二维码")
+							},1000)
+						}else{
+							 uni.navigateTo({
+								url: '/'+res.path
+							 })
+						}
+				    }
+				});
 			},
 			// 创建标记点 设备状态 USING :使用中  PAUSE:暂停  ON_LINE:在线
 			createMarker(point) {