Authored by 李奇

数字品牌修改

... ... @@ -78,7 +78,11 @@ const handleBrandList = origin => {
brands.push({
name: subValue.brand_name_en || subValue.brand_name_cn || subValue.brand_name,
logo: subValue.brand_ico,
domain: subValue.brand_domain
domain: subValue.brand_domain,
shopId: subValue.shop_id,
shopName: subValue.brand_name_en || subValue.brand_name_cn || subValue.brand_name,
isRedShop: subValue.is_red_shop,
shopTemplateType: subValue.shop_template_type
});
});
dest.brandList.push({
... ...
... ... @@ -100,7 +100,6 @@ module.exports = {
},
console: {
level: 'debug',
colorize: 'all',
prettyPrint: true,
debugStdout: true
}
... ...
... ... @@ -42,14 +42,15 @@ function BrandHrefBinding(el, binding) {
href += `?openby:yohobuy=${JSON.stringify(goParams)}`;
el.href = href;
return;
}
if (yoho.isYohoBuy && !shopId) {
yoho.ready(function () {
yoho.getAppVersion({}, (version) => {
yoho.getAppVersion({}, function(version) {
alert(binding.value.name)
if (version >= '6.5.5') {
let { name } = binding.value;
let goParams = {
action: 'go.searchlist',
params: {
... ... @@ -64,10 +65,11 @@ function BrandHrefBinding(el, binding) {
}
});
});
return;
}
el.href = href;
if (!yoho.isYohoBuy) {
el.href = href;
}
} else {
el.href = `/product/shop/${binding.value}`;
}
... ...