mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-17 23:02:49 +00:00
perf: 拨打电话确认提示
This commit is contained in:
parent
4612d5180a
commit
9ecb9c68fb
@ -2079,26 +2079,31 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onCallTel() {
|
onCallTel() {
|
||||||
this.$store.dispatch("call", {
|
$A.modalConfirm({
|
||||||
url: 'dialog/tel',
|
content: `是否拨打电话给 ${this.dialogData.name}?`,
|
||||||
data: {
|
onOk: () => {
|
||||||
dialog_id: this.dialogId,
|
this.$store.dispatch("call", {
|
||||||
},
|
url: 'dialog/tel',
|
||||||
spinner: 600,
|
data: {
|
||||||
}).then(({data}) => {
|
dialog_id: this.dialogId,
|
||||||
if (data.tel) {
|
},
|
||||||
$A.eeuiAppSendMessage({
|
spinner: 600,
|
||||||
action: 'callTel',
|
}).then(({data}) => {
|
||||||
tel: data.tel
|
if (data.tel) {
|
||||||
|
$A.eeuiAppSendMessage({
|
||||||
|
action: 'callTel',
|
||||||
|
tel: data.tel
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (data.add) {
|
||||||
|
this.$store.dispatch("saveDialogMsg", data.add);
|
||||||
|
this.$store.dispatch("updateDialogLastMsg", data.add);
|
||||||
|
this.onActive();
|
||||||
|
}
|
||||||
|
}).catch(({msg}) => {
|
||||||
|
$A.modalError(msg);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (data.add) {
|
|
||||||
this.$store.dispatch("saveDialogMsg", data.add);
|
|
||||||
this.$store.dispatch("updateDialogLastMsg", data.add);
|
|
||||||
this.onActive();
|
|
||||||
}
|
|
||||||
}).catch(({msg}) => {
|
|
||||||
$A.modalError(msg);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user