stanley-king 8 年 前
コミット
fb422ba9c5

+ 25 - 10
data/resource/mobile/activity/css/count_down.css

@@ -14,23 +14,28 @@ img {
     float: left;
 }
 .count_down_content {
-    width: 6.07rem;
+    width: 4.95rem;
     text-align: center;
     overflow: hidden;
-    min-height: 3.76rem;
+    min-height: 5.11rem;
+    position: relative;
 }
 .count_down_image {
-    width: 3.2rem;
-    margin-top: 0.28rem;
+    width: 4.90rem;
+    margin-top: 0.15rem;
+    margin-right: 0.15rem;
+    margin-bottom: 0.15rem;
 }
 .count_down_content h3 {
-    font-size: 0.43rem;
-    margin-top: 0.49rem;
+    font-size: 1.04rem;
+    color: #FF4E4E;
+    line-height: 1.71rem;
+    font-family: "helvetica";
 }
 .time_box {
     font-family: "helvetica";
     overflow: hidden;
-    margin: 0.31rem auto 0.41rem auto;
+    margin: 0.973rem auto 0 auto;
     width: 2.39rem;
     font-size: 0.43rem;
     line-height: 0.68rem;
@@ -48,19 +53,20 @@ img {
     margin: 0 0.04rem;
 }
 .count_goods_name {
-    font-size: 0.35rem;
+    font-size: 0.38rem;
     padding:0 0.3rem;
     display: block;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
+    line-height: 0.39rem;
 }
 .count_goods_price {
     font-family: "helvetica";
-    margin-top: 0.1rem;
+    margin-top: 0.2rem;
 }
 .gount_price {
-    font-size: 0.4rem;
+    font-size: 0.45rem;
     color: #FF4E4E;
     vertical-align: middle;
 }
@@ -70,4 +76,13 @@ img {
     padding-left: 0.19rem;
     vertical-align: middle;
     color: #898989;
+}
+.icon_rob {
+    position: absolute;
+    top: 0.253rem;
+    left: 0.253rem;
+    background: url(".././images/icon_rob.png") no-repeat;
+    background-size: 100%;
+    width: 0.72rem;
+    height: 0.72rem;
 }

BIN
data/resource/mobile/activity/images/group.jpg


+ 13 - 1
mobile/templates/default/activity/limit_entra.php

@@ -9,7 +9,6 @@
     <body>
         <div class="maincontent" id="count_goods_box">
             <div class="count_down_content">
-                <h3>限时购</h3>
                 <div class="time_box">
                     <div class="hour" id="hour"></div>
                     <span>:</span>
@@ -17,11 +16,23 @@
                     <span>:</span>
                     <div class="second" id="second"></div>
                 </div>
+                <h3><?php
+                        $price_cent = intval($output['goods_price'] * 100 + 0.5);
+                        if($cent > 0) {
+                            $promotion_cent = intval($output['goods_promotion_price'] * 100 + 0.5);
+                            $discount = intval(($promotion_cent / $price_cent) * 100 + 0.5);
+                            echo( "{$discount}%");
+                        } else {
+                            echo("点击进入");
+                        }
+                    ?>
+                </h3>
                 <div class="count_goods_name"><?php echo($output['goods_name']); ?> </div>
                 <div class="count_goods_price">
                     <span class="gount_price">¥<?php echo($output['goods_promotion_price']); ?></span>
                     <span class="purchase_price"><?php echo($output['goods_price']); ?></span>
                 </div>
+                <div class="icon_rob"></div>
             </div>
             <div class="count_down_image">
                 <img src="<?php echo ($output['goods_image_url']); ?>" alt="限时购"/>
@@ -32,6 +43,7 @@
         <script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/activity/js/zepto.min.js"></script>
         <script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/activity/js/app_count_down.js"></script>
     </body>
+
     <script type="text/javascript">
         function init_ios_bridge(callback)
         {