lilei пре 4 година
родитељ
комит
9353909ed5
2 измењених фајлова са 20 додато и 15 уклоњено
  1. 19 14
      pages/getOrder/getOrder.vue
  2. 1 1
      pages/login/login.vue

+ 19 - 14
pages/getOrder/getOrder.vue

@@ -154,20 +154,25 @@
 		},
 		onLoad(option) {
 			// 存储当前扫码的设备及网点id
-			// if(options.scene){
-			// 	let scene=decodeURIComponent(options.scene);
-			// 	//&是我们定义的参数链接方式
-			// 	let userId=scene.split("&")[0];
-			// 	let recommendId=scene.split('&')[1];
-			// 	//其他逻辑处理。。。。。
-			//   }
-			this.$store.state.vuex_orderInfo.bizId = option.bizId || '9999'
-			this.$store.state.vuex_orderInfo.storeId = option.storeId || '100000'
-			uni.removeStorageSync('stepIndex')
-			// 注册全局监听事件
-			uni.$once('read', this.read)
-			this.getUserPhone()
-			this.getServerList()
+			if(options.scene){
+				let scene=decodeURIComponent(options.scene);
+				//&是我们定义的参数链接方式
+				let storeId=scene.split(",")[0];
+				let bizId=scene.split(',')[1];
+				//其他逻辑处理。。。。。
+				this.$store.state.vuex_orderInfo.bizId = bizId || '9999'
+				this.$store.state.vuex_orderInfo.storeId = storeId || '100000'
+				
+				// 判断当前门店是否已运营
+				 
+			 }else{
+				 // 判断是否扫码过
+				 if(this.$store.state.vuex_orderInfo.bizId!=''){
+					 
+				 }else{
+					 // 返回首页
+				 }
+			 }
 		},
 		onUnload() {
 			uni.removeStorageSync('stepIndex')

+ 1 - 1
pages/login/login.vue

@@ -65,7 +65,7 @@
 									getApp().globalData.token = res.data
 									_this.$u.vuex('vuex_token',res.data)
 									uni.setStorageSync('loginTimeOut', 'NO')
-									if (_this.path === '/pages/index/main' || _this.lanuch) {
+									if (_this.path === '/pages/index/index' || _this.lanuch) {
 										uni.reLaunch({
 											url: _this.path
 										});