|
@@ -319,17 +319,21 @@ const SHARE_TO = (() => {
|
|
|
$('#share-phone').val('');
|
|
|
initSearchResultView();
|
|
|
$('#share-hint').text('');
|
|
|
- const { sharedUsers, recentUsers, contacts } = await getInitalData(projectID);
|
|
|
- curSharedUsers = sharedUsers;
|
|
|
- initSharedView(sharedUsers);
|
|
|
- initRecentView(recentUsers);
|
|
|
- initContactsView(contacts);
|
|
|
- $.bootstrapLoading.end();
|
|
|
- setTimeout(() => $('#sharePhone').focus(), 200);
|
|
|
- $('#share').modal('show');
|
|
|
+ const { isFree, sharedUsers, recentUsers, contacts } = await getInitalData(projectID);
|
|
|
+ if (isFree) {
|
|
|
+ hintBox.versionBox('此功能仅在专业版中提供,免费公用版可选择单个分段进行分享。');
|
|
|
+ } else {
|
|
|
+ curSharedUsers = sharedUsers;
|
|
|
+ initSharedView(sharedUsers);
|
|
|
+ initRecentView(recentUsers);
|
|
|
+ initContactsView(contacts);
|
|
|
+ setTimeout(() => $('#share-phone').focus(), 200);
|
|
|
+ $('#share').modal('show');
|
|
|
+ }
|
|
|
} catch (err) {
|
|
|
console.log(err);
|
|
|
alert(err);
|
|
|
+ } finally {
|
|
|
$.bootstrapLoading.end();
|
|
|
}
|
|
|
}
|