...
|
...
|
@@ -283,6 +283,7 @@ |
|
|
import operationBar from './operation-bar.vue';
|
|
|
import 'common/back-top';
|
|
|
import cookie from 'yoho-cookie';
|
|
|
import qs from 'yoho-qs';
|
|
|
|
|
|
|
|
|
const app = $('#app');
|
...
|
...
|
@@ -413,13 +414,14 @@ |
|
|
}
|
|
|
});
|
|
|
|
|
|
const href = location.href;
|
|
|
const mark = /\?/.test(href) ? '&' : '?';
|
|
|
const origin = location.origin;
|
|
|
const pathname = location.pathname;
|
|
|
const channel = cookie.get('_Channel') || 'men';
|
|
|
const queryStr = $.param(Object.assign(qs, {channel}));
|
|
|
|
|
|
share({
|
|
|
title: this.entity.product_name,
|
|
|
link: `${href}${mark}channel=${channel}`,
|
|
|
link: `${origin}${pathname}?${queryStr}`,
|
|
|
desc: '我在BLK发现了一个不错的商品,快来看看吧!',
|
|
|
imgUrl: this.firstImage.replace(/(\{width}|\{height}|\{mode})/g, function($0) {
|
|
|
const dict = {
|
...
|
...
|
|