|
@@ -308,6 +308,7 @@
|
|
|
qrimg:'',
|
|
|
qrSHow:false,
|
|
|
customerInfo:'',
|
|
|
+ exitNum:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
@@ -352,8 +353,8 @@
|
|
|
this.queryHomeCardList()
|
|
|
this.queryManagerInfo()
|
|
|
}else{
|
|
|
- console.log("uniLogin")
|
|
|
- this.uniLogin()
|
|
|
+ this.uniLogin()
|
|
|
+
|
|
|
}
|
|
|
//版本更新
|
|
|
this.UpdateManager();
|
|
@@ -369,18 +370,24 @@
|
|
|
this.themeColor=themeColor
|
|
|
}
|
|
|
this.getwxLoing=true;
|
|
|
- if(indexaddcar==1){
|
|
|
- uni.removeStorageSync('indexaddcar');
|
|
|
- this.getCarList();
|
|
|
+ this.exitNum=this.$store.state.exitNum;
|
|
|
+ if(this.exitNum==1){
|
|
|
+ this.carInfo=''
|
|
|
}else{
|
|
|
- this.carInfo=this.$store.state.carInfo;
|
|
|
- console.log("车辆信息")
|
|
|
- console.log(this.carInfo)
|
|
|
- if(!this.carInfo){
|
|
|
+ if(indexaddcar==1){
|
|
|
+ uni.removeStorageSync('indexaddcar');
|
|
|
this.getCarList();
|
|
|
+ }else{
|
|
|
+ this.carInfo=this.$store.state.carInfo;
|
|
|
+ console.log("车辆信息")
|
|
|
+ console.log(this.carInfo)
|
|
|
+ if(!this.carInfo){
|
|
|
+ this.getCarList();
|
|
|
+ }
|
|
|
+ this.jsTime()
|
|
|
}
|
|
|
- this.jsTime()
|
|
|
}
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -457,7 +464,22 @@
|
|
|
},
|
|
|
addCar(){
|
|
|
if(!this.userInfo){
|
|
|
- this.authorizShow=true;
|
|
|
+ if(this.exitNum!=1){
|
|
|
+ this.authorizShow=true;
|
|
|
+ }else{
|
|
|
+ this.$common.automaticlogin().then(val => {
|
|
|
+ this.userInfo=this.$store.state.userInfo;
|
|
|
+ this.wxOpenData=this.$store.state.wxOpenData;
|
|
|
+ /* uni.navigateTo({
|
|
|
+ url:'../user/addCar/addCar?type=1'
|
|
|
+ }) */
|
|
|
+ this.getCarList();
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'../user/addCar/cailist'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}else{
|
|
|
uni.navigateTo({
|
|
|
url:'../user/addCar/addCar?type=1'
|
|
@@ -519,27 +541,85 @@
|
|
|
},
|
|
|
goGoods(item){
|
|
|
if(!this.userInfo){
|
|
|
- this.authorizShow=true;
|
|
|
+ if(this.exitNum!=1){
|
|
|
+ this.authorizShow=true;
|
|
|
+ }else{
|
|
|
+ this.$common.automaticlogin().then(val => {
|
|
|
+ this.userInfo=this.$store.state.userInfo;
|
|
|
+ this.wxOpenData=this.$store.state.wxOpenData;
|
|
|
+ this.exitNum=''
|
|
|
+ this.$store.commit('mutationsexitNum', '')
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'../shop/goodsDetail?id='+item.id
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
}else{
|
|
|
uni.navigateTo({
|
|
|
url:'../shop/goodsDetail?id='+item.id
|
|
|
})
|
|
|
}
|
|
|
+ /* if(!this.userInfo){
|
|
|
+ this.authorizShow=true;
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'../shop/goodsDetail?id='+item.id
|
|
|
+ })
|
|
|
+ } */
|
|
|
},
|
|
|
goJk(item){
|
|
|
- if(!this.userInfo){
|
|
|
+ /* if(!this.userInfo){
|
|
|
this.authorizShow=true;
|
|
|
}else{
|
|
|
uni.navigateTo({
|
|
|
url:'../activity/jkDetail?id='+item.id
|
|
|
})
|
|
|
+ } */
|
|
|
+ if(!this.userInfo){
|
|
|
+ if(this.exitNum!=1){
|
|
|
+ this.authorizShow=true;
|
|
|
+ }else{
|
|
|
+ this.$common.automaticlogin().then(val => {
|
|
|
+ this.userInfo=this.$store.state.userInfo;
|
|
|
+ this.wxOpenData=this.$store.state.wxOpenData;
|
|
|
+ this.exitNum=''
|
|
|
+ this.$store.commit('mutationsexitNum', '')
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'../activity/jkDetail?id='+item.id
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'../activity/jkDetail?id='+item.id
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
},
|
|
|
goRoter(item){
|
|
|
+ if(!this.userInfo){
|
|
|
+ if(this.exitNum!=1){
|
|
|
+ this.authorizShow=true;
|
|
|
+ }else{
|
|
|
+ this.$common.automaticlogin().then(val => {
|
|
|
+ this.userInfo=this.$store.state.userInfo;
|
|
|
+ this.wxOpenData=this.$store.state.wxOpenData;
|
|
|
+ this.exitNum=''
|
|
|
+ this.$store.commit('mutationsexitNum', '')
|
|
|
+ this.goRoter2(item)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.goRoter2(item)
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ goRoter2(item){
|
|
|
console.log(item)
|
|
|
+
|
|
|
if(!this.userInfo){
|
|
|
- this.authorizShow=true;
|
|
|
+ //this.authorizShow=true;
|
|
|
+
|
|
|
}else{
|
|
|
if(item.bizType==0){
|
|
|
if(item.name=='新车'){ //
|