修复bug
This commit is contained in:
parent
349176e2d5
commit
b4cd11f33f
@ -313,11 +313,14 @@
|
|||||||
this.getNav();
|
this.getNav();
|
||||||
|
|
||||||
if (this.isLogin == true) {
|
if (this.isLogin == true) {
|
||||||
if(this.$store.state.app.userInfo.mer_info.mer_settlement_agree_status) this.tabsArr.push({
|
try{
|
||||||
name: '商户购物车',
|
if(this.$store.state.app.userInfo.mer_info.mer_settlement_agree_status&&this.tabsArr.length==1) this.tabsArr.push({
|
||||||
val: 2
|
name: '商户购物车',
|
||||||
})
|
val: 2
|
||||||
else this.getUserInfo();
|
})
|
||||||
|
}catch(e){
|
||||||
|
this.getUserInfo();
|
||||||
|
}
|
||||||
this.getCartList();
|
this.getCartList();
|
||||||
this.getCartNum();
|
this.getCartNum();
|
||||||
this.goodsHidden = true;
|
this.goodsHidden = true;
|
||||||
@ -362,7 +365,7 @@
|
|||||||
let that = this;
|
let that = this;
|
||||||
getUserInfo().then(res => {
|
getUserInfo().then(res => {
|
||||||
that.userInfo = res.data;
|
that.userInfo = res.data;
|
||||||
if(res.data.mer_info.mer_settlement_agree_status) this.tabsArr.push({
|
if(res.data.mer_info.mer_settlement_agree_status&&this.tabsArr.length==1) this.tabsArr.push({
|
||||||
name: '商户购物车',
|
name: '商户购物车',
|
||||||
val: 2
|
val: 2
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user