|
@@ -134,7 +134,7 @@
|
|
|
:src="
|
|
|
item.image && !$mediaRegExp.test(item.image)
|
|
|
? $OSS_PREFIX + item.image
|
|
|
- : $utils.generateResizedImageUrl(item.image,100)
|
|
|
+ : $utils.generateResizedImageUrl(item.image, 100)
|
|
|
"
|
|
|
alt="" />
|
|
|
<div class="product-info">
|
|
@@ -191,7 +191,8 @@
|
|
|
<el-popover
|
|
|
placement="bottom-end"
|
|
|
width="292"
|
|
|
- trigger="click" ref="userPopover">
|
|
|
+ trigger="click"
|
|
|
+ ref="userPopover">
|
|
|
<div
|
|
|
slot="reference"
|
|
|
class="topbar-item-right-myAccount">
|
|
@@ -204,7 +205,9 @@
|
|
|
<span class="el-icon-caret-bottom"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="user-menu-panel flex column center" @click="closePopoverAndNavigate">
|
|
|
+ <div
|
|
|
+ class="user-menu-panel flex column center"
|
|
|
+ @click="closePopoverAndNavigate">
|
|
|
<!-- <div class="greeting">
|
|
|
Hello {{ $store.state.userInfo.contacts }}
|
|
|
</div> -->
|
|
@@ -312,7 +315,10 @@
|
|
|
class="shopProducts"
|
|
|
@click.stop="openShopProduct">
|
|
|
Shop Products
|
|
|
- <i :class="isShopBlock?'el-icon-arrow-up':'el-icon-arrow-down'"></i>
|
|
|
+ <i
|
|
|
+ :class="
|
|
|
+ isShopBlock ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
|
|
|
+ "></i>
|
|
|
</span>
|
|
|
</div>
|
|
|
<Transition name="category">
|
|
@@ -457,13 +463,9 @@
|
|
|
class="nav-list"
|
|
|
@click="closeAllBlock">
|
|
|
<div class="nav-list-title">
|
|
|
- <nuxt-link
|
|
|
- :to="{
|
|
|
- path: 'article/Compliance',
|
|
|
- }"
|
|
|
- target="_self">
|
|
|
+ <a href="/article/Compliance">
|
|
|
Compliance
|
|
|
- </nuxt-link>
|
|
|
+ </a>
|
|
|
</div>
|
|
|
</li>
|
|
|
<li
|
|
@@ -717,8 +719,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
- created() {
|
|
|
- },
|
|
|
+ created() {},
|
|
|
mounted() {
|
|
|
// if (this.$route.query.keyword && this.$route.query.keyword.length) {
|
|
|
// this.keyword = this.$route.query.keyword
|
|
@@ -888,7 +889,8 @@ export default {
|
|
|
// query: { keyword: this.keyword },
|
|
|
// })
|
|
|
location.href =
|
|
|
- location.origin + `/category/searchResult?keyword=${encodeURIComponent(this.keyword)}`
|
|
|
+ location.origin +
|
|
|
+ `/category/searchResult?keyword=${encodeURIComponent(this.keyword)}`
|
|
|
},
|
|
|
logout() {
|
|
|
this.$store.dispatch('logout').then(() => {
|
|
@@ -958,7 +960,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
closePopoverAndNavigate() {
|
|
|
- this.$refs.userPopover.doClose();
|
|
|
+ this.$refs.userPopover.doClose()
|
|
|
},
|
|
|
// 从分类树数据里面找到对应分类
|
|
|
getCategoryFromTree(id, tree) {
|