Merge branch 'feature/task1.0.0' into msb_test

feature/ad-0531-ch
ch 3 years ago
commit dd58b90d97

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

@ -605,6 +605,7 @@ export default {
} }
&__details { &__details {
width: 714px; width: 714px;
padding-top: 10px;
&-title { &-title {
font-size: 16px; font-size: 16px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;

@ -11,7 +11,7 @@
<el-skeleton <el-skeleton
v-for="item in 5" v-for="item in 5"
:key="item" :key="item"
style="width: 230px;margin-right:20px;" style="width: 230px; margin-right: 20px"
:loading="true" :loading="true"
animated animated
> >
@ -194,8 +194,8 @@ export default {
if (vm.levelType == 1) { if (vm.levelType == 1) {
vm.params.categoryId = vm.categoryOneList[vm.levelActive].id; vm.params.categoryId = vm.categoryOneList[vm.levelActive].id;
} }
if(vm.params.name){ if (vm.params.name) {
vm.params.categoryId = '' vm.params.categoryId = "";
} }
let res = await ApiGetGoodsList(vm.params); let res = await ApiGetGoodsList(vm.params);
vm.pageloading = false; vm.pageloading = false;
@ -259,6 +259,9 @@ export default {
&-btn { &-btn {
margin-right: 50px; margin-right: 50px;
cursor: pointer; cursor: pointer;
&:hover {
color: #ff512b;
}
} }
&-active { &-active {
color: #ff512b; color: #ff512b;

@ -9,6 +9,20 @@
<template> <template>
<div class="home-banner"> <div class="home-banner">
<el-carousel height="360px" indicator-position="outside"> <el-carousel height="360px" indicator-position="outside">
<el-carousel-item>
<el-image
@click="onAdvBannerClick(1)"
:src="banner1"
fit="cover"
></el-image>
</el-carousel-item>
<el-carousel-item>
<el-image
@click="onAdvBannerClick(2)"
:src="banner2"
fit="cover"
></el-image>
</el-carousel-item>
<el-carousel-item v-for="item in bannerList" :key="item.id"> <el-carousel-item v-for="item in bannerList" :key="item.id">
<el-image <el-image
@click="onBannerClick(item.id)" @click="onBannerClick(item.id)"
@ -24,6 +38,8 @@ export default {
name: "HomtBanner", name: "HomtBanner",
data() { data() {
return { return {
banner1: require("~/assets/img/home/banner1.jpg"),
banner2: require("~/assets/img/home/banner2.jpg"),
bannerList: [ bannerList: [
{ {
url: "https://cdn.mashibing.com/shop-pc/goods13.jpg", url: "https://cdn.mashibing.com/shop-pc/goods13.jpg",
@ -45,6 +61,13 @@ export default {
}; };
}, },
methods: { methods: {
onAdvBannerClick(i) {
if (i === 1) {
window.open(`https://www.mashibing.com/live/1530`);
} else if (i === 2) {
window.open(`https://www.mashibing.com/free/1373`);
}
},
onBannerClick(goodsId) { onBannerClick(goodsId) {
window.open(`${location.origin}/goods/detail/${goodsId}`); window.open(`${location.origin}/goods/detail/${goodsId}`);
}, },

Loading…
Cancel
Save