钱新宇 hace 2 meses
padre
commit
9b7a4e1d6b
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      pages/redPacket/active.vue

+ 5 - 4
pages/redPacket/active.vue

@@ -48,7 +48,7 @@
               ><text>{{ item.sku_attr_names }}</text></view
             >
             <view class="stock_price">
-              <text>¥{{ item.price }} </text>
+              <text class="product_price">¥{{ item.price }} </text>
               <view class="product_stock">剩{{ item.stock }}个</view>
             </view>
           </view>
@@ -78,7 +78,7 @@
             "
           >
             <view v-if="rewardInfo?.money !== 0" class="reward-text">{{ rewardInfo?.money || 0 }}&nbsp;<text style="font-size: 36rpx">元</text></view>
-            <view class="reward-text" style="font-size: 32rpx">手气不是很好</view>
+            <view class="reward-text" v-else style="font-size: 32rpx">手气不是很好</view>
 
             <view
               class="reward-btn"
@@ -553,14 +553,15 @@ export default {
         display: flex;
         overflow: hidden;
         margin: 0rpx auto;
+		flex-wrap: wrap;
+		justify-content: space-between;
         .product_item {
           float: left;
-          width: 320rpx;
+          width: 310rpx;
           height: 520rpx;
           display: block;
           overflow: hidden;
           margin: 20rpx 0rpx;
-          margin-right: 40rpx;
           background-color: #ffffff;
           border-radius: 20rpx;
           .product_image {