|
|
@ -12,7 +12,7 @@
|
|
|
|
<div class="home-pick-recommend__products flex flex-middle flex-between">
|
|
|
|
<div class="home-pick-recommend__products flex flex-middle flex-between">
|
|
|
|
<!-- 左侧商品一 -->
|
|
|
|
<!-- 左侧商品一 -->
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
@click="onJumpGoodsDetal(recommendGoodsOne.id)"
|
|
|
|
@click="onJumpGoodsDetail(recommendGoodsOne.id)"
|
|
|
|
class="pick-recommend-products__left"
|
|
|
|
class="pick-recommend-products__left"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<strong class="home-pick-recommend--title">{{
|
|
|
|
<strong class="home-pick-recommend--title">{{
|
|
|
@ -45,7 +45,7 @@
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
v-for="(item, index) in recommendArray"
|
|
|
|
v-for="(item, index) in recommendArray"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
@click="onJumpGoodsDetal(item.id)"
|
|
|
|
@click="onJumpGoodsDetail(item.id)"
|
|
|
|
class="recommend-products-right__item"
|
|
|
|
class="recommend-products-right__item"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<strong class="home-pick-recommend--title">{{ item.title }}</strong>
|
|
|
|
<strong class="home-pick-recommend--title">{{ item.title }}</strong>
|
|
|
@ -84,7 +84,7 @@
|
|
|
|
<div class="home-pick-new__products flex">
|
|
|
|
<div class="home-pick-new__products flex">
|
|
|
|
<!-- 左侧商品 -->
|
|
|
|
<!-- 左侧商品 -->
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
@click="onJumpGoodsDetal(newGoodsOne.id)"
|
|
|
|
@click="onJumpGoodsDetail(newGoodsOne.id)"
|
|
|
|
class="pick-new-products__left"
|
|
|
|
class="pick-new-products__left"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
<img
|
|
|
@ -102,7 +102,7 @@
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
v-for="(item, index) in newArray"
|
|
|
|
v-for="(item, index) in newArray"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
|
@click="onJumpGoodsDetal(item.id)"
|
|
|
|
@click="onJumpGoodsDetail(item.id)"
|
|
|
|
class="new-products-right__wrap flex flex-middle"
|
|
|
|
class="new-products-right__wrap flex flex-middle"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="products-right-wrap__cover">
|
|
|
|
<div class="products-right-wrap__cover">
|
|
|
@ -172,11 +172,11 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
onJumpGoodsDetal(id) {
|
|
|
|
onJumpGoodsDetail(id) {
|
|
|
|
this.$router.push(`/goods/detail/${id}`);
|
|
|
|
window.open(`${location.origin}/goods/detail/${id}`);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onJumpGoodsList(type) {
|
|
|
|
onJumpGoodsList(type) {
|
|
|
|
this.$router.push(`/goods/list?id=${type}`);
|
|
|
|
window.open(`${location.origin}/goods/list?id=${type}`);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -184,6 +184,7 @@ export default {
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.home-pick {
|
|
|
|
.home-pick {
|
|
|
|
color: #333333;
|
|
|
|
color: #333333;
|
|
|
|
|
|
|
|
margin-top: 30px;
|
|
|
|
&--label {
|
|
|
|
&--label {
|
|
|
|
font-size: 24px;
|
|
|
|
font-size: 24px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|