Commit 7b5fbd13ad26ed5dd15b363009948b0662a1d4b7

Authored by zhiyangdu
1 parent e35c8bc3

样式优化

src/components/shopDarenHot/shopDarenHot.less
1 1 .recommendDaren{
2 2 padding: 0 15px;
3 3 display: flex;
  4 + margin-top: 30px;
4 5 .daren_box{
5 6 width:210px;
6 7 height:auto;
... ...
src/pages/newDaren/newDaren.vue
... ... @@ -8,8 +8,15 @@
8 8 }">
9 9 </swiper>
10 10 <!--达人信息-->
11   - <shopDatenTop v-if="shopDatenTop" :shopDatenTop="shopDatenTop"></shopDatenTop>
  11 + <shop-daten-top :shopDatenTop="shopDatenTop"></shop-daten-top>
12 12 <!--推荐达人-->
  13 + <!-- 最新动态标题 -->
  14 + <text-title-box slot="title-box" @more="newDarenDynamicsMore"
  15 + :titles="{
  16 + title: '推荐达人',
  17 + more: true
  18 + }">
  19 + </text-title-box>
13 20 <!--导航-->
14 21 <horiz-list class="components-box" v-if="shopDarenHot && shopDarenHot.length" @jump="jump"
15 22 :lists="shopDarenHot"
... ... @@ -27,18 +34,6 @@
27 34 }">
28 35 </text-title-box>
29 36 </daren-list-box>
30   -
31   -
32   -
33   -
34   -
35   -
36   -
37   -
38   -
39   -
40   -
41   -
42 37 </div>
43 38 </template>
44 39  
... ... @@ -134,7 +129,7 @@
134 129 this.banner.push(datas.shop_daten_ads)
135 130 // 设置shopDatenTop置顶达人数据
136 131  
137   - if (datas.shop_daten_top && datas.shop_daten_top.length) {
  132 + if (datas.shop_daten_top) {
138 133 this.$set(this, "shopDatenTop", datas.shop_daten_top);
139 134 }
140 135 // 设置shopDarenHot达人推荐数据
... ...