stanley-king před 7 roky
rodič
revize
e8d781a8d0
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      mobile/control/bonusex.php

+ 4 - 3
mobile/control/bonusex.php

@@ -916,7 +916,7 @@ class tpl_goods
     {
         $type = $this->discount_type();
         if($type == 1) {
-            $discount = $this->mSummary['goods_price'] - $this->mSummary['price_diff'];
+            $discount = $this->mSummary['goods_price'] - $this->mSummary['bonus_price'];
             $str = "<span class=\"conserve\">立省{$discount}元</span>";
             $str .= "<span class=\"look_btn center\">查看</span>";
         } else {
@@ -925,6 +925,7 @@ class tpl_goods
             $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>
@@ -947,16 +948,16 @@ class tpl_goods
     {
         $type = $this->discount_type();
         if($type == 1) {
-            $discount = $this->mSummary['goods_price'] - $this->mSummary['price_diff'];
+            $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>