...
|
...
|
@@ -30,9 +30,6 @@ function BrandHrefBinding(el, binding) { |
|
|
if (yoho.isYohoBuy && shopId) {
|
|
|
let { shopName, shopTemplateType, isRedShop } = binding.value;
|
|
|
|
|
|
if (isRedShop === 1) {
|
|
|
shopTemplateType = '1';
|
|
|
}
|
|
|
let goParams = {
|
|
|
action: 'go.shop',
|
|
|
params: {
|
...
|
...
|
@@ -45,9 +42,11 @@ function BrandHrefBinding(el, binding) { |
|
|
|
|
|
href += `?openby:yohobuy=${JSON.stringify(goParams)}`;
|
|
|
el.href = href;
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (yoho.isYohoBuy && !shopId) {
|
|
|
yoho.ready(function () {
|
|
|
yoho.getAppVersion({}, (version) => {
|
|
|
if (version >= '6.5.5') {
|
|
|
let { name } = binding.value;
|
...
|
...
|
@@ -64,7 +63,11 @@ function BrandHrefBinding(el, binding) { |
|
|
el.href = href;
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
el.href = href;
|
|
|
} else {
|
|
|
el.href = `/product/shop/${binding.value}`;
|
|
|
}
|
...
|
...
|
|