Commit 926c5c48 by 侯体倬

样式优化

parent 95ec55a0
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<!-- 底部 --> <!-- 底部 -->
<view class="bottom" wx:if="{{datas.componentData['goodsType'] !=1}}"> <view class="bottom" wx:if="{{datas.componentData['goodsType'] !=1}}">
<!-- 价格 --> <!-- 价格 -->
<view class="priceItem flex" style="flex-wrap:{{items && items.secondKillActivityInfoGoodsList ? 'wrap' : 'nowrap'}};justify-content:{{priceTextStyle}}"> <view class="priceItem flex" style="flex-wrap:{{items && items.secondKillActivityInfoGoodsList ? 'wrap' : 'nowrap'}};justify-content:{{priceTextStyle}};">
<!-- 定金膨胀 --> <!-- 定金膨胀 -->
<block wx:if="{{items && items.depositInflationInfoList && items.depositInflationInfoList.length != 0 && items.depositInflationInfoList[0].status == 1}}"> <block wx:if="{{items && items.depositInflationInfoList && items.depositInflationInfoList.length != 0 && items.depositInflationInfoList[0].status == 1}}">
<view class="flex cut-price__wrapper"> <view class="flex cut-price__wrapper">
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
> >
已售罄 已售罄
</view> </view>
<view wx:if="{{(items&&items.totalQty-0>0||items&&items.oversoldFlag==1)&& datas.componentData['paynow']}}" catchtap="onclickBuynow" style="margin-left: auto;"> <view wx:if="{{(items&&items.totalQty-0>0||items&&items.oversoldFlag==1)&& datas.componentData['paynow']}}" catchtap="onclickBuynow" style="margin-left: auto;display: flex;">
<text wx:if="{{datas.componentData.btnType<6}}" style="color:{{datas.componentData.btnColor}}" class="buy-now-icon iconfont-common {{datas.componentData.btnIcon}}"></text> <text wx:if="{{datas.componentData.btnType<6}}" style="color:{{datas.componentData.btnColor}}" class="buy-now-icon iconfont-common {{datas.componentData.btnIcon}}"></text>
<view <view
wx:else wx:else
......
...@@ -10,6 +10,7 @@ image{ ...@@ -10,6 +10,7 @@ image{
display: block; display: block;
} }
.goodsItem{ .goodsItem{
height: 100%;
margin-bottom: var(--proGap2); margin-bottom: var(--proGap2);
white-space: initial; white-space: initial;
} }
...@@ -329,15 +330,13 @@ align-items: flex-start; ...@@ -329,15 +330,13 @@ align-items: flex-start;
-o-border-radius: 30rpx; -o-border-radius: 30rpx;
} }
.buy-now-icon { .buy-now-icon {
position: relative;
right: 0;
bottom: 2px;
font-size: 36rpx; font-size: 36rpx;
} }
.start{ .start{
position: absolute; position: relative;
right: 50rpx;
bottom: 0; bottom: 0;
right: 0;
margin-left: auto;
} }
.secKillTag { .secKillTag {
display: inline-block; display: inline-block;
......
...@@ -61,13 +61,13 @@ ...@@ -61,13 +61,13 @@
<view <view
wx:if="{{datas.componentData.style==='list'}}" wx:if="{{datas.componentData.style==='list'}}"
class="goodsItem-list flex" class="goodsItem-list flex"
style="margin-left:{{-datas.componentData.proGap*2}}rpx;" style="display:grid;grid-template-columns:repeat({{datas.componentData.columnNum}},minmax(0px, 1fr));gap:{{datas.componentData.proGap*2}}rpx;"
> >
<view <view
wx:for="{{pageGoodsList[datasIndex]}}" wx:for="{{pageGoodsList[datasIndex]}}"
wx:key="index" wx:key="index"
class="goods-item {{'goodsItemIndex'+index}}" class="goods-item {{'goodsItemIndex'+index}}"
style="width:{{100/datas.componentData.columnNum}}%;padding-left:{{datas.componentData.proGap*2}}rpx;display:flex;" style="margin-bottom:20rpx;"
> >
<!-- <goods-item <!-- <goods-item
datas="{{datas}}" datas="{{datas}}"
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
items="{{item}}" items="{{item}}"
datas="{{datas}}" datas="{{datas}}"
indexs="{{index}}" indexs="{{index}}"
style="height: 100%;"
></goods-item> ></goods-item>
</view> </view>
<!-- 网格布局滚动加载 --> <!-- 网格布局滚动加载 -->
...@@ -86,7 +87,7 @@ ...@@ -86,7 +87,7 @@
</view> </view>
</view> </view>
<!-- 横向滚动 --> <!-- 横向滚动 -->
<view class="goods-across" wx:elif="{{datas.componentData.style==='across'}}"> <view class="goods-across" wx:elif="{{datas.componentData.style==='across'}}" style="display:flex;gap: {{datas.componentData.proGap*2}}rpx;">
<view class="prev-btn"> <view class="prev-btn">
<text class="iconfont-common common-iconyoujiantou"></text> <text class="iconfont-common common-iconyoujiantou"></text>
</view> </view>
...@@ -97,12 +98,13 @@ ...@@ -97,12 +98,13 @@
wx:for="{{datas.componentData.goodsList}}" wx:for="{{datas.componentData.goodsList}}"
wx:key="index" wx:key="index"
class="goods-item" class="goods-item"
style="width:{{100/datas.componentData.columnNum}}%;margin-right:{{datas.componentData.proGap*2}}rpx;display:flex;" style="width:{{100/datas.componentData.columnNum}}%;flex:0 0 {{100/datas.componentData.columnNum}}%;margin-bottom:20rpx;"
> >
<goods-item <goods-item
datas="{{datas}}" datas="{{datas}}"
items="{{datas.componentData.goodsList[index]}}" items="{{datas.componentData.goodsList[index]}}"
indexs="{{index}}" indexs="{{index}}"
style="height:100%;"
></goods-item> ></goods-item>
</view> </view>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment