diff --git a/components/BsAddress.vue b/components/BsAddress.vue
index a34308c..b2112f3 100644
--- a/components/BsAddress.vue
+++ b/components/BsAddress.vue
@@ -93,9 +93,9 @@
:class="!isAccount ? 'flex-column' : ''"
>
设为默认地址
-
+
取消 item.isDefault);
vm.curAddressListItem =
curIndex > -1 ? vm.addressList[curIndex] : vm.addressList[0];
vm.$emit("getList", vm.addressList);
vm.$emit("emitAddress", vm.curAddressListItem);
} else {
+ vm.defaultAddress = true;
vm.isOperation = true;
}
console.log("获取收货地址", res);
@@ -410,6 +408,9 @@ export default {
margin-right: 38px;
}
}
+ .clearmargin{
+ margin: 0 0 0 20px;
+ }
}
}
diff --git a/layouts/module/header/HeaderCategory.vue b/layouts/module/header/HeaderCategory.vue
index 51e7d3f..ea9810b 100644
--- a/layouts/module/header/HeaderCategory.vue
+++ b/layouts/module/header/HeaderCategory.vue
@@ -125,13 +125,9 @@ export default {
onCategoryClick(id, levelType) {
this.categroyVisible = false;
this.categroyTwoVisible = false;
- this.$router.push({
- path: "/goods/list",
- query: {
- id,
- levelType,
- },
- });
+ window.open(
+ `${location.origin}/goods/list?id=${id}&levelType=${levelType}`
+ );
},
// 一级分类是否可见
handleCategoryChange(val) {
diff --git a/layouts/module/header/HeaderInfoBar.vue b/layouts/module/header/HeaderInfoBar.vue
index 5c24306..f3e3593 100644
--- a/layouts/module/header/HeaderInfoBar.vue
+++ b/layouts/module/header/HeaderInfoBar.vue
@@ -138,10 +138,10 @@ export default {
handleCommandClick(event) {
switch (event) {
case MENU_VALUE.PERSONAL:
- this.$router.push("/account/home");
+ window.open(`${location.origin}/account/home`);
break;
case MENU_VALUE.ADDRESS:
- this.$router.push("/account/address");
+ window.open(`${location.origin}/account/address`);
break;
case MENU_VALUE.LOGON_OUT:
this.$store.dispatch("logout");
@@ -153,7 +153,7 @@ export default {
if (!this.$isLoginValidate()) {
return;
}
- this.$router.push(`/account/${path}`);
+ window.open(`${location.origin}/account/${path}`);
},
},
};
@@ -162,7 +162,7 @@ export default {
.header-info-bar__dropdown,
.header-info-bar__popover {
.popper__arrow {
- display: none;
+ display: none !important;
}
}
diff --git a/layouts/module/header/index.vue b/layouts/module/header/index.vue
index 2706262..daf0ba9 100644
--- a/layouts/module/header/index.vue
+++ b/layouts/module/header/index.vue
@@ -30,7 +30,7 @@
src="~/assets/img/layout/icon-search-sticky.png"
@click="$router.push('/goods/list')"
/>
-