This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
liumin
/
NewZkgj
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
新增删除接待提示框
yun
douzhuo
2 years ago
parent
a93118519f
commit
06405ca0e1
1 changed files
with
17 additions
and
9 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+17
-9
pages/index/customer.vue
+ 17
- 9
pages/index/customer.vue
View File
@@ -135,16 +135,24 @@
methods: {
// 删除接待
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'
});
})
},
// 获取未读消息数量
Write
Preview
Loading…
Cancel
Save