Authored by Rock Zhang

添加hotrank页面一些缺少的字段 Code Review By Rock Zhang

@@ -85,6 +85,7 @@ class NewSaleProcess @@ -85,6 +85,7 @@ class NewSaleProcess
85 foreach ($products['product_list'] as $key => $single) { 85 foreach ($products['product_list'] as $key => $single) {
86 $one = Helpers::formatProduct($single, true, false, false, 75, 114); 86 $one = Helpers::formatProduct($single, true, false, false, 75, 114);
87 $one['rank'] = $limit * ($page -1) + $key + 1; 87 $one['rank'] = $limit * ($page -1) + $key + 1;
  88 + !empty($single['sales_phrase']) && $one['sales_phrase'] = $single['sales_phrase'];
88 89
89 $result['goods'][] = $one; 90 $result['goods'][] = $one;
90 } 91 }
@@ -25,7 +25,8 @@ @@ -25,7 +25,8 @@
25 {{# active}} 25 {{# active}}
26 <p>{{.}}</p> 26 <p>{{.}}</p>
27 {{/ active}} 27 {{/ active}}
28 - <p>{{salePrice}}<b>{{price}}</b></p> 28 + <p>{{sales_phrase}}</p>
  29 + <p>¥{{salePrice}}<b>¥{{price}}</b></p>
29 </div> 30 </div>
30 </a> 31 </a>
31 </li> 32 </li>