...
|
...
|
@@ -29,7 +29,8 @@ class featureModel extends global.yoho.BaseModel { |
|
|
return this.get({
|
|
|
data: {
|
|
|
productSkn: _.uniq(skns),
|
|
|
method: 'h5.product.batch'
|
|
|
method: 'h5.product.batch',
|
|
|
contain_all: 'Y' // 商品全部返回(包含无库存)
|
|
|
},
|
|
|
param: {
|
|
|
cache: true
|
...
|
...
|
@@ -128,7 +129,7 @@ class featureModel extends global.yoho.BaseModel { |
|
|
/**
|
|
|
* 拼团商品列表
|
|
|
*/
|
|
|
_getCollageProductList(collageInfo, ctx) { // eslint-disable-line
|
|
|
_getCollageProductList(collageInfo) {
|
|
|
let activityId = collageInfo.collageActivityId;
|
|
|
|
|
|
if (!activityId) {
|
...
|
...
|
@@ -151,13 +152,9 @@ class featureModel extends global.yoho.BaseModel { |
|
|
|
|
|
let replaceKey = '__skn__';
|
|
|
let replaceReg = new RegExp(replaceKey, 'g');
|
|
|
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 productUrl = `//m.yohobuy.com/product/${replaceKey}.html?type=groupPurchase&&skn=${replaceKey}&&activity_id=${activityId}&&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
|
|
|
// }
|
|
|
|
|
|
defaultPros.forEach(val => {
|
|
|
val.producturl = productUrl.replace(replaceReg, val.productSkn);
|
|
|
});
|
...
|
...
|
|