diff --git a/pagesC/appointmenttime/appointmenttime.vue b/pagesC/appointmenttime/appointmenttime.vue index da182b4..34a8435 100644 --- a/pagesC/appointmenttime/appointmenttime.vue +++ b/pagesC/appointmenttime/appointmenttime.vue @@ -3,8 +3,10 @@ 预约时间 - - + + 提交 @@ -24,21 +26,40 @@ show: false, mode: 'date', appointlist: [], + datetimesingle: [Date.now(), this.todayEndTime()], listitem: { bookingTime: '', - identity:'', + identity: '', }, datetimerange: [Date.now(), this.todayEndTime()], }; }, + watch: { + datetimesingle(newval) { + console.log("单选:", this.datetimesingle); + // this.listitem.bookingTime=this.datetimesingle + }, + // range(newval) { + // console.log("范围选:", this.range); + // }, + // datetimerange(newval) { + // console.log("范围选:", this.datetimerange); + // }, + }, onLoad(e) { - console.log(e,'567') + console.log(e, '567') this.userinfo = uni.getStorageSync('userinfo'); // this.listitem.identity=this.userinfo.cardNo this.appointlist = JSON.parse(e.item) this.listitem = this.appointlist + console.log(this.listitem.sourceType, '57') }, methods: { + changeLog(e){ + console.log(e,'747') + this.listitem.bookingTime=e + + }, change(e) { this.listitem.bookingTime = e.result }, @@ -53,9 +74,9 @@ if (this.listitem.sourceType == '1') { this.listitem.packageNo = this.appointlist.packageId this.listitem.formNo = this.appointlist.projectId - this.listitem.identity=this.userinfo.cardNo - this.listitem.applyStartTime = this.datetimerange[0] - this.listitem.applyEndTime = this.datetimerange[1] + this.listitem.identity = this.userinfo.cardNo + // this.listitem.applyStartTime = this.datetimerange[0] + // this.listitem.applyEndTime = this.datetimerange[1] this.listitem.formName = this.appointlist.projectName this.$delete(this.listitem, 'projectId') this.$delete(this.listitem, 'projectName') @@ -74,7 +95,7 @@ } }) } else if (this.listitem.sourceType == '2') { - this.listitem.identity=this.userinfo.cardNo + this.listitem.identity = this.userinfo.cardNo this.listitem.applyStartTime = this.datetimerange[0] this.listitem.applyEndTime = this.datetimerange[1] console.log(this.listitem, '555') @@ -82,7 +103,7 @@ if (res.code == 200) { this.$refs.uToast.show({ title: '预约成功', - type: 'error' + type: 'success' }) } else if (res.code == '500') { this.$refs.uToast.show({ @@ -158,4 +179,4 @@ } } - + \ No newline at end of file