|
@@ -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,11 +81,9 @@ getUser(); |
|
@@ -82,11 +81,9 @@ 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) {
|
|
|
87
|
- alertVersion();
|
|
|
88
|
- return;
|
|
|
89
|
- }
|
84
|
+ if (versionCompare(store.currentVersion, store.targetVersion) < 0) {
|
|
|
85
|
+ alertVersion();
|
|
|
86
|
+ return;
|
90
|
}
|
87
|
}
|
91
|
|
88
|
|
92
|
yoho.invokeMethod('go.showshareaction', shareData && shareData.app);
|
89
|
yoho.invokeMethod('go.showshareaction', shareData && shareData.app);
|
|
@@ -120,7 +117,9 @@ let luckAlert = { |
|
@@ -120,7 +117,9 @@ let luckAlert = { |
120
|
});
|
117
|
});
|
121
|
|
118
|
|
122
|
this.$el.on('click', '.share', function() {
|
119
|
this.$el.on('click', '.share', function() {
|
123
|
- share();
|
120
|
+ getUser().then(() => {
|
|
|
121
|
+ share();
|
|
|
122
|
+ });
|
124
|
});
|
123
|
});
|
125
|
}
|
124
|
}
|
126
|
};
|
125
|
};
|
|
@@ -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() {
|
191
|
- share();
|
190
|
+ getUser().then(() => {
|
|
|
191
|
+ share();
|
|
|
192
|
+ });
|
192
|
});
|
193
|
});
|
193
|
|
194
|
|