| @@ -135,16 +135,24 @@ | |||||
| methods: { | methods: { | ||||
| // 删除接待 | // 删除接待 | ||||
| deleteReception(data) { | deleteReception(data) { | ||||
| this.$u.get(`/customer/delete?id=${data.id}`).then(res => { | |||||
| if (!res) { | |||||
| this.init() | |||||
| uni.showModal({ | |||||
| content: `确认删除“${data.name}”接待吗?`, | |||||
| cancelColor: "#999999", | |||||
| success: res => { | |||||
| if (res.confirm) { | |||||
| this.$u.get(`/customer/delete?id=${data.id}`).then(res => { | |||||
| if (!res) { | |||||
| this.init() | |||||
| } | |||||
| }).catch(e => { | |||||
| console.log(e) | |||||
| uni.showToast({ | |||||
| title: '网络异常,请稍后重试~', | |||||
| icon: 'none' | |||||
| }); | |||||
| }) | |||||
| } | |||||
| } | } | ||||
| }).catch(e => { | |||||
| console.log(e) | |||||
| uni.showToast({ | |||||
| title: '网络异常,请稍后重试~', | |||||
| icon: 'none' | |||||
| }); | |||||
| }) | }) | ||||
| }, | }, | ||||
| // 获取未读消息数量 | // 获取未读消息数量 | ||||