1
|
import $ from 'yoho-jquery';
|
1
|
import $ from 'yoho-jquery';
|
2
|
|
2
|
|
3
|
function XianyuLinkHandle() {
|
3
|
function XianyuLinkHandle() {
|
4
|
- const cookie = require('yoho-cookie');
|
|
|
5
|
-
|
|
|
6
|
- cookie.set('aaa', '123');
|
|
|
7
|
-
|
|
|
8
|
$(document).delegate('a:not(.yoho-coin, .yoho-conpon, .web-share-button, .button-ok)',
|
4
|
$(document).delegate('a:not(.yoho-coin, .yoho-conpon, .web-share-button, .button-ok)',
|
9
|
'click',
|
5
|
'click',
|
10
|
event => {
|
6
|
event => {
|
|
@@ -23,7 +19,7 @@ function XianyuLinkHandle() { |
|
@@ -23,7 +19,7 @@ function XianyuLinkHandle() { |
23
|
|
19
|
|
24
|
href = url + '?' + encodeURI(search);
|
20
|
href = url + '?' + encodeURI(search);
|
25
|
|
21
|
|
26
|
- if (href.indexOf('#') !== 0) {
|
22
|
+ if (href.indexOf('#') !== 0 && href.indexOf('void') < 0) {
|
27
|
let args = {url: href};
|
23
|
let args = {url: href};
|
28
|
|
24
|
|
29
|
if (window.WindVane) {
|
25
|
if (window.WindVane) {
|