...
|
...
|
@@ -19,6 +19,17 @@ const productAPI = require('./product-api'); |
|
|
const cartApi = require('./cart-api');
|
|
|
const chelper = require('./cart-helper');
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 转换价格
|
|
|
*
|
|
|
* @param float|string $price 价格
|
|
|
* @return float|string 转换之后的价格
|
|
|
*/
|
|
|
const transPrice = (price) => {
|
|
|
return price ? (price * 1).toFixed(2) : '0.00';
|
|
|
};
|
|
|
|
|
|
const _getProductIntroAsync = (productSkn) => {
|
|
|
return co(function * () {
|
|
|
let result = yield Promise.props({
|
...
|
...
|
@@ -990,7 +1001,7 @@ const getMiniCartData = (uid, shoppingKey) => { |
|
|
product_name: g.product_name,
|
|
|
factory_goods_name: g.factory_goods_name,
|
|
|
size_name: g.size_name,
|
|
|
show_price: g.real_price,
|
|
|
show_price: transPrice(g.real_price),
|
|
|
buy_number: g.buy_number,
|
|
|
goods_incart_id: g.shopping_cart_id,
|
|
|
product_sku: g.product_sku,
|
...
|
...
|
|