...
|
...
|
@@ -28,7 +28,10 @@ let _replaceData = function(el, cond, data, wh, fp, lastSoldTpl) { |
|
|
|
|
|
if (data.collage_price && data.collage_activity_id) {
|
|
|
product_url = `//m.yohobuy.com/activity/group/detail?activityId=${data.collage_activity_id}&productSkn=${data.product_skn}&openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${data.product_skn}","activity_id":"${data.collage_activity_id}","activity_type":"groupPurchase"}}`;
|
|
|
} else if (data.type === 'ufo') {
|
|
|
product_url = `//2.yohobuy.com/html/h5Share/goodsDetail.html?id=${data.product_id}&openby:yohobuy={"action":"go.ufo","params":{"pagename":"productDetail","isnavhidden":0,"productId":"${data.product_id}"}}`;
|
|
|
}
|
|
|
|
|
|
el.find('.brand-name').html(data.brand_name);
|
|
|
el.find('.product-detail').attr('href', product_url);
|
|
|
el.find('.product-name').html(data.product_name);
|
...
|
...
|
|