...
|
...
|
@@ -24,11 +24,15 @@ function BrandHrefBinding(el, binding) { |
|
|
return;
|
|
|
}
|
|
|
if (binding.modifiers.shop) {
|
|
|
let href = `/product/shop/${binding.value.domain}`;
|
|
|
let href = `/product/shop/${binding.value.domain || binding.value.name}`;
|
|
|
let shopId = binding.value.shopId;
|
|
|
|
|
|
if (yoho.isYohoBuy && shopId) {
|
|
|
let { shopName, shopTemplateType, isRedShop } = binding.value;
|
|
|
|
|
|
if (isRedShop === 1) {
|
|
|
shopTemplateType = '1';
|
|
|
}
|
|
|
let goParams = {
|
|
|
action: 'go.shop',
|
|
|
params: {
|
...
|
...
|
@@ -40,9 +44,27 @@ function BrandHrefBinding(el, binding) { |
|
|
};
|
|
|
|
|
|
href += `?openby:yohobuy=${JSON.stringify(goParams)}`;
|
|
|
el.href = href;
|
|
|
}
|
|
|
|
|
|
if (yoho.isYohoBuy && !shopId) {
|
|
|
yoho.getAppVersion({}, (version) => {
|
|
|
if (version >= '6.5.5') {
|
|
|
let { name } = binding.value;
|
|
|
let goParams = {
|
|
|
action: 'go.searchlist',
|
|
|
params: {
|
|
|
keyword: name
|
|
|
}
|
|
|
};
|
|
|
|
|
|
href += `?openby:yohobuy=${JSON.stringify(goParams)}`;
|
|
|
el.href = href;
|
|
|
} else {
|
|
|
el.href = href;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
|
el.href = `/product/shop/${binding.value}`;
|
|
|
}
|
...
|
...
|
|