diff --git a/src/view/home.vue b/src/view/home.vue
index e167c2c..5cf05d1 100644
--- a/src/view/home.vue
+++ b/src/view/home.vue
@@ -20,7 +20,7 @@
-
+
@@ -168,14 +168,15 @@
//获取默认地址信息
getdefaultAddress (){
homeApi.getdefaultAddress().then(res => {
- // console.log('默认地址信息',res)
+ console.log('默认地址信息',res)
if ( res.code == 0 ){
if ( !res.data ){
this.show = true
+ this.merchantNo = 2
} else {
this.defaultCity = res.data.districtName || ''
this.districtId = res.data.districtId || ''
- this.merchantNo = res.data.merchantNo || ''
+ this.merchantNo = res.data.merchantNo || 2
this.addressValue = []
this.addressValue.push(res.data.provinceId)
this.addressValue.push(res.data.cityId)
@@ -184,14 +185,15 @@
} else {
this.$vux.toast.text(res.msg,"middle");
}
+ console.log(this.merchantNo)
+ this.getGoodsList()
});
-
+
},
},
mounted() {
//异步加载
this.getdefaultAddress()
- this.getGoodsList()
this.getAddress()
}
};