Merge branch 'feature/task1.0.0' into 'msb_test'

Feature/task1.0.0

See merge request yanxuan-frontend/shop-pc!87
merge-requests/89/merge
肖广 3 years ago
commit ca20e3a37a

@ -145,13 +145,13 @@ export default {
}, },
methods: { methods: {
onJumpGoodsDetail(id) { onJumpGoodsDetail(id) {
this.$router.push(`/goods/detail/${id}`); window.open(`${location.origin}/goods/detail/${id}`);
}, },
onJumCartPage() { onJumCartPage() {
if (!this.$isLoginValidate()) { if (!this.$isLoginValidate()) {
return; return;
} }
this.$router.push("/cart"); window.open(`${location.origin}/cart`);
}, },
}, },
}; };
@ -178,10 +178,9 @@ export default {
border-radius: 50%; border-radius: 50%;
color: #ffffff; color: #ffffff;
margin-left: 4px; margin-left: 4px;
padding-top: 2px;
&--more { &--more {
width: unset; width: unset;
padding: 2px 5px 0 4px; padding: 1px 5px 0 4px;
border-radius: 7px; border-radius: 7px;
} }
} }

@ -7,7 +7,7 @@
@mouseenter="handleCategoryChange(true)" @mouseenter="handleCategoryChange(true)"
@mouseleave="handleCategoryChange(false)" @mouseleave="handleCategoryChange(false)"
> >
<div class="tab-category__label flex flex-center flex-middle"> <div class="tab-category__label flex flex-middle">
<img src="~/assets/img/layout/icon-category.png" /> <img src="~/assets/img/layout/icon-category.png" />
<span>热门分类</span> <span>热门分类</span>
</div> </div>
@ -152,6 +152,7 @@ export default {
.tab-category__label { .tab-category__label {
width: 190px; width: 190px;
height: 100%; height: 100%;
padding-left: 41px;
background: linear-gradient(270deg, #ffa25a 0%, #ff7f39 100%); background: linear-gradient(270deg, #ffa25a 0%, #ff7f39 100%);
border-radius: 4px 4px 0px 0px; border-radius: 4px 4px 0px 0px;
font-weight: bold; font-weight: bold;

@ -196,6 +196,10 @@ export default {
display: none !important; display: none !important;
} }
} }
.header-info-bar__popover {
padding: 22px !important;
margin-top: 8px !important;
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.header-info-bar__dropdown { .header-info-bar__dropdown {
@ -237,8 +241,10 @@ export default {
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
text-align: center; text-align: center;
width: 186px;
margin: 0 auto;
img { img {
width: 186px; width: 100%;
height: 186px; height: 186px;
margin-bottom: 15px; margin-bottom: 15px;
} }
@ -262,10 +268,6 @@ export default {
cursor: pointer; cursor: pointer;
} }
} }
.wrap-content-login__info--hover {
background: #ffffff !important;
color: #ff875b;
}
.wrap-content-login__info { .wrap-content-login__info {
position: relative; position: relative;
padding: 0 18px; padding: 0 18px;
@ -279,6 +281,10 @@ export default {
margin-left: 4px; margin-left: 4px;
} }
} }
.wrap-content-login__info--hover {
background: #ffffff;
color: #ff875b;
}
} }
.wrap-content-message__tip { .wrap-content-message__tip {
width: 14px; width: 14px;

@ -36,7 +36,6 @@
</div> </div>
<div class="account-home-content flex"> <div class="account-home-content flex">
<LogisitcsInfo /> <LogisitcsInfo />
<Message />
</div> </div>
</div> </div>
</template> </template>
@ -48,11 +47,10 @@ import {
ApiGetRefundStatistisc, ApiGetRefundStatistisc,
} from "@/plugins/api/order"; } from "@/plugins/api/order";
import LogisitcsInfo from "./module/LogisitcsInfo.vue"; import LogisitcsInfo from "./module/LogisitcsInfo.vue";
import Message from "./module/Message.vue";
export default { export default {
name: "AccountHome", name: "AccountHome",
components: { LogisitcsInfo, Message }, components: { LogisitcsInfo },
data() { data() {
function getOrderTypeIcon(path) { function getOrderTypeIcon(path) {
return require(`~/assets/img/account/home/${path}.png`); return require(`~/assets/img/account/home/${path}.png`);

@ -22,13 +22,13 @@
</div> </div>
<div class="tabbar-fixed-box__line"></div> <div class="tabbar-fixed-box__line"></div>
<div <div
@mouseenter="customerHover = true" @mouseenter="messageHover = true"
@mouseleave="customerHover = false" @mouseleave="messageHover = false"
@click="onConcatCustomer" @click="onOpenMessagePage"
class="tabbar-fixed-box__common flex flex-middle" class="tabbar-fixed-box__common flex flex-middle"
> >
<span v-show="customerHover"></span> <span v-show="messageHover"></span>
<img v-show="!customerHover" src="~/assets/img/home/icon-message.png" /> <img v-show="!messageHover" src="~/assets/img/home/icon-message.png" />
</div> </div>
<div v-show="showToTop"> <div v-show="showToTop">
<div class="tabbar-fixed-box__line"></div> <div class="tabbar-fixed-box__line"></div>
@ -60,7 +60,7 @@ export default {
data() { data() {
return { return {
appHover: false, appHover: false,
customerHover: false, messageHover: false,
totopHover: false, totopHover: false,
tabBarVisible: false, tabBarVisible: false,
}; };
@ -80,10 +80,11 @@ export default {
this.tabBarVisible = true; this.tabBarVisible = true;
} }
}, },
onConcatCustomer() { onOpenMessagePage() {
if (!this.$isLoginValidate()) { if (!this.$isLoginValidate()) {
return; return;
} }
window.open(`${location.origin}/account/message`);
}, },
toPageTop() { toPageTop() {
document.querySelector("body").scrollIntoView({ behavior: "smooth" }); document.querySelector("body").scrollIntoView({ behavior: "smooth" });
@ -98,6 +99,7 @@ export default {
left: 50%; left: 50%;
top: 568px; top: 568px;
margin-left: 630px; margin-left: 630px;
border: 1px solid #f8f8f8;
&--change { &--change {
margin-left: 390px; margin-left: 390px;
} }

Loading…
Cancel
Save