|
@@ -312,6 +312,7 @@
|
|
|
qrSHow:false,
|
|
|
customerInfo:'',
|
|
|
userInfo:'',
|
|
|
+ exitNum:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
@@ -330,9 +331,10 @@
|
|
|
|
|
|
if (shareID) {
|
|
|
this.shareID = shareID
|
|
|
+ console.log('this.shareID==='+this.shareID)
|
|
|
//this.$store.commit('mutationsshareID', shareID)
|
|
|
}
|
|
|
- //this.shareID='C01DF9DA51A341888754DE0C4ADB29D9'
|
|
|
+ //this.shareID='F16E7299-6850-4015-ABCE-A9F2794B45B5'
|
|
|
//this.shareID='1BF04FAEC8844ECE9C40E880C3B13721'
|
|
|
|
|
|
//this.unionId="26A1039A-DB10-4D0E-BBA2-541C06274EED";
|
|
@@ -355,8 +357,8 @@
|
|
|
this.queryHomeCardList()
|
|
|
this.queryManagerInfo()
|
|
|
}else{
|
|
|
- console.log("uniLogin")
|
|
|
- this.uniLogin()
|
|
|
+ this.uniLogin()
|
|
|
+
|
|
|
}
|
|
|
//版本更新
|
|
|
this.UpdateManager();
|
|
@@ -372,7 +374,12 @@
|
|
|
this.themeColor=themeColor
|
|
|
}
|
|
|
this.getwxLoing=true;
|
|
|
- if(this.userInfo){
|
|
|
+
|
|
|
+ this.exitNum=this.$store.state.exitNum;
|
|
|
+ if(this.exitNum==1){
|
|
|
+ this.carInfo=''
|
|
|
+ }else{
|
|
|
+ if(this.userInfo){
|
|
|
if(indexaddcar==1){
|
|
|
uni.removeStorageSync('indexaddcar');
|
|
|
this.getCarList();
|
|
@@ -384,7 +391,8 @@
|
|
|
this.getCarList();
|
|
|
}
|
|
|
this.jsTime()
|
|
|
- }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -463,7 +471,24 @@
|
|
|
},
|
|
|
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.exitNum=''
|
|
|
+ this.$store.commit('mutationsexitNum', '')
|
|
|
+ this.getCarList();
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'../user/addCar/cailist'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}else{
|
|
|
uni.navigateTo({
|
|
|
url:'../user/addCar/addCar?type=1'
|
|
@@ -488,7 +513,7 @@
|
|
|
})
|
|
|
},
|
|
|
changeCar(){
|
|
|
- /* uni.scanCode({
|
|
|
+ /* uni.scanCode({
|
|
|
success: function (res) {
|
|
|
console.log('条码类型:' + res.scanType);
|
|
|
console.log( res);
|
|
@@ -525,26 +550,63 @@
|
|
|
},
|
|
|
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){
|
|
|
- console.log(item)
|
|
|
- if(item.bizType==7){ //7门店列表
|
|
|
+ if(item.bizType==7){ //7门店列表
|
|
|
uni.navigateTo({
|
|
|
url:'shopList'
|
|
|
})
|
|
@@ -560,7 +622,28 @@
|
|
|
|
|
|
}else
|
|
|
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', '')
|
|
|
+ this.goRoter2(item)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.goRoter2(item)
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ goRoter2(item){
|
|
|
+ console.log(item)
|
|
|
+
|
|
|
+ if(!this.userInfo){
|
|
|
+ //this.authorizShow=true;
|
|
|
+
|
|
|
}else{
|
|
|
if(item.bizType==0){
|
|
|
if(item.name=='新车'){ //
|