master
lion 1 year ago
parent f39c08853a
commit 52336690d6

@ -27,7 +27,9 @@ let apiApp = {
scheduleIndex: '/api/mobile/schedule/index',
scheduleSave: '/api/mobile/schedule/save',
scheduleDetail: '/api/mobile/schedule/detail',
scheduleCheck: '/api/mobile/schedule/check',
scheduleCheck: '/api/mobile/schedule/check',
scheduleCancel: '/api/mobile/schedule/cancel',
// 其他
otherConfig: '/api/mobile/other/config',
otherBanner: '/api/mobile/other/banner',
@ -68,7 +70,10 @@ const install = (Vue, vm) => {
let scheduleIndex = (params = {}) => vm.$u.get(apiApp.scheduleIndex, params);
let scheduleSave = (params = {}) => vm.$u.post(apiApp.scheduleSave, params);
let scheduleDetail = (params = {}) => vm.$u.get(apiApp.scheduleDetail, params);
let scheduleCheck = (params = {}) => vm.$u.get(apiApp.scheduleCheck, params);
let scheduleCheck = (params = {}) => vm.$u.get(apiApp.scheduleCheck, params);
let scheduleCancel = (params = {}) => vm.$u.get(apiApp.scheduleCancel, params);
// 其他
let otherConfig = (params = {}) => vm.$u.get(apiApp.otherConfig, params);
@ -104,7 +109,8 @@ const install = (Vue, vm) => {
scheduleIndex,
scheduleSave,
scheduleDetail,
scheduleCheck,
scheduleCheck,
scheduleCancel,
// 资讯
courseNews,
// 其他

@ -475,19 +475,20 @@
const endTime = this.$moment(endTime1);
const currentTime = this.$moment();
const todayHMax = this.$moment().hours(this.hMax).minutes(this.mEnd).seconds(0).milliseconds(0);
//
const startDay = this.$moment(this.startTime).format('YYYY-MM-DD');
//
const startDay = this.$moment(startTime).format('YYYY-MM-DD');
const endDay = this.$moment(endTime).format('YYYY-MM-DD');
//
//
const startDayHMin = this.$moment(startDay + ' ' + this.hMin + ':' + this.mStart)
const startDayHMax = this.$moment(startDay + ' ' + this.hMax + ':' + this.mEnd)
const endDayHMin = this.$moment(endDay + ' ' + this.hMin + ':' + this.mStart)
const endDayHMax = this.$moment(endDay + ' ' + this.hMax + ':' + this.mEnd)
const endDayHMax = this.$moment(endDay + ' ' + this.hMax + ':' + this.mEnd)
if (startTime.isBefore(startDayHMin)) {
this.base.toast('预约开始时间不能早于明日的' + this.bookStartTime)
return false;
}
}
if (startTime.isAfter(startDayHMax)) {
this.base.toast('预约开始时间不能晚于每天的' + this.bookEndTime)
return false;
@ -505,7 +506,6 @@
this.base.toast('预约结束时间不能晚于每天的' + this.bookEndTime)
return false;
}
//
result = '时间验证通过';
return true

@ -129,9 +129,9 @@
title: '确认要取消该预约?',
success: function(res) {
if (res.confirm){
item.status = 3
item.content = '123'
that.$u.api.scheduleSave(item).then(res => {
that.$u.api.scheduleCancel({
id:item.id
}).then(res => {
that.base.toast("取消成功")
that.current_page = 1
that.book_list = []

@ -22,8 +22,9 @@
</view>
<view class="wrap">
<view v-if="hasData">
<view class="tips">
按照姓名首字母顺序排列,排名不分先后
<view class="tips">
<view>按照姓名首字母顺序排列,排名不分先后</view>
<view>如需校友联系方式,可咨询班主任</view>
</view>
<scroll-view style="height:100vh" :scroll-y="true" @scrolltolower="scrollGet" class="list">
<view class="left-item-card" v-for="(mess,inx) in list">
@ -37,6 +38,13 @@
{{mess['company_name']||''}}</view>
<view v-if="mess['company_position']"
style="font-size:28rpx;color:#666;margin-bottom:10rpx">{{mess['company_position']||''}}
</view>
<view v-if="mess['course_signs'].length>0"
style="font-size:28rpx;color:#666;margin-bottom:10rpx">
<block v-if="mess['course_signs'][0].course">
<view>班级{{mess['course_signs'][0].course.year||''}}{{mess['course_signs'][0].course.type_detail?mess['course_signs'][0].course.type_detail.name+'|':''}}{{mess['course_signs'][0].course.name||''}}</view>
</block>
</view>
</view>
</view>
@ -261,7 +269,12 @@
this.hasData = true
this.getMyCourseTxl()
},
confirmSearch() {
confirmSearch() {
this.current = 0
this.current_page = 1
this.total_page = 0
this.list = []
this.hasData = true
this.getMyCourseTxl()
}
}

Loading…
Cancel
Save