Showing
2 changed files
with
3 additions
and
4 deletions
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | * @Author: Targaryen | 2 | * @Author: Targaryen |
3 | * @Date: 2016-05-30 16:20:03 | 3 | * @Date: 2016-05-30 16:20:03 |
4 | * @Last Modified by: Targaryen | 4 | * @Last Modified by: Targaryen |
5 | - * @Last Modified time: 2016-06-03 18:41:32 | 5 | + * @Last Modified time: 2016-06-03 18:43:34 |
6 | */ | 6 | */ |
7 | 7 | ||
8 | 'use strict'; | 8 | 'use strict'; |
@@ -116,8 +116,7 @@ exports.getOutletsChannelData = (params) => { | @@ -116,8 +116,7 @@ exports.getOutletsChannelData = (params) => { | ||
116 | 116 | ||
117 | // 限时嗨购 | 117 | // 限时嗨购 |
118 | if (result[2].code === 200) { | 118 | if (result[2].code === 200) { |
119 | - channelData.nearOver = outletsProcess.handleOutletsActivityData(result[2].data); | ||
120 | - channelData.nearOver.name = '限时嗨购'; | 119 | + channelData.nearOver = outletsProcess.handleOutletsActivityData(result[2].data, '限时嗨购'); |
121 | } | 120 | } |
122 | 121 | ||
123 | // 商品列表 | 122 | // 商品列表 |
@@ -46,7 +46,7 @@ exports.processProductList = (list, options) => { | @@ -46,7 +46,7 @@ exports.processProductList = (list, options) => { | ||
46 | if (product.marketPrice === product.salesPrice) { | 46 | if (product.marketPrice === product.salesPrice) { |
47 | product.marketPrice = false; | 47 | product.marketPrice = false; |
48 | } else if (product.marketPrice && product.salesPrice) { | 48 | } else if (product.marketPrice && product.salesPrice) { |
49 | - product.discount = (product.salesPrice / product.marketPrice).toFixed(2) * 10; | 49 | + product.discount = (product.salesPrice / product.marketPrice * 10).toFixed(1); |
50 | } | 50 | } |
51 | 51 | ||
52 | // 判别默认的商品是否将默认的图片URL赋值到skn | 52 | // 判别默认的商品是否将默认的图片URL赋值到skn |
-
Please register or login to post a comment