Merge branch 'feature/task1.0.0' of http://internel-git.mashibing.cn/yanxuan-frontend/shop-pc into feature/task1.0.0

merge-requests/86/merge
张征 3 years ago
commit 09199ee816

@ -4,6 +4,7 @@ WORKDIR /workload
COPY nuxt.config.js /workload/nuxt.config.js COPY nuxt.config.js /workload/nuxt.config.js
COPY package.json /workload/package.json COPY package.json /workload/package.json
COPY .nuxt /workload/.nuxt COPY .nuxt /workload/.nuxt
COPY static /workload/static
RUN npm config set registry https://registry.npm.taobao.org \ RUN npm config set registry https://registry.npm.taobao.org \
&& npm install && npm install

@ -160,7 +160,7 @@ export default {
}, },
}, },
mounted() { mounted() {
this.$startWebSockets() this.$startWebSockets();
}, },
methods: { methods: {
onLoginClick() { onLoginClick() {
@ -248,7 +248,7 @@ export default {
height: 30px; height: 30px;
color: #999999; color: #999999;
background: #f1f1f1; background: #f1f1f1;
border-radius: 0px 0px 0px 0px; font-size: 12px;
.info-bar-header-wrap { .info-bar-header-wrap {
height: 100%; height: 100%;
@include layout-box; @include layout-box;
@ -270,6 +270,8 @@ export default {
position: relative; position: relative;
padding: 0 18px; padding: 0 18px;
height: 30px; height: 30px;
font-size: 12px;
color: #999999;
cursor: pointer; cursor: pointer;
.content-login-info__logo { .content-login-info__logo {
width: 8px; width: 8px;

@ -62,11 +62,8 @@
<div class="default-bar-header"> <div class="default-bar-header">
<div class="bar-header-box"> <div class="bar-header-box">
<div class="bar-header-box__wrap flex flex-between flex-middle"> <div class="bar-header-box__wrap flex flex-between flex-middle">
<div @click="onOpenHomePage"> <div class="header-box-wrap__logo" @click="onOpenHomePage">
<img <img src="~/assets/img/layout/logo.png" />
class="header-box-wrap__logo"
src="~/assets/img/layout/logo.png"
/>
</div> </div>
<div class="header-box-wrap__right flex flex-middle"> <div class="header-box-wrap__right flex flex-middle">
<div class="box-wrap-right__search flex"> <div class="box-wrap-right__search flex">
@ -203,7 +200,10 @@ export default {
window.open(`${location.origin}/cart`); window.open(`${location.origin}/cart`);
}, },
onOpenHomePage() { onOpenHomePage() {
this.$router.push("/"); if (this.$route.path === "/") {
return;
}
window.open(`${location.origin}/`);
}, },
}, },
}; };
@ -308,7 +308,7 @@ export default {
@include layout-box; @include layout-box;
background: #ffffff; background: #ffffff;
.bar-header-box__wrap { .bar-header-box__wrap {
height: 42px; height: 40px;
font-size: 14px; font-size: 14px;
margin-bottom: 38px; margin-bottom: 38px;
padding-right: 50px; padding-right: 50px;

Loading…
Cancel
Save