Commit e483beb0db393890dfb98d204e2920bc9ce0088f

Authored by 王强
1 parent e43e4cfb

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

src/components/tabBox/tabBox.less
@@ -42,9 +42,25 @@ @@ -42,9 +42,25 @@
42 .skeleton { 42 .skeleton {
43 &.brief { 43 &.brief {
44 background-color: #ffffff; 44 background-color: #ffffff;
  45 + .html-box {
  46 + .box {
  47 + .html {
  48 + p {
  49 + margin-bottom: 0;
  50 + }
  51 + }
  52 + }
  53 + }
45 } 54 }
46 &.boutique { 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 &.commodity { 65 &.commodity {
50 width: 100%; 66 width: 100%;
src/components/tabBox/tabBox.vue
@@ -4,17 +4,17 @@ @@ -4,17 +4,17 @@
4 <van-tabs @change="onChange" swipeable v-model="active" ellipsis swipe-threshold="3"> 4 <van-tabs @change="onChange" swipeable v-model="active" ellipsis swipe-threshold="3">
5 <van-tab v-for="(item,index) in tabbar" :key="index" :title="item.title"> 5 <van-tab v-for="(item,index) in tabbar" :key="index" :title="item.title">
6 </van-tab> 6 </van-tab>
7 - <div class="tabBox_main" ref="tabsSwiperBox"> 7 + <div class="tabBox_main" ref="tabsSwiperBox">
8 <div class="tabbar" v-for="(item, index) in tabbaromponents&&tabbaromponents.ads" :key="index"> 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 <html-box 11 <html-box
12 v-if="item.style === '14'" 12 v-if="item.style === '14'"
13 :htmls="item.content"> 13 :htmls="item.content">
14 </html-box> 14 </html-box>
15 </div> 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 <img-list-box 18 <img-list-box
19 v-if="item.style === '12'" 19 v-if="item.style === '12'"
20 @detail="toDetail" 20 @detail="toDetail"
@@ -40,9 +40,9 @@ @@ -40,9 +40,9 @@
40 </style-7> 40 </style-7>
41 </div> 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 <!--infinite-scroll-immediate-check="true"可避免上拉多次调用接口问题--> 44 <!--infinite-scroll-immediate-check="true"可避免上拉多次调用接口问题-->
45 - <!-- 渐变过度 --> 45 + <!-- 渐变过度 -->
46 <div class="column-commodity-excessive"></div> 46 <div class="column-commodity-excessive"></div>
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"> 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 <column-commodity-list-box 48 <column-commodity-list-box
src/pages/mall/mall.less
@@ -17,13 +17,24 @@ @@ -17,13 +17,24 @@
17 z-index:1000 17 z-index:1000
18 } 18 }
19 .pl { 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 \ No newline at end of file 41 \ No newline at end of file
src/pages/mall/mall.vue
@@ -26,10 +26,19 @@ @@ -26,10 +26,19 @@
26 </swiper> 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 :lists="navs" 30 :lists="navs"
31 com="4"> 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 <!-- 遍历ads,输出列表数据 --> 43 <!-- 遍历ads,输出列表数据 -->
35 <div class="ads-box"> 44 <div class="ads-box">
@@ -77,6 +86,7 @@ @@ -77,6 +86,7 @@
77 import videoArea from "@/components/videoArea/videoArea"; 86 import videoArea from "@/components/videoArea/videoArea";
78 import style7 from "@/components/style_7/style_7"; 87 import style7 from "@/components/style_7/style_7";
79 import horizList from "@/components/horizList/horizList"; 88 import horizList from "@/components/horizList/horizList";
  89 + import iconSwiperBox from "@/components/iconSwiperBox/iconSwiperBox";
80 import tabBox from "@/components/tabBox/tabBox"; 90 import tabBox from "@/components/tabBox/tabBox";
81 import backBox from "@/components/backBox/backBox"; 91 import backBox from "@/components/backBox/backBox";
82 92
@@ -102,6 +112,7 @@ @@ -102,6 +112,7 @@
102 videoArea, 112 videoArea,
103 style7, 113 style7,
104 horizList, 114 horizList,
  115 + iconSwiperBox,
105 tabBox, 116 tabBox,
106 backBox, 117 backBox,
107 callAppBox 118 callAppBox