...
|
...
|
@@ -347,13 +347,14 @@ function getShopProductLinks() { |
|
|
for (let i = 0; i < res.data.length; i++) {
|
|
|
let shopInfo = res.data[i];
|
|
|
let index = shopArr.shopIds.indexOf(shopInfo.shops_id);
|
|
|
let is_red_shop = shopInfo.is_red_shop ? '"is_red_shop":"1"' : '';
|
|
|
|
|
|
if (index >= 0) {
|
|
|
let divId = shopArr.ids[index];
|
|
|
let shopUrl = `//m.yohobuy.com/product/index/brand?shop_id=${shopInfo.shops_id}&openby:yohobuy=
|
|
|
{"action":"go.shop","params":{"shop_id":"${shopInfo.shops_id}",
|
|
|
"shop_template_type":"${shopInfo.shop_template_type}",
|
|
|
"shop_name":"${shopInfo.shop_name}","is_red_shop":"${shopInfo.is_red_shop || 0}"}}`;
|
|
|
"shop_name":"${shopInfo.shop_name}", ${is_red_shop}}`;
|
|
|
|
|
|
$('#' + divId).find('.shop-wrapper a').attr('href', shopUrl);
|
|
|
}
|
...
|
...
|
|