|
@ -68,7 +68,18 @@ |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
cancelBook(){ |
|
|
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(){ |
|
|
rebook(){ |
|
|
this.$func.toPage('/pages/index/index') |
|
|
this.$func.toPage('/pages/index/index') |
|
@ -91,7 +102,6 @@ |
|
|
|
|
|
|
|
|
bookInfo = data |
|
|
bookInfo = data |
|
|
this.bookInfo = bookInfo |
|
|
this.bookInfo = bookInfo |
|
|
bookInfo.status = 2 |
|
|
|
|
|
this.status = this.statusList[bookInfo.status] |
|
|
this.status = this.statusList[bookInfo.status] |
|
|
if(bookInfo.status==3) this.showReBook = true |
|
|
if(bookInfo.status==3) this.showReBook = true |
|
|
if(bookInfo.status==2) this.showCancelBook = true |
|
|
if(bookInfo.status==2) this.showCancelBook = true |
|
|