修改
This commit is contained in:
parent
080cd32cca
commit
edf0aee606
@ -68,14 +68,12 @@
|
|||||||
completed: '',
|
completed: '',
|
||||||
},
|
},
|
||||||
appointmentlist: [],
|
appointmentlist: [],
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
const value = uni.getStorageSync('userinfo');
|
const value = uni.getStorageSync('userinfo');
|
||||||
this.query.identity = value.cardNo
|
this.query.identity = value.cardNo
|
||||||
this.info();
|
this.info();
|
||||||
console.log(this.appointmentlist,'555')
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
info() {
|
info() {
|
||||||
@ -84,15 +82,14 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
evaluatetime(item) {
|
evaluatetime(item) {
|
||||||
console.log(item, 11)
|
|
||||||
cancel(item.bookingNo).then(res => {
|
cancel(item.bookingNo).then(res => {
|
||||||
console.log(res, '56')
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '取消预约成功',
|
title: '取消预约成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: '1500'
|
duration: '1500'
|
||||||
})
|
})
|
||||||
|
this.info();
|
||||||
} else if (res.code == 500) {
|
} else if (res.code == 500) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
@ -105,7 +102,6 @@
|
|||||||
//点击tabs
|
//点击tabs
|
||||||
tabschange(index) {
|
tabschange(index) {
|
||||||
this.tabscurrent = index
|
this.tabscurrent = index
|
||||||
console.log(index, '5')
|
|
||||||
if (index == '1') {
|
if (index == '1') {
|
||||||
this.query.completed = '1'
|
this.query.completed = '1'
|
||||||
this.info();
|
this.info();
|
||||||
@ -117,7 +113,6 @@
|
|||||||
this.info();
|
this.info();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user