Authored by biao

update for good url

... ... @@ -564,9 +564,12 @@ const getChangeGoodsList = (orderCode, uid) => {
if (data.goodsList) {
data.goodsList.forEach(good => {
let cnAlphabet = good.cnAlphabet ? good.cnAlphabet : '';
good.showCheckbox = true;
good.hidePrice = true;
good.buyNumber = 1;
good.goodUrl = helpers.urlFormat(`/product/pro_${good.productId}_${good.goodsId}/${cnAlphabet}.html`); //eslint-disable-line
});
}
}
... ... @@ -586,7 +589,7 @@ const getChangeGoodsList = (orderCode, uid) => {
*/
const _setExchangeDetailData = (data) => {
data = camelCase(data);
console.log(data);
let list = {};
switch (data.status) {
... ...
... ... @@ -329,10 +329,7 @@ exports.processProduct = (productData, options) => {
}
result.is_soon_sold_out = (productData.is_soon_sold_out === 'Y');
result.url = helpers.urlFormat(`
/product/pro_${productData.product_id}_${productData.goods_list[0].goods_id}
/${productData.cn_alphabet}.html
`, null, 'list');
result.url = helpers.urlFormat(`/product/pro_${productData.product_id}_${productData.goods_list[0].goods_id}/${productData.cn_alphabet}.html`, null, 'list'); //eslint-disable-line
if (options.showTags) {
let tags = {};
... ...