|
@@ -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')
|