Showing
2 changed files
with
6 additions
and
2 deletions
@@ -20,7 +20,9 @@ if ($('.share-buy-page').height() < $(window).height()) { | @@ -20,7 +20,9 @@ if ($('.share-buy-page').height() < $(window).height()) { | ||
20 | } | 20 | } |
21 | 21 | ||
22 | if (yoho.isApp) { | 22 | if (yoho.isApp) { |
23 | - yoho.ready(yoho.invokeMethod('set.shareInfo', shareData)); | 23 | + yoho.ready(function() { |
24 | + yoho.invokeMethod('set.shareInfo', shareData); | ||
25 | + }); | ||
24 | } | 26 | } |
25 | 27 | ||
26 | function Marquee() { | 28 | function Marquee() { |
@@ -37,7 +37,9 @@ require('common/share')(shareData); | @@ -37,7 +37,9 @@ require('common/share')(shareData); | ||
37 | require('common'); | 37 | require('common'); |
38 | 38 | ||
39 | if (yoho.isApp) { | 39 | if (yoho.isApp) { |
40 | - yoho.ready(yoho.invokeMethod('set.shareInfo', shareData)); | 40 | + yoho.ready(function() { |
41 | + yoho.invokeMethod('set.shareInfo', shareData); | ||
42 | + }); | ||
41 | } | 43 | } |
42 | 44 | ||
43 | appVersion = window.queryString.app_version; | 45 | appVersion = window.queryString.app_version; |
-
Please register or login to post a comment