Commit e483beb0db393890dfb98d204e2920bc9ce0088f

Authored by 王强
1 parent e43e4cfb

购好物,mall页面样式优化~

src/components/tabBox/tabBox.less
... ... @@ -42,9 +42,25 @@
42 42 .skeleton {
43 43 &.brief {
44 44 background-color: #ffffff;
  45 + .html-box {
  46 + .box {
  47 + .html {
  48 + p {
  49 + margin-bottom: 0;
  50 + }
  51 + }
  52 + }
  53 + }
45 54 }
46 55 &.boutique {
47   - background: linear-gradient(90deg, rgba(255, 246, 248, 1) 0%, rgba(255, 233, 239, 1) 100%);
  56 + // background: linear-gradient(90deg, rgba(255, 246, 248, 1) 0%, rgba(255, 233, 239, 1) 100%);
  57 + .img-list-box {
  58 + .box {
  59 + .img-box {
  60 + padding: 0;
  61 + }
  62 + }
  63 + }
48 64 }
49 65 &.commodity {
50 66 width: 100%;
... ...
src/components/tabBox/tabBox.vue
... ... @@ -4,17 +4,17 @@
4 4 <van-tabs @change="onChange" swipeable v-model="active" ellipsis swipe-threshold="3">
5 5 <van-tab v-for="(item,index) in tabbar" :key="index" :title="item.title">
6 6 </van-tab>
7   - <div class="tabBox_main" ref="tabsSwiperBox">
  7 + <div class="tabBox_main" ref="tabsSwiperBox">
8 8 <div class="tabbar" v-for="(item, index) in tabbaromponents&&tabbaromponents.ads" :key="index">
9 9 <!-- 关爱屋简介 -->
10   - <div :style="{backgroundColor:(tabbar&&tabbar[0].color) || tabbarBackgroud}" class="skeleton brief" ref="brief">
  10 + <div :style="{background:(tabbar&&tabbar[0].color) || tabbarBackgroud}" class="skeleton brief" ref="brief">
11 11 <html-box
12 12 v-if="item.style === '14'"
13 13 :htmls="item.content">
14 14 </html-box>
15 15 </div>
16 16 <!-- 精品推荐 -->
17   - <div :style="{backgroundColor:(tabbar&&tabbar[0].color) || tabbarBackgroud}" class="skeleton boutique" ref="boutique">
  17 + <div :style="{background:(tabbar&&tabbar[0].color) || tabbarBackgroud}" class="skeleton boutique" ref="boutique">
18 18 <img-list-box
19 19 v-if="item.style === '12'"
20 20 @detail="toDetail"
... ... @@ -40,9 +40,9 @@
40 40 </style-7>
41 41 </div>
42 42 <!-- 商品推荐 -->
43   - <div :style="{backgroundColor:(tabbar&&tabbar[0].color) || tabbarBackgroud}" class="skeleton commodity" ref="commodity">
  43 + <div :style="{background:(tabbar&&tabbar[0].color) || tabbarBackgroud}" class="skeleton commodity" ref="commodity" v-if="commoditys && commoditys.list && commoditys.list.length">
44 44 <!--infinite-scroll-immediate-check="true"可避免上拉多次调用接口问题-->
45   - <!-- 渐变过度 -->
  45 + <!-- 渐变过度 -->
46 46 <div class="column-commodity-excessive"></div>
47 47 <div class="column-commodity-list" infinite-scroll-immediate-check="true" v-infinite-scroll="loadCommodity" infinite-scroll-disabled="paging.commodity.loading" :infinite-scroll-distance="paging.distance">
48 48 <column-commodity-list-box
... ...
src/pages/mall/mall.less
... ... @@ -17,13 +17,24 @@
17 17 z-index:1000
18 18 }
19 19 .pl {
20   - background-color: transparent;
21   - width: 100%;
22   - &.is-open-app {
23   - height: 144px;
24   - }
25   - &.is-cnlive {
26   - height: 123px;
27   - }
28   - }
  20 + background-color: transparent;
  21 + width: 100%;
  22 + &.is-open-app {
  23 + height: 144px;
  24 + }
  25 + &.is-cnlive {
  26 + height: 123px;
  27 + }
  28 + }
  29 + .navs-box {
  30 + /deep/.icon-swiper-box {
  31 + .swipe {
  32 + &.van-swipe {
  33 + .icons-com {
  34 + width: 20%;
  35 + }
  36 + }
  37 + }
  38 + }
  39 + }
29 40 }
30 41 \ No newline at end of file
... ...
src/pages/mall/mall.vue
... ... @@ -26,10 +26,19 @@
26 26 </swiper>
27 27  
28 28 <!--导航-->
29   - <horiz-list class="components-box" v-if="navs && navs.length" @jump="jump"
  29 + <!-- <horiz-list class="components-box" v-if="navs && navs.length" @jump="jump"
30 30 :lists="navs"
31 31 com="4">
32   - </horiz-list>
  32 + </horiz-list> -->
  33 +
  34 + <!-- 其它频道 -->
  35 + <div class="navs-box" v-if="navs && navs.length">
  36 +
  37 + <!-- 轮播展示其它频道 -->
  38 + <icon-swiper-box @jump="toPage"
  39 + :icons="navs">
  40 + </icon-swiper-box>
  41 + </div>
33 42  
34 43 <!-- 遍历ads,输出列表数据 -->
35 44 <div class="ads-box">
... ... @@ -77,6 +86,7 @@
77 86 import videoArea from "@/components/videoArea/videoArea";
78 87 import style7 from "@/components/style_7/style_7";
79 88 import horizList from "@/components/horizList/horizList";
  89 + import iconSwiperBox from "@/components/iconSwiperBox/iconSwiperBox";
80 90 import tabBox from "@/components/tabBox/tabBox";
81 91 import backBox from "@/components/backBox/backBox";
82 92  
... ... @@ -102,6 +112,7 @@
102 112 videoArea,
103 113 style7,
104 114 horizList,
  115 + iconSwiperBox,
105 116 tabBox,
106 117 backBox,
107 118 callAppBox
... ...