|
@@ -28,7 +28,7 @@
|
|
|
<div class="line"></div>
|
|
|
|
|
|
<div class="spfb">
|
|
|
- <a :href="managerUrl">
|
|
|
+ <a target="_blank" :href="managerUrl">
|
|
|
<span class="font_family"></span>
|
|
|
商品发布
|
|
|
</a>
|
|
@@ -58,9 +58,12 @@
|
|
|
>
|
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
</el-input>
|
|
|
- <router-link class="searchBtn" :to="`${currTarget}/${searchVal}`">
|
|
|
+ <span class="searchBtn" @click="search">
|
|
|
搜索
|
|
|
- </router-link>
|
|
|
+ </span>
|
|
|
+ <!-- <router-link class="searchBtn" :to="`${currTarget}/${searchVal}`">
|
|
|
+ 搜索
|
|
|
+ </router-link> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="navs">
|
|
@@ -103,6 +106,11 @@ export default class extends Vue {
|
|
|
get managerUrl() {
|
|
|
return process.env.VUE_APP_MANAGER_URL;
|
|
|
}
|
|
|
+ search() {
|
|
|
+ const url = `${this.currTarget}/${this.searchVal}`;
|
|
|
+ if (this.$route.path !== url) return this.$router.push(url);
|
|
|
+ this.$emit("reload");
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -122,17 +130,18 @@ export default class extends Vue {
|
|
|
.container {
|
|
|
font-size: 1.2rem;
|
|
|
.home {
|
|
|
- margin: 0 5px;
|
|
|
+ margin-left: 10px;
|
|
|
.font_family {
|
|
|
color: #fd5522;
|
|
|
+ margin-right: 3px;
|
|
|
}
|
|
|
}
|
|
|
+ .userinfo,
|
|
|
.login {
|
|
|
a {
|
|
|
color: #fd5522;
|
|
|
}
|
|
|
- margin-right: 2rem;
|
|
|
- margin-left: 2rem;
|
|
|
+ margin: 0 15px;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.register {
|
|
@@ -218,6 +227,7 @@ export default class extends Vue {
|
|
|
color: #fff;
|
|
|
border: 0;
|
|
|
border-radius: 0;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
}
|
|
|
}
|