|
@@ -128,7 +128,7 @@ class featureModel extends global.yoho.BaseModel { |
|
@@ -128,7 +128,7 @@ class featureModel extends global.yoho.BaseModel { |
128
|
/**
|
128
|
/**
|
129
|
* 拼团商品列表
|
129
|
* 拼团商品列表
|
130
|
*/
|
130
|
*/
|
131
|
- _getCollageProductList(collageInfo, ctx) {
|
131
|
+ _getCollageProductList(collageInfo, ctx) { // eslint-disable-line
|
132
|
let activityId = collageInfo.collageActivityId;
|
132
|
let activityId = collageInfo.collageActivityId;
|
133
|
|
133
|
|
134
|
if (!activityId) {
|
134
|
if (!activityId) {
|
|
@@ -154,15 +154,15 @@ class featureModel extends global.yoho.BaseModel { |
|
@@ -154,15 +154,15 @@ class featureModel extends global.yoho.BaseModel { |
154
|
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
|
154
|
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
|
155
|
let defaultPros = _.get(result, 'data.collageProductVoList', []);
|
155
|
let defaultPros = _.get(result, 'data.collageProductVoList', []);
|
156
|
|
156
|
|
157
|
- if (!ctx.req.yoho.isApp) {
|
|
|
158
|
- productUrl = 'javascript:;'; // eslint-disable-line
|
|
|
159
|
- }
|
157
|
+ // if (!ctx.req.yoho.isApp) {
|
|
|
158
|
+ // productUrl = 'javascript:;'; // eslint-disable-line
|
|
|
159
|
+ // }
|
160
|
|
160
|
|
161
|
defaultPros.forEach(val => {
|
161
|
defaultPros.forEach(val => {
|
162
|
val.producturl = productUrl.replace(replaceReg, val.productSkn);
|
162
|
val.producturl = productUrl.replace(replaceReg, val.productSkn);
|
163
|
});
|
163
|
});
|
164
|
|
164
|
|
165
|
- collageInfo.defaultPros = result.data;
|
165
|
+ collageInfo.defaultPros = defaultPros;
|
166
|
});
|
166
|
});
|
167
|
}
|
167
|
}
|
168
|
|
168
|
|