优化首页样式
This commit is contained in:
@ -20,9 +20,11 @@
|
|||||||
<Banner v-if="item.type=='banner'" :detail="item.componentContent.bannerData" @getbgcolor="getbgcolor"></Banner>
|
<Banner v-if="item.type=='banner'" :detail="item.componentContent.bannerData" @getbgcolor="getbgcolor"></Banner>
|
||||||
<uni-notice-bar v-if="item.type=='noticeBar'" scrollable="true" @click="goRoll(item.componentContent.roll[0])"
|
<uni-notice-bar v-if="item.type=='noticeBar'" scrollable="true" @click="goRoll(item.componentContent.roll[0])"
|
||||||
single="true" :speed="10" showIcon="true" :text="item.componentContent.roll[0].info"></uni-notice-bar>
|
single="true" :speed="10" showIcon="true" :text="item.componentContent.roll[0].info"></uni-notice-bar>
|
||||||
<view class="content_box home_content_box">
|
<view class="content_box home_content_box" v-if="item.type=='menu'&&item.componentContent.menus">
|
||||||
<!-- 菜单 -->
|
<!-- 菜单 -->
|
||||||
<Menu :list="item.componentContent.menus" v-if="item.type=='menu'&&item.componentContent.menus"></Menu>
|
<Menu :list="item.componentContent.menus" ></Menu>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 滚动新闻 -->
|
<!-- 滚动新闻 -->
|
||||||
<!-- 广告 -->
|
<!-- 广告 -->
|
||||||
<Adv v-if="item.type=='adv'&&item.componentContent.detail" :detail="item.componentContent.detail" />
|
<Adv v-if="item.type=='adv'&&item.componentContent.detail" :detail="item.componentContent.detail" />
|
||||||
@ -42,7 +44,6 @@
|
|||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!-- 为您推荐 -->
|
<!-- 为您推荐 -->
|
||||||
<PromotionGood v-if="item.type=='promotionGood'" :benefit="benefit"></PromotionGood>
|
<PromotionGood v-if="item.type=='promotionGood'" :benefit="benefit"></PromotionGood>
|
||||||
</view>
|
|
||||||
<Coupon-window :coupon-list="couponList" v-if="showCoupon" @checked="couponClose" @close="couponClose">
|
<Coupon-window :coupon-list="couponList" v-if="showCoupon" @checked="couponClose" @close="couponClose">
|
||||||
</Coupon-window>
|
</Coupon-window>
|
||||||
</view>
|
</view>
|
||||||
@ -354,7 +355,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.index {
|
.index {
|
||||||
background-color: #fff;
|
background-color: #f6f6f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.swiper-item {
|
.swiper-item {
|
||||||
@ -436,7 +437,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.home_content_box {
|
.home_content_box {
|
||||||
margin-top: -10rpx;
|
margin-top: -20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.head_box {}
|
.head_box {}
|
||||||
@ -445,4 +446,4 @@
|
|||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user