Showing
3 changed files
with
18 additions
and
15 deletions
1 | -import yoho from './yoho'; | ||
2 | -import cookie from 'yoho-cookie'; | 1 | +// import yoho from './yoho'; |
2 | +// import cookie from 'yoho-cookie'; | ||
3 | 3 | ||
4 | -cookie.set('_YOHOUID', '50000582', { | ||
5 | - path: '/', | ||
6 | - domain: '.yohoblk.com' | ||
7 | -}); | ||
8 | -cookie.set('_YOHOTOKEN', '26ea92e1f3fc39dbdcdbb63125c58b2b', { | ||
9 | - path: '/', | ||
10 | - domain: '.yohoblk.com' | ||
11 | -}); | ||
12 | -yoho.isApp = true; | ||
13 | -yoho.ready = cb => cb(); | 4 | +// cookie.set('_YOHOUID', '50000582', { |
5 | +// path: '/', | ||
6 | +// domain: '.yohoblk.com' | ||
7 | +// }); | ||
8 | +// cookie.set('_YOHOTOKEN', '26ea92e1f3fc39dbdcdbb63125c58b2b', { | ||
9 | +// path: '/', | ||
10 | +// domain: '.yohoblk.com' | ||
11 | +// }); | ||
12 | +// yoho.isApp = true; | ||
13 | +// yoho.ready = cb => cb(); |
@@ -21,7 +21,7 @@ import Vue from 'vue'; | @@ -21,7 +21,7 @@ import Vue from 'vue'; | ||
21 | import util from 'common/util'; | 21 | import util from 'common/util'; |
22 | import interceptClick from 'common/intercept-click'; | 22 | import interceptClick from 'common/intercept-click'; |
23 | import bus from 'common/vue-bus'; | 23 | import bus from 'common/vue-bus'; |
24 | -// import FastClick from 'fastclick'; | 24 | +import FastClick from 'fastclick'; |
25 | import directive from 'common/vue-directive'; | 25 | import directive from 'common/vue-directive'; |
26 | import filter from 'common/vue-filter'; | 26 | import filter from 'common/vue-filter'; |
27 | import VueTouch from 'vue-touch'; | 27 | import VueTouch from 'vue-touch'; |
@@ -31,7 +31,7 @@ import VueTouch from 'vue-touch'; | @@ -31,7 +31,7 @@ import VueTouch from 'vue-touch'; | ||
31 | */ | 31 | */ |
32 | global.Promise = Promise; | 32 | global.Promise = Promise; |
33 | 33 | ||
34 | -// FastClick.attach(document.body); | 34 | +FastClick.attach(document.body); |
35 | 35 | ||
36 | // 隐藏 App 默认显示的 loading | 36 | // 隐藏 App 默认显示的 loading |
37 | Vue.mixin({ | 37 | Vue.mixin({ |
@@ -26,7 +26,7 @@ if (isYohoBuy && !$appLink) { | @@ -26,7 +26,7 @@ if (isYohoBuy && !$appLink) { | ||
26 | $appLink.id = 'yoho-app-link'; | 26 | $appLink.id = 'yoho-app-link'; |
27 | $appLink.href = 'javascript:;'; | 27 | $appLink.href = 'javascript:;'; |
28 | $appLink.style.display = 'none'; | 28 | $appLink.style.display = 'none'; |
29 | - $appLink.className = 'no-intercept needsclick'; | 29 | + $appLink.className = 'no-intercept'; |
30 | 30 | ||
31 | body.appendChild($appLink); | 31 | body.appendChild($appLink); |
32 | } | 32 | } |
@@ -228,6 +228,9 @@ const yoho = { | @@ -228,6 +228,9 @@ const yoho = { | ||
228 | } | 228 | } |
229 | $appLink.href = url; | 229 | $appLink.href = url; |
230 | $appLink.click(); | 230 | $appLink.click(); |
231 | + if (this.isiOS) { | ||
232 | + $appLink.click(); | ||
233 | + } | ||
231 | } else { | 234 | } else { |
232 | if (args.url) { | 235 | if (args.url) { |
233 | window.open(args.url); | 236 | window.open(args.url); |
-
Please register or login to post a comment