Bläddra i källkod

抽奖记录添加使用功能

kk.shi 3 år sedan
förälder
incheckning
bc7132a6e2
2 ändrade filer med 3 tillägg och 6 borttagningar
  1. 1 1
      pages/luckDraw/recordPrize.wxml
  2. 2 5
      pages/luckDraw/recordPrize.wxss

+ 1 - 1
pages/luckDraw/recordPrize.wxml

@@ -14,7 +14,7 @@
           <view class="luck-draw-zkz1">{{item.goodsName?item.goodsName:'未设置名称'}}</view>
           <view class="luck-draw-zkz3">{{item.createTime}}</view>
         </view>
-        <view class="coupon-jump">
+        <view class="coupon-jump" wx:if="{{item.isHit == 1}}">
           <view class="coupon-right-usenow2">
             <navigator class="btn_exchange" target="miniProgram" app-id="wxd92a2d29f8022f40" path="page/index/index" open-type='navigate'>
             </navigator>

+ 2 - 5
pages/luckDraw/recordPrize.wxss

@@ -110,7 +110,7 @@
 }
 
 .luck-draw-discount2{
-  width: 500rpx;
+  width: 300rpx;
   height: 100%;
 }
 
@@ -181,17 +181,14 @@
 .coupon-jump{
   width: 200rpx;
   height: 190rpx;
-  line-height: 190rpx;
 }
 
 .coupon-right-usenow2{
   width: 162rpx;
   height: 56rpx;
-  line-height: 56rpx;
   background-image: url(https://dy.shpr.top/luckDraw/coupon_use_now.png);
   background-size: 100% 100%;
-  margin-top: 40%;
-  margin-right: 10rpx;
+  margin-top: 35%;
 }
 
 .btn_exchange{