Authored by htoooth

fix app version share error

@@ -43,7 +43,6 @@ new Swiper('.swiper-container', { @@ -43,7 +43,6 @@ new Swiper('.swiper-container', {
43 autoplay: 4000 43 autoplay: 4000
44 }); 44 });
45 45
46 -  
47 function fellow() { 46 function fellow() {
48 $.yAlert({ 47 $.yAlert({
49 content: `<div>公众号 48 content: `<div>公众号
@@ -82,12 +81,10 @@ getUser(); @@ -82,12 +81,10 @@ getUser();
82 function share() { 81 function share() {
83 if (yoSdk.env === 'app') { 82 if (yoSdk.env === 'app') {
84 // 由于app版本兼容性问题 83 // 由于app版本兼容性问题
85 - if (yoho.isAndroid) {  
86 if (versionCompare(store.currentVersion, store.targetVersion) < 0) { 84 if (versionCompare(store.currentVersion, store.targetVersion) < 0) {
87 alertVersion(); 85 alertVersion();
88 return; 86 return;
89 } 87 }
90 - }  
91 88
92 yoho.invokeMethod('go.showshareaction', shareData && shareData.app); 89 yoho.invokeMethod('go.showshareaction', shareData && shareData.app);
93 } else if (yoSdk.env === 'h5') { 90 } else if (yoSdk.env === 'h5') {
@@ -120,8 +117,10 @@ let luckAlert = { @@ -120,8 +117,10 @@ let luckAlert = {
120 }); 117 });
121 118
122 this.$el.on('click', '.share', function() { 119 this.$el.on('click', '.share', function() {
  120 + getUser().then(() => {
123 share(); 121 share();
124 }); 122 });
  123 + });
125 } 124 }
126 }; 125 };
127 126
@@ -188,6 +187,8 @@ $('.action-bar-comp').on('click', '.js-join', function() { @@ -188,6 +187,8 @@ $('.action-bar-comp').on('click', '.js-join', function() {
188 187
189 // 分享 188 // 分享
190 $('.action-bar-comp').on('click', '.js-share', function() { 189 $('.action-bar-comp').on('click', '.js-share', function() {
  190 + getUser().then(() => {
191 share(); 191 share();
  192 + });
192 }); 193 });
193 194
@@ -222,12 +222,10 @@ function share($el) { @@ -222,12 +222,10 @@ function share($el) {
222 222
223 if (yoSdk.env === 'app') { 223 if (yoSdk.env === 'app') {
224 // 由于app版本兼容性问题 224 // 由于app版本兼容性问题
225 - if (yoho.isAndroid) {  
226 if (versionCompare(currentVersion, targetVersion) < 0) { 225 if (versionCompare(currentVersion, targetVersion) < 0) {
227 alertVersion(); 226 alertVersion();
228 return; 227 return;
229 } 228 }
230 - }  
231 yoho.invokeMethod('go.showshareaction', store.shareData && store.shareData.app); 229 yoho.invokeMethod('go.showshareaction', store.shareData && store.shareData.app);
232 } else if (yoSdk.env === 'h5') { 230 } else if (yoSdk.env === 'h5') {
233 $('.js-clipbroad').trigger('click'); 231 $('.js-clipbroad').trigger('click');