...
|
...
|
@@ -128,7 +128,7 @@ class featureModel extends global.yoho.BaseModel { |
|
|
/**
|
|
|
* 拼团商品列表
|
|
|
*/
|
|
|
_getCollageProductList(collageInfo, ctx) {
|
|
|
_getCollageProductList(collageInfo, ctx) { // eslint-disable-line
|
|
|
let activityId = collageInfo.collageActivityId;
|
|
|
|
|
|
if (!activityId) {
|
...
|
...
|
@@ -154,15 +154,15 @@ class featureModel extends global.yoho.BaseModel { |
|
|
let productUrl = `//m.yohobuy.com/product/${replaceKey}.html?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${replaceKey}","activity_id":"${activityId}","activity_type":"groupPurchase"}}`; // eslint-disable-line
|
|
|
let defaultPros = _.get(result, 'data.collageProductVoList', []);
|
|
|
|
|
|
if (!ctx.req.yoho.isApp) {
|
|
|
productUrl = 'javascript:;'; // eslint-disable-line
|
|
|
}
|
|
|
// if (!ctx.req.yoho.isApp) {
|
|
|
// productUrl = 'javascript:;'; // eslint-disable-line
|
|
|
// }
|
|
|
|
|
|
defaultPros.forEach(val => {
|
|
|
val.producturl = productUrl.replace(replaceReg, val.productSkn);
|
|
|
});
|
|
|
|
|
|
collageInfo.defaultPros = result.data;
|
|
|
collageInfo.defaultPros = defaultPros;
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|