浏览代码

activity style

zz 6 年之前
父节点
当前提交
63ed73022f
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      resources/views/pay/activity/huaweiLottery.blade.php

+ 11 - 2
resources/views/pay/activity/huaweiLottery.blade.php

@@ -171,6 +171,11 @@
             -webkit-transform: translate(-50%);
             transform: translate(-50%);
         }
+        #lottery_button{
+            display: inline-block;
+            width: 100%;
+            text-align: center;
+        }
 
         .index .button img {
             width: 3rem;
@@ -389,7 +394,7 @@
         </div>
         <div class="zz">
             <img src="https://cdn-novel.iycdm.com/h5/activity-2019-05-30/point.png" />
-            <span id="left_count">剩余{{$count}} 次</span>
+            <span id="left_count">剩  余{{$count >=10 ? '9+':$count}}次</span>
         </div>
         <div class="button">
             <img src="https://cdn-novel.iycdm.com/h5/activity-2019-05-30/button.png" />
@@ -588,7 +593,11 @@
                             //旋转完毕后弹窗
                             console.log('over');
                             count--;
-                            $('#left_count').html('剩余'+count+' 次');
+                            count_str = count
+                            if(count >=10){
+                                count_str =count+'+'
+                            }
+                            $('#left_count').html('剩余'+count_str+'+次');
                             if(count<=0){
                                 $('#lottery_button').html('充值后才可抽奖');
                             }