Browse Source

详情页面预约

master
kuaileWu 1 year ago
parent
commit
795c82e154
  1. 14
      pages/book_detail/book_detail.vue

14
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

Loading…
Cancel
Save