Просмотр исходного кода

Merge branch 'bonus_rate' of 121.43.114.153:/home/git/repositories/shopnc into bonus_rate

stanley-king 6 лет назад
Родитель
Сommit
1e9e43ac1e

+ 162 - 70
data/resource/mobile/festival/double11/css/style.css

@@ -36,6 +36,11 @@ img {
 .col22d6c7 {
     color: #22d6c7;
 }
+.one_line_hidden {
+    white-space: nowrap;
+    text-overflow: ellipsis;
+    overflow: hidden;
+}
 .container {
     position: relative;
     width: 100%;
@@ -46,11 +51,23 @@ img {
 .step-btn {
     position: absolute;
     z-index: 99;
-    width: 152px;
-    height: 152px;
-    left: 50%;
-    margin-left: -76px;
-    top: 370px;
+    width: 182px;
+    height: 182px;
+    right: 58px;
+    top: 484px;
+}
+.common-boder-line {
+    position: relative;
+}
+.common-boder-line::after {
+    content: '';
+    position: absolute;
+    left: 0;
+    right: 0;
+    bottom: 0;
+    height: 0;
+    border: 1px solid #999;
+    transform: scaleY(.5);
 }
 .border_bottom_1::after {
     content: '';
@@ -58,26 +75,28 @@ img {
     left: 0;
     right: 0;
     bottom: 0;
-    height: 1px;
-    background: #e2e0d4;
+    height: 0;
+    border: 1px dashed #999;
     transform: scaleY(.5);
 }
 .content {
     position: absolute;
     z-index: 2;
-    left: 0;
-    top: 541px;
-    width: 100%;
+    left: 28px;
+    right: 26px;
+    top: 688px;
+    padding-top: 48px;
+    /*width: 100%;*/
 }
 .ranking-box {
     position: relative;
-    width: 696px;
-    height: 983px;
-    margin: auto;
-    padding: 80px 60px 0;
+    /*width: 696px;*/
+    /*height: 983px;*/
+    /*margin: auto;*/
+    /*padding: 80px 60px 0;*/
     box-sizing: border-box;
-    background: url(../image/rank_bg.png) no-repeat center;
-    background-size: 100% 100%;
+    /*background: url(../image/rank_bg.png) no-repeat center;*/
+    /*background-size: 100% 100%;*/
 }
 .footer-top, .footer-bottom {
     position: absolute;
@@ -92,8 +111,8 @@ img {
     background-size: 100% 100%;
 }
 .ranking-name {
-    width: 166px;
-    height: 40px;
+    width: 208px;
+    height: 28px;
     margin: auto;
     background: url(../image/ranking.png) no-repeat center;
     background-size: 100% 100%;
@@ -105,6 +124,9 @@ img {
     padding-top: 104px;
     padding-bottom: 30px;
 }
+.ranking-top-list li {
+    flex: 1;
+}
 
 .ranking-top-item-1 {
     margin-top: -64px;
@@ -112,41 +134,74 @@ img {
 .person-img {
     margin: 0 auto 10px;
     position: relative;
-    width: 132px;
-    height: 132px;
+    /*width: 132px;*/
+    /*height: 132px;*/
     border-radius: 50%;
 }
 .person-img::before {
     content: '';
     position: absolute;
     z-index: 3;
-    left: -18px;
-    top: -22px;
-    width: 50px;
-    height: 50px;
+    left: 50%;
+    bottom: 0;
+    /*left: -18px;*/
+    /*top: -22px;*/
+    /*width: 50px;*/
+    /*height: 50px;*/
 }
 
 .person-img_1::before {
-    background: url(../image/crown_1.png) no-repeat center;
+    margin-left: -19px;
+    margin-bottom: -19px;
+    width: 38px;
+    height: 38px;
+    background: url(../image/1.png) no-repeat center;
+    background-size: 100% 100%;
+}
+.person-img_1::after {
+    content: '';
+    position: absolute;
+    z-index: 3;
+    left: 50%;
+    top: 0;
+    margin-left: -19px;
+    margin-top: -28px;
+    width: 32px;
+    height: 28px;
+    background: url(../image/crown.png) no-repeat center;
     background-size: 100% 100%;
 }
 .person-img_1 {
-    border: 4px solid #e3c436;
+    width: 132px;
+    height: 132px;
+    border: 4px solid #e4cb80;
 }
 
 .person-img_2::before {
-    background: url(../image/crown_2.png) no-repeat center;
+    margin-left: -16px;
+    margin-bottom: -16px;
+    width: 32px;
+    height: 32px;
+    background: url(../image/2.png) no-repeat center;
     background-size: 100% 100%;
 }
 .person-img_2 {
-    border: 4px solid #f25252;
+    width: 110px;
+    height: 110px;
+    border: 4px solid #ced5e4;
 }
 .person-img_3::before {
-    background: url(../image/crown_3.png) no-repeat center;
+    margin-left: -16px;
+    margin-bottom: -16px;
+    width: 32px;
+    height: 32px;
+    background: url(../image/3.png) no-repeat center;
     background-size: 100% 100%;
 }
 .person-img_3 {
-    border: 4px solid #22d6c7;
+    width: 110px;
+    height: 110px;
+    border: 4px solid #e0b67f;
 }
 
 
@@ -156,73 +211,110 @@ img {
     height: 100%;
     border-radius: 50%;
 }
+.person-cell-commbox {
+    display: inline-block;
+    height: 28px;
+    line-height: 28px;
+    padding: 0 16px;
+    border-radius: 4px;
+    color: #1e1c1b;
+}
+.person-cell1-box {
+    background: #e4cb80;
+}
+.person-cell2-box {
+    background: #ced5e4;
+}
+.person-cell3-box {
+    background: #e0b67f;
+}
 
 .person-common-cell {
     text-align: center;
     height: 36px;
     line-height: 36px;
     font-size: 24px;
-    color: #000;
-    max-width: 160px;
+    color: #fff;
+    max-width: 230px;
     overflow:hidden;
     text-overflow:ellipsis;
     white-space:nowrap
 }
 
+.ranking-normal-list {
+    padding: 0 16px;
+}
+.ranking-normal-list.scroll-list {
+    max-height: 476px;
+    overflow-y: auto;
+}
+
 .ranking-normal-item {
     position: relative;
     display: flex;
     justify-content: space-between;
     align-items: center;
-    height: 78px;
-    font-size: 24px;
-    color: #000;
+    height: 68px;
+    font-size: 28px;
+    color: #fff;
 }
-.crown-box {
-    width: 36px;
-    height: 30px;
-    margin-right: 12px;
-    position: relative;
+.slef-ranking {
+    margin-top: 26px;
+    padding-right: 16px;
+    color: #e4cb80;
 }
-.crown-icon {
-    display: block;
-    width: 100%;
-    height: 100%;
-    text-align: center;
-    background: url(../image/crown.png) no-repeat center;
-    background-size: 100% 100%;
-}
-.crown-box .place {
-    position: absolute;
-    left: 0;
-    bottom: -4px;
-    z-index: 2;
-    width: 100%;
-    text-align: center;
-    transform: scale(.76);
-    color: #fff;
+.slef-ranking .crown-box {
+    color: #e4cb80;
+    min-width: 72px;
 }
+.crown-box {
+    position: relative;
+    width: 56px;
+    height: 68px;
+    line-height: 68px;
+    font-size: 30px;
+    color: #999;
+}
+/*.crown-icon {*/
+    /*display: block;*/
+    /*width: 100%;*/
+    /*height: 100%;*/
+    /*text-align: center;*/
+    /*background: url(../image/crown.png) no-repeat center;*/
+    /*background-size: 100% 100%;*/
+/*}*/
+/*.crown-box .place {*/
+    /*position: absolute;*/
+    /*left: 0;*/
+    /*bottom: -4px;*/
+    /*z-index: 2;*/
+    /*width: 100%;*/
+    /*text-align: center;*/
+    /*transform: scale(.76);*/
+    /*color: #fff;*/
+/*}*/
 .ranking-normal-name {
     flex: 1;
 }
 .rules {
-    margin-top: -24px;
-    margin-bottom: 42px;
-    padding: 0 92px;
+    /*margin-top: -24px;*/
+    /*margin-bottom: 42px;*/
+    padding: 0 34px 0 54px;
 }
 .careful,.game-rules {
 
     margin: 0 auto 28px;
 }
-.careful {
-    width: 180px;
-    height: 40px;
-    background: url(../image/beCareful.png) no-repeat center;
-    background-size: 100% 100%;
-}
+/*.careful {*/
+    /*width: 180px;*/
+    /*height: 40px;*/
+    /*background: url(../image/beCareful.png) no-repeat center;*/
+    /*background-size: 100% 100%;*/
+/*}*/
 .game-rules {
+    margin: 104px auto 34px;
     width: 208px;
-    height: 33px;
+    height: 28px;
     background: url(../image/game_rule.png) no-repeat center;
     background-size: 100% 100%;
 }
@@ -232,7 +324,7 @@ img {
     padding-left: 38px;
     line-height: 36px;
     font-size: 24px;
-    color: #000;
+    color: #999;
 }
 .rule-num {
     position: absolute;
@@ -242,8 +334,8 @@ img {
     height: 36px;
     line-height: 36px;
     border-radius: 50%;
-    background: #f25252;
-    color: #fff;
+    background: #999;
+    color: #181717;
     transform: scale(.66);
     text-align: center;
 }

BIN
data/resource/mobile/festival/double11/image/1.png


BIN
data/resource/mobile/festival/double11/image/2.png


BIN
data/resource/mobile/festival/double11/image/3.png


BIN
data/resource/mobile/festival/double11/image/bg.jpg


BIN
data/resource/mobile/festival/double11/image/crown.png


BIN
data/resource/mobile/festival/double11/image/crown_1.png


BIN
data/resource/mobile/festival/double11/image/crown_2.png


BIN
data/resource/mobile/festival/double11/image/crown_3.png


BIN
data/resource/mobile/festival/double11/image/game_rule.png


BIN
data/resource/mobile/festival/double11/image/ranking.png


+ 2 - 2
mobile/control/control.php

@@ -331,9 +331,9 @@ class mbMemberControl extends mobileControl
 
 function bonus_version()
 {
-    return "v=2018110501";
+    return "v=2018113001";
 }
 function shop_version()
 {
-    return "v=2018110501";
+    return "v=2018113001";
 }

+ 79 - 28
mobile/control/festval.php

@@ -21,10 +21,10 @@ class festvalControl extends mobileControl
     const UPFILE_PATH = BASE_UPLOAD_PATH . self::RELATIVE_UPLOAD;
     private $mod_activity_image;
 
-	public function __construct() {
-		parent::__construct();
-		$this->mod_activity_image = Model('activity_image');
-	}
+    public function __construct() {
+        parent::__construct();
+        $this->mod_activity_image = Model('activity_image');
+    }
 
     private $qixiConfig = [
 //        0 => ["common_id"=>2778,"batch_code"=>"HSDX01","goods_name"=>"唇油"],//131
@@ -38,7 +38,7 @@ class festvalControl extends mobileControl
         3 => ["common_id"=>4528,"batch_code"=>"QXHD02","goods_name"=>"香皂"],// 安宝笛 鸢尾花味香皂
     ];
 
-	public function qixiOp()
+    public function qixiOp()
     {
         if(session_helper::need_wechat_author())
         {
@@ -60,8 +60,8 @@ class festvalControl extends mobileControl
 
     private function activity_validate($begin,$end)
     {
-	    $now = time();
-	    return ($now >= $begin && $now < $end);
+        $now = time();
+        return ($now >= $begin && $now < $end);
     }
 
     public function getAwardOp()
@@ -113,7 +113,7 @@ class festvalControl extends mobileControl
         }
     }
 
-	public function indexOp()
+    public function indexOp()
     {
         $this->topup();
         $url = BASE_SITE_URL . "/hfive/festval/index.html";
@@ -126,7 +126,7 @@ class festvalControl extends mobileControl
         return self::outsuccess(['direct_uri' => $url],"redirect");
     }
 
-	private function from_base64($base_input, &$file_name)
+    private function from_base64($base_input, &$file_name)
     {
         if(empty($base_input)) {
             return false;
@@ -144,15 +144,15 @@ class festvalControl extends mobileControl
         }
     }
 
-	function add_imageOp()
+    function add_imageOp()
     {
-		$image_content = $this->from_base64($_POST['image_data'],$file_name);
-		$act_id = intval($_POST['act_id']);
+        $image_content = $this->from_base64($_POST['image_data'],$file_name);
+        $act_id = intval($_POST['act_id']);
 
-		if ($image_content == false || $act_id <= 0) {
-			return self::outerr( errcode::ErrParamter, "参数错误", "festval/error" );
-		}
-		$file_path = self::UPFILE_PATH . "/{$file_name}";
+        if ($image_content == false || $act_id <= 0) {
+            return self::outerr( errcode::ErrParamter, "参数错误", "festval/error" );
+        }
+        $file_path = self::UPFILE_PATH . "/{$file_name}";
         if(file_put_contents($file_path,$image_content) == false) {
             return self::outerr( errcode::ErrParamter, "保存文件失败", "festval/error" );
         }
@@ -181,12 +181,12 @@ class festvalControl extends mobileControl
         } else {
             return self::outerr( errcode::ErrParamter, "保存文件失败", "festval/error" );
         }
-	}
+    }
 
-	function likeOp()
+    function likeOp()
     {
         $act_id   = $_GET['act_id'];
-		$image_id = $_GET['image_id'];
+        $image_id = $_GET['image_id'];
 
         if($act_id < 0 || $image_id < 0) {
             return self::outerr(errcode::ErrParamter,"参数错误");
@@ -203,9 +203,9 @@ class festvalControl extends mobileControl
 
         $ret = $this->mod_activity_image->likes($image_id,true);
         return self::outsuccess(['supported' => $supported,'likes' => intval($ret['likes'])]);
-	}
+    }
 
-	function listOp()
+    function listOp()
     {
         $act_id = intval($_POST['act_id']);
         if ($act_id <= 0) {
@@ -218,10 +218,10 @@ class festvalControl extends mobileControl
         foreach ($items as $item) {
             $result[] = $this->format($item);
         }
-		return self::outsuccess(['blocks' => $result,'mobile_page' => mobile_page($pages)]);
-	}
+        return self::outsuccess(['blocks' => $result,'mobile_page' => mobile_page($pages)]);
+    }
 
-	private function format($item)
+    private function format($item)
     {
         $result = [];
         $image_id = intval($item['image_id']);
@@ -261,13 +261,14 @@ class festvalControl extends mobileControl
     //不需要登录 点击里面的按钮需要登录
     public function double11_stepsOp()
     {
-        $from = strtotime("2018-11-04");//2018-11-05
-        $to   = strtotime("2018-11-13");//2018-11-12
+        $from = strtotime("2018-12-02");//2018-12-03
+        $to   = strtotime("2019-12-11");//2018-12-10
         $userSteps = $this->userSteps_ranking($from,$to);
+        $mine_steps = $this->mine_steps_info($userSteps);
 
         $user_first = $user_second = $user_third = $user_list = [];
         $last_steps = 0;
-        for($i=1;$i<=8;$i++)
+        for($i=1;$i<=20;$i++)
         {
             if($i == 1) {
                 $user_first  = isset($userSteps[$i-1]) ? $userSteps[$i-1] : $this->fake_user($i-1);
@@ -292,6 +293,7 @@ class festvalControl extends mobileControl
         }
 
         return self::outsuccess([
+            "mine_steps" =>$mine_steps,
             "user_first" =>$user_first,
             "user_second"=>$user_second,
             "user_third" =>$user_third,
@@ -300,6 +302,43 @@ class festvalControl extends mobileControl
         ],'festival/double11/steps');
     }
 
+    private function mine_steps_info($userSteps)
+    {
+        $member_id = session_helper::memberid();
+        $is_login  = false;
+
+        $steps = 0;
+        $rank  = 0;
+        $name  = "";
+        if($member_id > 0)
+        {
+            $is_login = true;
+
+            if(!empty($userSteps)) {
+                foreach ($userSteps as $k => $sort_item)
+                {
+                    if($member_id == $sort_item['userid']) {
+                        $rank  = $k + 1;
+                        $steps = $sort_item['steps'];
+                        $name  = $sort_item['nickname'];
+                    }
+                }
+
+                if($rank == 0) $rank = count($userSteps) + 3000;
+            } else {
+                if($rank == 0) $rank = 486;
+            }
+
+            if(empty($name)) {
+                $uinfo = new member_info($member_id);
+                $name =  $uinfo->nickname();
+            }
+        }
+
+        return ["is_login" => $is_login,"rank" => $rank ,"steps" => $steps ,"nickname"=> $name];
+    }
+
+
     private function userSteps_ranking($from,$to)
     {
         $mod = Model('room');
@@ -358,7 +397,19 @@ class festvalControl extends mobileControl
             4 =>['avatar' => $feman,'nickname' => "戈壁女侠",'userid' => 0,"steps"=> 17764],
             5 =>['avatar' => $feman,'nickname' => "Amy_Sun",'userid' => 0,"steps"=> 12678],
             6 =>['avatar' => $man,'nickname' => "会飞的胖纸",'userid' => 0,"steps"=> 9689],
-            7 =>['avatar' => $feman,'nickname' => "睡不着咕噜咕噜",'userid' => 0,"steps"=> 4758],
+            7 =>['avatar' => $feman,'nickname' => "睡不着咕噜咕噜",'userid' => 0,"steps"=> 7791],
+            8 =>['avatar' => $feman,'nickname' => "楼下的喜欢我",'userid' => 0,"steps"=> 5566],
+            9 =>['avatar' => $feman,'nickname' => "小鱼干",'userid' => 0,"steps"=> 4758],
+            10 =>['avatar' => $feman,'nickname' => "JinKeLa",'userid' => 0,"steps"=> 3190],
+            11 =>['avatar' => $feman,'nickname' => "薛定谔的猫",'userid' => 0,"steps"=> 2478],
+            12 =>['avatar' => $feman,'nickname' => "bulingbuling",'userid' => 0,"steps"=> 1864],
+            13 =>['avatar' => $feman,'nickname' => "Hay",'userid' => 0,"steps"=> 1275],
+            14 =>['avatar' => $feman,'nickname' => "卡西莫拉",'userid' => 0,"steps"=> 941],
+            15 =>['avatar' => $feman,'nickname' => "吃可爱长大的",'userid' => 0,"steps"=> 666],
+            16 =>['avatar' => $feman,'nickname' => "教主夫人",'userid' => 0,"steps"=> 431],
+            17 =>['avatar' => $feman,'nickname' => "波波C",'userid' => 0,"steps"=> 259],
+            18 =>['avatar' => $feman,'nickname' => "老蔡",'userid' => 0,"steps"=> 86],
+            19 =>['avatar' => $feman,'nickname' => "阿哥吧打卤",'userid' => 0,"steps"=> 15],
         ];
 
         if($last_steps < $arr[$index]["steps"]) {

+ 65 - 31
mobile/templates/default/festival/double11/steps.php

@@ -16,30 +16,54 @@
         <div class="content">
             <div class="ranking-box">
                 <div class="ranking-name"></div>
-                <ul class="ranking-top-list border_bottom_1">
+                <ul class="ranking-top-list">
                     <li>
                         <div class="person-img person-img_2">
                             <img src="<?php echo $output['user_second']['avatar']; ?>" alt="">
                         </div>
                         <p class="person-common-cell"><?php echo $output['user_second']['nickname']; ?></p>
-                        <p class="person-common-cell">已捐:<span class="colf25252"><?php echo $output['user_second']['steps']; ?></span></p>
+                        <div class="person-common-cell">
+                            <div class="person-cell2-box person-cell-commbox">
+                                已捐 : <?php echo $output['user_second']['steps']; ?>
+                            </div>
+
+                        </div>
                     </li>
                     <li class="ranking-top-item-1">
                         <div class="person-img person-img_1">
                             <img src="<?php echo $output['user_first']['avatar']; ?>" alt="">
                         </div>
                         <p class="person-common-cell"><?php echo $output['user_first']['nickname']; ?></p>
-                        <p class="person-common-cell">已捐:<span class="cole3c436"><?php echo $output['user_first']['steps']; ?></span></p>
+                        <div class="person-common-cell">
+                            <div class="person-cell1-box person-cell-commbox">
+                                已捐 : <?php echo $output['user_first']['steps']; ?>
+                            </div>
+                        </div>
                     </li>
                     <li>
                         <div class="person-img person-img_3">
                             <img src="<?php echo $output['user_third']['avatar']; ?>" alt="">
                         </div>
                         <p class="person-common-cell"><?php echo $output['user_third']['nickname']; ?></p>
-                        <p class="person-common-cell">已捐:<span class="col22d6c7"><?php echo $output['user_third']['steps']; ?></span></p>
+                        <div class="person-common-cell">
+                            <div class="person-cell3-box person-cell-commbox">
+                                已捐 : <?php echo $output['user_third']['steps']; ?>
+                            </div>
+                        </div>
                     </li>
                 </ul>
-                <ul class="ranking-normal-list">
+
+                <div class="slef-ranking ranking-normal-item common-boder-line">
+                     <?php if($output['mine_steps']['is_login']) {  ?>
+                        <div class="crown-box"><?php echo $output['mine_steps']['rank']; ?></div>
+                        <p class="ranking-normal-name one_line_hidden"><?php echo $output['mine_steps']['nickname']; ?></p>
+                        <p><?php echo $output['mine_steps']['steps']; ?></p>
+                    <?php } else { ?>
+                        <p>登录之后可以显示自己的排名</p>
+                    <?php } ?>
+                </div>
+
+                <ul class="ranking-normal-list scroll-list">
                     <?php
                         if(!empty($output['user_steps']))
                         {
@@ -48,10 +72,10 @@
                                 echo "
                                 <li class=\"ranking-normal-item border_bottom_1\">
                                     <div class=\"crown-box\">
-                                        <span class=\"crown-icon\"></span>
+                                       
                                         <span class=\"place\">{$num}</span>
                                     </div>
-                                    <p class=\"ranking-normal-name\">{$userinfo['nickname']}</p>
+                                    <p class=\"ranking-normal-name one_line_hidden\">{$userinfo['nickname']}</p>
                                     <p>{$userinfo['steps']}</p>
                                 </li>
                                 ";
@@ -65,40 +89,44 @@
                 <ul class="rules-list">
                     <li class="rules-item">
                         <span class="rule-num">1</span>
-                        捐赠步数为您进行捐赠操作后所累计(任一群即可)。
+                        捐赠步数为您进行捐赠操作后所累计
                     </li>
                     <li class="rules-item">
                         <span class="rule-num">2</span>
-                        排行榜排名会根据从11月5日12:00开始至当前累计所捐步数实时更新。
+                        排行榜排名会根据活动开始时间至当前累计所捐步数实时更新
                     </li>
                     <li class="rules-item">
                         <span class="rule-num">3</span>
-                        最终中奖名额为11月5日12:00~11月12日12:00时所累计步数的<span class="colf25252">排名前三位。</span>
-                    </li>
-                </ul>
-            </div>
-
-            <div class="rules" style="margin-top: 0; margin-bottom: 0;">
-                <div class="careful"></div>
-                <ul class="rules-list">
-                    <li class="rules-item">
-                        <span class="rule-num">1</span>
-                        未加入过群聊的朋友,我们会推荐你好玩的群哦,<span class="colf25252">加入群聊</span>开始你的捐步吧!
-                    </li>
-                    <li class="rules-item">
-                        <span class="rule-num">2</span>
-                        本活动以您在熊猫美妆实际捐出的步数为准。
-                    </li>
-                    <li class="rules-item">
-                        <span class="rule-num">3</span>
-                        活动时间:11月5日12:00--11月12日12:00
+                        活动结束时间产生最终中奖名额,为活动时间内所累计步数的排名前三位
                     </li>
                     <li class="rules-item">
                         <span class="rule-num">4</span>
-                        如有任何疑问,可关注微信服务号<span class="colf25252">“熊猫美妆 APP”</span>,获取更多活动咨询!
+                        领奖请至“熊猫美妆APP ”公众号后台留言“捐步”
                     </li>
                 </ul>
             </div>
+
+<!--            <div class="rules" style="margin-top: 0; margin-bottom: 0;">-->
+<!--                <div class="careful"></div>-->
+<!--                <ul class="rules-list">-->
+<!--                    <li class="rules-item">-->
+<!--                        <span class="rule-num">1</span>-->
+<!--                        未加入过群聊的朋友,我们会推荐你好玩的群哦,<span class="colf25252">加入群聊</span>开始你的捐步吧!-->
+<!--                    </li>-->
+<!--                    <li class="rules-item">-->
+<!--                        <span class="rule-num">2</span>-->
+<!--                        本活动以您在熊猫美妆实际捐出的步数为准。-->
+<!--                    </li>-->
+<!--                    <li class="rules-item">-->
+<!--                        <span class="rule-num">3</span>-->
+<!--                        活动时间:11月5日12:00--11月12日12:00-->
+<!--                    </li>-->
+<!--                    <li class="rules-item">-->
+<!--                        <span class="rule-num">4</span>-->
+<!--                        如有任何疑问,可关注微信服务号<span class="colf25252">“熊猫美妆 APP”</span>,获取更多活动咨询!-->
+<!--                    </li>-->
+<!--                </ul>-->
+<!--            </div>-->
         </div>
     </div>
     <script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/comm/new_bridge.js"></script>
@@ -117,11 +145,17 @@
                             return;
                         }
                         else {
-                            window.location.href = "<?php echo $output['steps_url']; ?>";
+                            sessionStorage.setItem('is_reload','true');
+                            window.location.reload();
                         }
                     });
                 }
-            })
+            });
+
+            if (sessionStorage.getItem('is_reload')) {
+                sessionStorage.removeItem('is_reload');
+                window.location.href = "<?php echo $output['steps_url']; ?>";
+            }
         });
     </script>
 </body>