QAQ
This commit is contained in:
@@ -174,21 +174,28 @@
|
||||
* @param data
|
||||
*/
|
||||
const onConfirm = async (state, item) => {
|
||||
const show = await showDialog(
|
||||
'提示',
|
||||
`确定分享${props.type == 1 ? '直播间' : '商品'}吗?`
|
||||
)
|
||||
if (!show) {
|
||||
return
|
||||
}
|
||||
if (state) {
|
||||
multiSelectShare()
|
||||
if (props.type == 2) {
|
||||
const show = await showDialog(
|
||||
'提示',
|
||||
`确定分享${props.type == 1 ? '直播间' : '商品'}吗?`
|
||||
)
|
||||
if (!show) {
|
||||
return
|
||||
}
|
||||
if (state) {
|
||||
multiSelectShare()
|
||||
} else {
|
||||
showLoading()
|
||||
await sendCustomData(item)
|
||||
hideLoading()
|
||||
await showToast('分享成功', 'success')
|
||||
isShow.value = false
|
||||
}
|
||||
} else {
|
||||
showLoading()
|
||||
await sendCustomData(item)
|
||||
hideLoading()
|
||||
await showToast('分享成功', 'success')
|
||||
isShow.value = false
|
||||
await showDialog(
|
||||
'提示',
|
||||
`UI需要调整`
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user