浏览代码

debug bonusex

stanley-king 7 年之前
父节点
当前提交
95f9b5b987
共有 2 个文件被更改,包括 10 次插入11 次删除
  1. 4 1
      daemon/something.txt
  2. 6 10
      mobile/control/bonusex.php

+ 4 - 1
daemon/something.txt

@@ -3,4 +3,7 @@ redis-cli -h 10.47.82.12 KEYS "nc_bonus_type*" | xargs redis-cli -h 10.47.82.12
 
  cp -R ./dist/ /mnt/xvdb1/hfive/inoherb
 
- cp -R ./static/ /mnt/xvdb1/hfive/inoherb
+ cp -R ./static/ /mnt/xvdb1/hfive/inoherb
+
+  grep -c "act=index&op=inoherb" 20170614.log
+  grep -c "act=inoherb&op=index" 20170614.log

+ 6 - 10
mobile/control/bonusex.php

@@ -834,7 +834,7 @@ function bonus_output_bindedinfo($output)
         echo('</div>');
         echo('<div class="li_right">');
         echo('<p class="p">' . $bonus->bonus_value() . '元</p>');
-        echo('<p><span class="hilt">' . $bonus->bonus_rate() . '%</span></p>');
+        echo('<p><span class="hilt">' . $bonus->bonus_rate() . '<span class="bonus_scale"></span></span></p>');
         if($type->binded_over() && $type->isMaxAmount($bonus->bonus_value()) && $type->isRandomAmount()) {
             echo('<p class="king_box"><s class="king"></s>手气最佳</p>');
         }
@@ -918,14 +918,11 @@ class tpl_goods
         if($type == 1) {
             $discount = $this->mSummary['goods_price'] - $this->mSummary['bonus_price'];
             $str = "<span class=\"conserve\">立省{$discount}元</span>";
-            $str .= "<span class=\"look_btn center\">查看</span>";
         } else {
             $discount = $this->mSummary['bonus_price'] / $this->mSummary['goods_price'];
             $str = "<span class=\"conserve\">{$discount}折</span>";
-            $str .= "<span class=\"look_btn center\">查看</span>";
         }
 
-        $str = '';
         $market_price = intval($this->mSummary['goods_price'] * 100 + 0.5) / 100;
         $outstr = "<div class=\"f_left\">
                     <p class=\"text_left desc\">专柜价{$market_price}元</p>
@@ -950,14 +947,11 @@ class tpl_goods
         if($type == 1) {
             $discount = $this->mSummary['goods_price'] - $this->mSummary['goods_price'];
             $str  = "<span class=\"conserve\">立省{$discount}元</span>";
-            $str .= "<span class=\"look_btn center\">查看</span>";
         } else {
             $discount = $this->mSummary['bonus_price'] / $this->mSummary['goods_price'];
             $str = "<span class=\"conserve\">{$discount}折</span>";
-            $str .= "<span class=\"look_btn center\">查看</span>";
         }
 
-        $str = '';
         $market_price = intval($this->mSummary['goods_price'] * 100 + 0.5) / 100;
         $outstr = "<div class=\"f_left\">
                     <p class=\"text_left desc\">专柜价{$market_price}元</p>
@@ -1011,6 +1005,7 @@ function bonnus_out_goods($output)
                     {$printer->base_info()}                    
                     <div class=\"price_box\">
                     {$printer->price()}
+                    <p class=\"look_btn center\">查看</p >
                     </div>     
                     {$printer->showicon()}
                 </div>
@@ -1029,9 +1024,10 @@ function bonus_out_rule()
     </div>
     <div class="briefing text_left">
         <p><span>1.</span> 在熊猫美妆APP或微商城中,购物即可使用。</p>
-        <p><span>3.</span> 购物时,红包可叠加使用。</p>
-        <p><span>2.</span> 也可以在APP中,把红包分享给亲友。</p>
-        <p><span>4.</span> 红包是丽人员工福利,请勿分享给非亲非故之人。</p>
+        <p><span>2.</span> 购物时,系统优先使用完折扣率大的再使用折扣率小的红包。</p>
+        <p><span>3.</span> 不同折扣红包自动叠加使用,福利更实在。</p>
+        <p><span>4.</span> 也可以在APP中,把红包分享给亲友。</p>
+        <p><span>5.</span> 红包是丽人员工福利,请勿分享给非亲非故之人。</p>
   
         <div class="center briefing_address">
             公司地址:上海市徐汇区番禺路876号