Authored by TaoHuang

hotfix(detail): fix report params

... ... @@ -251,10 +251,27 @@ export default {
ele.addEventListener('click', function(e) {
e.preventDefault();
// 对商品详情链接单独处理
let url = new URL(ele.getAttribute('href'));
const searchParams = url.searchParams;
let openBy = searchParams.get('openby:yohobuy');
let skn = searchParams.get('product_skn');
if (skn) {
if (openBy) {
openBy = JSON.parse(openBy);
if (!openBy.params.from_page_name || !openBy.params.from_page_param) {
openBy.params.from_page_name = name;
openBy.params.from_page_param = vm.data.articleId;
url = url.origin + '/?openby:yohobuy=' + JSON.stringify(openBy) + '&product_skn=' + skn;
}
}
}
vm.$yoho.goNewPage({
url: ele.getAttribute('href'),
from_page_name: name,
from_page_param: vm.data.articleId
url: url + ''
});
vm.$store.dispatch('reportYas', {
... ...
{
"name": "yoho-community-web",
"version": "6.9.16-beta-3",
"version": "6.9.16-beta-4",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...