Authored by 陈峰

fast click

import yoho from './yoho';
import cookie from 'yoho-cookie';
// import yoho from './yoho';
// import cookie from 'yoho-cookie';
cookie.set('_YOHOUID', '50000582', {
path: '/',
domain: '.yohoblk.com'
});
cookie.set('_YOHOTOKEN', '26ea92e1f3fc39dbdcdbb63125c58b2b', {
path: '/',
domain: '.yohoblk.com'
});
yoho.isApp = true;
yoho.ready = cb => cb();
// cookie.set('_YOHOUID', '50000582', {
// path: '/',
// domain: '.yohoblk.com'
// });
// cookie.set('_YOHOTOKEN', '26ea92e1f3fc39dbdcdbb63125c58b2b', {
// path: '/',
// domain: '.yohoblk.com'
// });
// yoho.isApp = true;
// yoho.ready = cb => cb();
... ...
... ... @@ -21,7 +21,7 @@ import Vue from 'vue';
import util from 'common/util';
import interceptClick from 'common/intercept-click';
import bus from 'common/vue-bus';
// import FastClick from 'fastclick';
import FastClick from 'fastclick';
import directive from 'common/vue-directive';
import filter from 'common/vue-filter';
import VueTouch from 'vue-touch';
... ... @@ -31,7 +31,7 @@ import VueTouch from 'vue-touch';
*/
global.Promise = Promise;
// FastClick.attach(document.body);
FastClick.attach(document.body);
// 隐藏 App 默认显示的 loading
Vue.mixin({
... ...
... ... @@ -26,7 +26,7 @@ if (isYohoBuy && !$appLink) {
$appLink.id = 'yoho-app-link';
$appLink.href = 'javascript:;';
$appLink.style.display = 'none';
$appLink.className = 'no-intercept needsclick';
$appLink.className = 'no-intercept';
body.appendChild($appLink);
}
... ... @@ -228,6 +228,9 @@ const yoho = {
}
$appLink.href = url;
$appLink.click();
if (this.isiOS) {
$appLink.click();
}
} else {
if (args.url) {
window.open(args.url);
... ...