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