This commit is contained in:
2023-11-09 16:46:53 +08:00
parent 080cd32cca
commit edf0aee606

View File

@ -2,7 +2,7 @@
<view class="app">
<u-tabs :list="tabslist" :is-scroll="false" :current="tabscurrent" @change="tabschange" :show-bar='false'
active-color='#26A888'></u-tabs>
<u-empty v-if="appointmentlist==0" text="暂无" ></u-empty>
<u-empty v-if="appointmentlist==0" text="暂无"></u-empty>
<view class="record" v-for="(item,index) in appointmentlist" :key="index" v-else>
<view class="top">
<span>{{item.formName}}</span>
@ -68,14 +68,12 @@
completed: '',
},
appointmentlist: [],
}
},
onShow() {
const value=uni.getStorageSync('userinfo');
this.query.identity=value.cardNo
const value = uni.getStorageSync('userinfo');
this.query.identity = value.cardNo
this.info();
console.log(this.appointmentlist,'555')
},
methods: {
info() {
@ -84,15 +82,14 @@
})
},
evaluatetime(item) {
console.log(item, 11)
cancel(item.bookingNo).then(res => {
console.log(res, '56')
if (res.code == 200) {
this.$refs.uToast.show({
title: '取消预约成功',
type: 'success',
duration: '1500'
})
this.info();
} else if (res.code == 500) {
this.$refs.uToast.show({
title: res.msg,
@ -105,7 +102,6 @@
//tabs
tabschange(index) {
this.tabscurrent = index
console.log(index, '5')
if (index == '1') {
this.query.completed = '1'
this.info();
@ -117,7 +113,6 @@
this.info();
}
},
}
}
</script>