Commit cdf2d94e by 张立顺

样式修改

1 parent 6e8d6265
...@@ -99,13 +99,13 @@ page { ...@@ -99,13 +99,13 @@ page {
box-sizing: border-box; box-sizing: border-box;
padding: 16rpx; padding: 16rpx;
margin-bottom: 32rpx; margin-bottom: 32rpx;
margin-top: -80rpx; // margin-top: -80rpx;
display: flex; display: flex;
width: 690rpx; width: 690rpx;
height: 204rpx; height: 204rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 8rpx; border-radius: 8rpx;
.cover { .cover {
position: relative; position: relative;
border-radius: 8rpx; border-radius: 8rpx;
...@@ -211,6 +211,10 @@ page { ...@@ -211,6 +211,10 @@ page {
} }
} }
} }
.mtStyle{
margin-top: -80rpx;
}
} }
.goods_ctnr_col { .goods_ctnr_col {
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
</view> </view>
<view wx:if="{{categoryStyle>-1}}" class="{{ categoryStyle=='2' ? 'goods_ctnr_waterfall': categoryStyle=='3' ? 'goods_ctnr_grass_B' : categoryStyle=='1' ? 'goods_ctnr_row' : 'goods_ctnr_col' }}"> <view wx:if="{{categoryStyle>-1}}" class="{{ categoryStyle=='2' ? 'goods_ctnr_waterfall': categoryStyle=='3' ? 'goods_ctnr_grass_B' : categoryStyle=='1' ? 'goods_ctnr_row' : 'goods_ctnr_col' }}">
<view wx:if="{{categoryStyle==0 || categoryStyle==1}}" class="goods_wrap"> <view wx:if="{{categoryStyle==0 || categoryStyle==1}}" class="goods_wrap">
<view class="titleBg">热销爆款</view> <view class="titleBg" wx:if="{{categoryStyle==1}}">热销爆款</view>
<view catch:tap="toGoodsDetail" data-item="{{item}}" class="goods_box" wx:for="{{goodsList}}" wx:key="index"> <view catch:tap="toGoodsDetail" data-item="{{item}}" class="goods_box {{categoryStyle==1&&index==0? 'mtStyle' : ''}}" wx:for="{{goodsList}}" wx:key="index">
<image mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" /> <image mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<view class="info {{categoryStyle?'flex_cccb':''}}"> <view class="info {{categoryStyle?'flex_cccb':''}}">
<text class="name">{{item.goodsName}}</text> <text class="name">{{item.goodsName}}</text>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!