Authored by htoooth

fix app version share error

... ... @@ -43,7 +43,6 @@ new Swiper('.swiper-container', {
autoplay: 4000
});
function fellow() {
$.yAlert({
content: `<div>公众号
... ... @@ -82,11 +81,9 @@ getUser();
function share() {
if (yoSdk.env === 'app') {
// 由于app版本兼容性问题
if (yoho.isAndroid) {
if (versionCompare(store.currentVersion, store.targetVersion) < 0) {
alertVersion();
return;
}
if (versionCompare(store.currentVersion, store.targetVersion) < 0) {
alertVersion();
return;
}
yoho.invokeMethod('go.showshareaction', shareData && shareData.app);
... ... @@ -120,7 +117,9 @@ let luckAlert = {
});
this.$el.on('click', '.share', function() {
share();
getUser().then(() => {
share();
});
});
}
};
... ... @@ -188,6 +187,8 @@ $('.action-bar-comp').on('click', '.js-join', function() {
// 分享
$('.action-bar-comp').on('click', '.js-share', function() {
share();
getUser().then(() => {
share();
});
});
... ...
... ... @@ -222,11 +222,9 @@ function share($el) {
if (yoSdk.env === 'app') {
// 由于app版本兼容性问题
if (yoho.isAndroid) {
if (versionCompare(currentVersion, targetVersion) < 0) {
alertVersion();
return;
}
if (versionCompare(currentVersion, targetVersion) < 0) {
alertVersion();
return;
}
yoho.invokeMethod('go.showshareaction', store.shareData && store.shareData.app);
} else if (yoSdk.env === 'h5') {
... ...