健康报告修改位置
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// pages/myBookings/index.js
|
||||
const app = getApp();
|
||||
let orderSn = ""
|
||||
let orderLimit = 48;
|
||||
Page({
|
||||
|
||||
/**
|
||||
@@ -113,7 +114,7 @@ Page({
|
||||
return;
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: '距离开课48小时内不得取消',
|
||||
title: '距离开课' + orderLimit + '小时内不得取消',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
@@ -164,6 +165,9 @@ Page({
|
||||
}).then(res => {
|
||||
let currentDate = new Date().getTime();
|
||||
let startDate = currentDate;
|
||||
if (res.memberLessonTicket.venueLesson.orderLimit){
|
||||
orderLimit = res.memberLessonTicket.venueLesson.orderLimit;
|
||||
}
|
||||
if (res.memberLessonTicket) {
|
||||
startDate = new Date(res.memberLessonTicket.venueLesson.date.replace(/-/g, "/") + ' ' + res.memberLessonTicket.venueLesson.startTime).getTime();
|
||||
}
|
||||
@@ -174,7 +178,7 @@ Page({
|
||||
}
|
||||
this.setData({
|
||||
memberLessonTicket: res.memberLessonTicket,
|
||||
isSignIn: (startDate - currentDate) / 1000 / 60 / 60 < 48,
|
||||
isSignIn: (startDate - currentDate) / 1000 / 60 / 60 < orderLimit,
|
||||
})
|
||||
}, err => {
|
||||
|
||||
@@ -223,4 +227,4 @@ Page({
|
||||
urls: [this.data.memberLessonTicket.venueLesson.coach.wechatCode],
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user