From 795c82e154037c2ab18d1c1414f24fa86e80704b Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Fri, 19 Apr 2024 19:16:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E9=A2=84?= =?UTF-8?q?=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/book_detail/book_detail.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pages/book_detail/book_detail.vue b/pages/book_detail/book_detail.vue index f47c623..94968be 100644 --- a/pages/book_detail/book_detail.vue +++ b/pages/book_detail/book_detail.vue @@ -68,7 +68,18 @@ }, methods: { cancelBook(){ - + var that = this + uni.showModal({ + title:'取消预约', + content:'确认取消预约?', + success(res) { + if(!res.confirm) return + that.$http.req('client/user/visit_user/'+this.bookId, {}, 'POST').then(data=>{ + if(data == -1) return + that.getVisitors() + }); + } + }) }, rebook(){ this.$func.toPage('/pages/index/index') @@ -91,7 +102,6 @@ bookInfo = data this.bookInfo = bookInfo - bookInfo.status = 2 this.status = this.statusList[bookInfo.status] if(bookInfo.status==3) this.showReBook = true if(bookInfo.status==2) this.showCancelBook = true