Showing
2 changed files
with
7 additions
and
3 deletions
@@ -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'; | 29 | + $appLink.className = 'no-intercept needsclick'; |
30 | 30 | ||
31 | body.appendChild($appLink); | 31 | body.appendChild($appLink); |
32 | } | 32 | } |
@@ -211,6 +211,10 @@ const yoho = { | @@ -211,6 +211,10 @@ const yoho = { | ||
211 | 211 | ||
212 | if (url.indexOf('openby:') < 0) { | 212 | if (url.indexOf('openby:') < 0) { |
213 | delete args.url; | 213 | delete args.url; |
214 | + if (args.header && args.header.headerid !== void 0) { | ||
215 | + args.headerid = args.header.headerid; | ||
216 | + delete args.header; | ||
217 | + } | ||
214 | url += (url.indexOf('?') >= 0 ? '&' : '?') + 'openby:yohobuy=' + JSON.stringify({ | 218 | url += (url.indexOf('?') >= 0 ? '&' : '?') + 'openby:yohobuy=' + JSON.stringify({ |
215 | action: 'go.h5', | 219 | action: 'go.h5', |
216 | params: { | 220 | params: { |
-
Please register or login to post a comment