|
@@ -136,14 +136,26 @@
|
|
src: '', // 二维码生成后的图片地址或base64
|
|
src: '', // 二维码生成后的图片地址或base64
|
|
hxShow:false,
|
|
hxShow:false,
|
|
detail:'',
|
|
detail:'',
|
|
-
|
|
|
|
|
|
+ userInfo:'',
|
|
|
|
+ ext:'',
|
|
|
|
+ wxOpenData:'',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(opt) {
|
|
onLoad(opt) {
|
|
-
|
|
|
|
|
|
+
|
|
this.tabIndex = opt.num;
|
|
this.tabIndex = opt.num;
|
|
-
|
|
|
|
- this.myOrderCoupon()
|
|
|
|
|
|
+ this.userInfo=this.$store.state.userInfo;
|
|
|
|
+ this.ext=this.$common.getExtStoreId();
|
|
|
|
+ if(this.userInfo){
|
|
|
|
+ this.myOrderCoupon()
|
|
|
|
+ }else{
|
|
|
|
+ this.$common.automaticlogin().then(val => {
|
|
|
|
+ this.userInfo=this.$store.state.userInfo;
|
|
|
|
+ this.myOrderCoupon()
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
this.$refs.authoriz.init();
|
|
this.$refs.authoriz.init();
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|