...
|
...
|
@@ -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', {
|
...
|
...
|
|