|
@@ -60,12 +60,24 @@
|
|
|
itemData: [],
|
|
|
noMoreShow: false,
|
|
|
avaIntegral: '',
|
|
|
+ userInfo:'',
|
|
|
+ ext:'',
|
|
|
+ wxOpenData:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
- this.avaIntegral = opt.avaIntegral
|
|
|
+ //this.avaIntegral = opt.avaIntegral
|
|
|
this.page = 1
|
|
|
- this.myOrderCoupon()
|
|
|
+ if(this.userInfo){
|
|
|
+ this.myOrderCoupon()
|
|
|
+ }else{
|
|
|
+ this.$common.automaticlogin().then(val => {
|
|
|
+ this.userInfo=this.$store.state.userInfo;
|
|
|
+ this.myOrderCoupon()
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
@@ -105,6 +117,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
+ })
|
|
|
+ this.$http('openreservation/getInfo', {
|
|
|
+ lat: '',
|
|
|
+ lng: '',
|
|
|
+
|
|
|
+ }, 'GET').then(res => {
|
|
|
+ this.avaIntegral =res.data.totalIntegral
|
|
|
})
|
|
|
},
|
|
|
|