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

Feature/task1.0.0

See merge request yanxuan-frontend/shop-pc!95
merge-requests/98/merge
肖广 3 years ago
commit e0458dd21e

@ -330,7 +330,7 @@ export default {
vm.$set(vm.selectData.city, "code", ""); vm.$set(vm.selectData.city, "code", "");
vm.$set(vm.selectData.province, "code", ""); vm.$set(vm.selectData.province, "code", "");
vm.$set(vm, "detailAddress", ""); vm.$set(vm, "detailAddress", "");
vm.$set(vm, "defaultAddress", ""); vm.$set(vm, "defaultAddress", false);
vm.$set(vm, "addressUser", ""); vm.$set(vm, "addressUser", "");
vm.$set(vm, "addressPhone", ""); vm.$set(vm, "addressPhone", "");
}, },

@ -170,6 +170,9 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #eeeeee; border: 1px solid #eeeeee;
cursor: pointer; cursor: pointer;
&:hover {
background: #eeeeee;
}
.wrap-right-cart__tip { .wrap-right-cart__tip {
width: 16px; width: 16px;
height: 16px; height: 16px;

@ -173,13 +173,13 @@ export default {
color: #333333; color: #333333;
.tab-category-menu__left { .tab-category-menu__left {
width: 190px; width: 190px;
padding: 15px 0; padding: 30px 0 35px 0;
background: #ffffff; background: #ffffff;
.menu-left__item { .menu-left__item {
height: 36px; height: 36px;
cursor: pointer; cursor: pointer;
padding: 0 24px 0 41px; padding: 0 24px 0 41px;
margin-top: 23px; margin-top: 15px;
&:first-child { &:first-child {
margin-top: 0; margin-top: 0;
} }

@ -214,8 +214,8 @@ export default {
height: 42px; height: 42px;
font-size: 14px; font-size: 14px;
img { img {
width: 8px; width: 6px;
height: 14px; height: 12px;
} }
} }
.menu-item__wrap { .menu-item__wrap {

@ -27,7 +27,7 @@
<div class="bar-header-wrap__icons flex flex-middle"> <div class="bar-header-wrap__icons flex flex-middle">
<img <img
src="~/assets/img/layout/icon-search-sticky.png" src="~/assets/img/layout/icon-search-sticky.png"
@click="$router.push('/goods/list')" @click="onEnterSearch"
/> />
<div class="header-wrap-icons__shop" @click="onOpenCartPage"> <div class="header-wrap-icons__shop" @click="onOpenCartPage">
<img src="~/assets/img/layout/icon-shop-sticky.png" /> <img src="~/assets/img/layout/icon-shop-sticky.png" />
@ -69,6 +69,7 @@
<div class="box-wrap-right__search flex"> <div class="box-wrap-right__search flex">
<div class="search-input"> <div class="search-input">
<el-input <el-input
ref="searchInput"
v-model="searchContent" v-model="searchContent"
clearable clearable
placeholder="请输入商品名称" placeholder="请输入商品名称"
@ -174,6 +175,12 @@ export default {
this.getSeckillData(); this.getSeckillData();
}, },
methods: { methods: {
onEnterSearch() {
document.querySelector("body").scrollIntoView({ behavior: "smooth" });
setTimeout(() => {
this.$refs.searchInput.focus();
}, 500);
},
async getSeckillData() { async getSeckillData() {
const { result } = await ApiGetHomeSeckill(); const { result } = await ApiGetHomeSeckill();
if (result && result.activityTimeVO) { if (result && result.activityTimeVO) {
@ -197,6 +204,9 @@ export default {
}); });
}, },
onOpenCartPage() { onOpenCartPage() {
if (!this.$isLoginValidate()) {
return;
}
window.open(`${location.origin}/cart`); window.open(`${location.origin}/cart`);
}, },
onOpenHomePage() { onOpenHomePage() {

@ -29,7 +29,7 @@
</td> </td>
<td> <td>
<template v-if="i.afterSaleApplyFlag || [2,3,4].includes(i.detailStatus)"> <template v-if="i.afterSaleApplyFlag || [2,3,4].includes(i.detailStatus)">
<a v-if="i.afterSaleApplyFlag"></a> <nuxt-link v-if="i.afterSaleApplyFlag" to="/account/order/saleAfter/list"></nuxt-link>
<span v-else> <span v-else>
{{ i.detailStatus === 2 ? '退款中' : i.detailStatus === 3 ? '已退款' : '退款关闭'}} {{ i.detailStatus === 2 ? '退款中' : i.detailStatus === 3 ? '已退款' : '退款关闭'}}
</span> </span>

@ -159,7 +159,7 @@
<div class="main__details-option--line flex flex-middle"> <div class="main__details-option--line flex flex-middle">
<span class="line-txt">数量</span> <span class="line-txt">数量</span>
<div class="line-btns"> <div class="line-btns">
<el-input-number v-model="curBuyNum" :min="1"></el-input-number> <el-input-number v-model="curBuyNum" :min="1" :max='maxBuyNum'></el-input-number>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save