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