update
This commit is contained in:
@@ -112,7 +112,8 @@
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.del_mind(${item.id},'card_${uuid}')">删除</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.share_mind(${item.id})">分享</a>`
|
||||
} else if (src_page === 'share') {
|
||||
sub_btn = `<a class="dropdown-item" href="javascript:void(0);" onclick="mind.share_cancel(${item.id})">取消分享</a>`
|
||||
sub_btn = `<a class="dropdown-item" href="javascript:void(0);" onclick="mind.share_cancel(${item.id})">取消分享</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="">查看分享链接</a>`
|
||||
}
|
||||
|
||||
const content = `<div class="card col-2" style="margin: 6px; margin-left: 20px;" id='card_${uuid}'>
|
||||
@@ -139,9 +140,17 @@
|
||||
async: false
|
||||
});
|
||||
},
|
||||
/**显示分享链接*/
|
||||
show_share_url: function (u, h) {
|
||||
const url = `s_2_d?u=${u}&h=${h}`
|
||||
$('#share_mind_modal .modal-body').html(`分享成功,请复制以下链接进行分享:<div>${window.location.protocol}//${window.location.host}/${url}</div>`)
|
||||
$('#share_mind_modal_a').click()
|
||||
},
|
||||
/**分页组件*/
|
||||
init_pagination: function (count, page_size) {
|
||||
/**计算页数*/
|
||||
if (count <= 0) return
|
||||
|
||||
const all_page = (count <= page_size) ? 1 : (count % page_size > 0) ? Math.floor(count / page_size) + 1 : Math.floor(count / page_size)
|
||||
const container = $('#pagination_div')
|
||||
const navigation = $(`<nav aria-label="Page navigation example"></nav>`)
|
||||
@@ -197,9 +206,7 @@
|
||||
data: {'id': mind_id},
|
||||
dataType: "json",
|
||||
success: function (resp) {
|
||||
const url = `s_2_d?u=${resp.data.u}&h=${resp.data.h}`
|
||||
$('#share_mind_modal .modal-body').html(`分享成功,请复制以下链接进行分享:<div>${window.location.protocol}//${window.location.host}/${url}</div>`)
|
||||
$('#share_mind_modal_a').click()
|
||||
me.show_share_url(`${resp.data.u}`, `${resp.data.h}`)
|
||||
},
|
||||
async: false
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user