master
lion 1 year ago
parent f39c08853a
commit 52336690d6

@ -28,6 +28,8 @@ let apiApp = {
scheduleSave: '/api/mobile/schedule/save',
scheduleDetail: '/api/mobile/schedule/detail',
scheduleCheck: '/api/mobile/schedule/check',
scheduleCancel: '/api/mobile/schedule/cancel',
// 其他
otherConfig: '/api/mobile/other/config',
otherBanner: '/api/mobile/other/banner',
@ -69,6 +71,9 @@ const install = (Vue, vm) => {
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 scheduleCancel = (params = {}) => vm.$u.get(apiApp.scheduleCancel, params);
// 其他
let otherConfig = (params = {}) => vm.$u.get(apiApp.otherConfig, params);
@ -105,6 +110,7 @@ const install = (Vue, vm) => {
scheduleSave,
scheduleDetail,
scheduleCheck,
scheduleCancel,
// 资讯
courseNews,
// 其他

@ -476,7 +476,8 @@
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');
//
//
@ -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 = []

@ -23,7 +23,8 @@
<view class="wrap">
<view v-if="hasData">
<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">
@ -38,6 +39,13 @@
<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>
<!-- <nextIndexedXlist :dataList="list" :show-avatar="false">
@ -262,6 +270,11 @@
this.getMyCourseTxl()
},
confirmSearch() {
this.current = 0
this.current_page = 1
this.total_page = 0
this.list = []
this.hasData = true
this.getMyCourseTxl()
}
}

Loading…
Cancel
Save