Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into test
Showing
6 changed files
with
27 additions
and
7 deletions
@@ -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 | } |
@@ -162,10 +162,11 @@ | @@ -162,10 +162,11 @@ | ||
162 | .measurement-method { | 162 | .measurement-method { |
163 | .detail { | 163 | .detail { |
164 | width: 100%; | 164 | width: 100%; |
165 | + margin-top:0; | ||
166 | + margin-bottom: 0; | ||
165 | img { | 167 | img { |
166 | width: 100%; | 168 | width: 100%; |
167 | - margin-top: pxToRem(18px); | ||
168 | - margin-right: pxToRem(28px); | 169 | + height:auto; |
169 | } | 170 | } |
170 | } | 171 | } |
171 | } | 172 | } |
@@ -25,7 +25,13 @@ | @@ -25,7 +25,13 @@ | ||
25 | {{# active}} | 25 | {{# active}} |
26 | <p>{{.}}</p> | 26 | <p>{{.}}</p> |
27 | {{/ active}} | 27 | {{/ active}} |
28 | - <p>{{salePrice}}<b>{{price}}</b></p> | 28 | + {{#sales_phrase}} |
29 | + <p>{{.}}</p> | ||
30 | + {{/sales_phrase}} | ||
31 | + <p> | ||
32 | + {{#salePrice}}¥{{.}}{{/salePrice}}{{#price}} | ||
33 | + <b>¥{{.}}</b>{{/price}} | ||
34 | + </p> | ||
29 | </div> | 35 | </div> |
30 | </a> | 36 | </a> |
31 | </li> | 37 | </li> |
@@ -172,7 +172,7 @@ | @@ -172,7 +172,7 @@ | ||
172 | {{!-- 商品详情咨询 --}} | 172 | {{!-- 商品详情咨询 --}} |
173 | {{#if goodsConsultsPage}} | 173 | {{#if goodsConsultsPage}} |
174 | <script> | 174 | <script> |
175 | - seajs.use('js/product/detail/loadmore'); | 175 | + seajs.use('js/product/detail/comments-consults'); |
176 | </script> | 176 | </script> |
177 | {{/if}} | 177 | {{/if}} |
178 | {{!-- 商品详情我要咨询 --}} | 178 | {{!-- 商品详情我要咨询 --}} |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <span class="en-title">{{enTitle}}</span> | 6 | <span class="en-title">{{enTitle}}</span> |
7 | </h1> | 7 | </h1> |
8 | {{#detail}} | 8 | {{#detail}} |
9 | - <div class="detail table clearfix"> | 9 | + <div class="detail table"> |
10 | {{#list}} | 10 | {{#list}} |
11 | <div class="column">{{param}}</div> | 11 | <div class="column">{{param}}</div> |
12 | {{/list}} | 12 | {{/list}} |
@@ -51,7 +51,19 @@ class UserModel | @@ -51,7 +51,19 @@ class UserModel | ||
51 | */ | 51 | */ |
52 | public static function getInfoNumData($uid, $udid) | 52 | public static function getInfoNumData($uid, $udid) |
53 | { | 53 | { |
54 | - $result = array(); | 54 | + $result = array( |
55 | + 'wait_pay_num' => 0, | ||
56 | + 'wait_cargo_num' => 0, | ||
57 | + 'send_cargo_num' => 0, | ||
58 | + 'brand_favorite_total' => 0, | ||
59 | + 'product_favorite_total' => 0, | ||
60 | + 'inbox_total' => 0, | ||
61 | + 'comment_total' => 0, | ||
62 | + 'refund_exchange_num' => 0, | ||
63 | + 'yoho_coin_num' => 0, | ||
64 | + 'coupon_num' => 0, | ||
65 | + 'product_browse' => 0 | ||
66 | + ); | ||
55 | 67 | ||
56 | // 调用接口获取个人中心页面优惠券,收藏的商品等的数目数据 | 68 | // 调用接口获取个人中心页面优惠券,收藏的商品等的数目数据 |
57 | $infoNumData = UserData::infoNum($uid, $udid); | 69 | $infoNumData = UserData::infoNum($uid, $udid); |
@@ -302,7 +314,7 @@ class UserModel | @@ -302,7 +314,7 @@ class UserModel | ||
302 | foreach ($data as &$val) { | 314 | foreach ($data as &$val) { |
303 | $val['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : ''; | 315 | $val['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : ''; |
304 | $val['image'] = !empty($val['image']) ? Helpers::getImageUrl($val['image'], 447, 596) : ''; | 316 | $val['image'] = !empty($val['image']) ? Helpers::getImageUrl($val['image'], 447, 596) : ''; |
305 | - $val['sales_price'] = !empty($val['sales_price']) ? $val['sales_price'] . '.00' : 0; | 317 | + $val['sales_price'] = (!empty($val['sales_price']) && !is_float($val['sales_price'])) ? $val['sales_price'] . '.00' : $val['sales_price']; |
306 | $val['market_price'] = ($val['market_price'] - $val['sales_price'] > 0) ? $val['market_price'] . '.00' : false; | 318 | $val['market_price'] = ($val['market_price'] - $val['sales_price'] > 0) ? $val['market_price'] . '.00' : false; |
307 | } | 319 | } |
308 | !empty($data) && $result['browseRecord'] = $data; | 320 | !empty($data) && $result['browseRecord'] = $data; |
-
Please register or login to post a comment