Commit 585e2cf1 by 张立顺

fix bug修复

1 parent ac8f47e3
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 1
let index = 2
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion
......
......@@ -103,6 +103,12 @@ Page({
if (type === 'day') {
return `${value}日`
}
if (type === 'hour') {
return `${value}时`
}
if (type === 'minute') {
return `${value}分`
}
return value
}
},
......@@ -160,8 +166,11 @@ Page({
const year = date.getFullYear()
const month = String(date.getMonth() + 1).padStart(2, '0')
const day = String(date.getDate()).padStart(2, '0')
const formattedDate = `${year}年${month}月${day}日`
const apiDate = `${year}-${month}-${day} 00:00:00`
const hours = String(date.getHours()).padStart(2, '0')
const minutes = String(date.getMinutes()).padStart(2, '0')
const seconds = String(date.getSeconds()).padStart(2, '0')
const formattedDate = `${year}年${month}月${day}日 ${hours}:${minutes}:${seconds}`
const apiDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
const { formData, pageScrollTop, popupType } = this.data
......@@ -352,7 +361,7 @@ Page({
if (trialOnboardingPlans && trialOnboardingPlans?.length > 0) {
trialOnboardingPlans = trialOnboardingPlans.map(item => ({
...item,
onboardingDate: this.formatDate(item.onboardingDate)
onboardingDate: this.formatDate(item.trialTime)
}))
}
......
......@@ -290,7 +290,7 @@
<!-- 时间选择器 -->
<van-popup show="{{ timeShow }}" position="bottom" round bind:close="calcelDate" catchtouchmove="preventTouchMove">
<van-datetime-picker
type="date"
type="datetime"
value="{{ currentDate }}"
formatter="{{ formatter }}"
min-date="{{ minDate }}"
......
......@@ -391,6 +391,29 @@ Page({
},
switch1Change(e) {
const checked = !!(e && e.detail && e.detail.value)
if (checked) {
// 如果是开启急招,需要弹窗确认
Dialog.confirm({
title: '提示',
message: '申请急招,在招聘负责人推送简历后,需在24小时内完成简历跟进处理,否则将自动上报总部,请知悉!',
confirmButtonText: '确定'
}).then(() => {
// 确认开启
this.updateUrgentStatus(true)
}).catch(() => {
// 取消开启,需要重置开关状态
this.setData({
switch1Checked: false
})
})
} else {
// 关闭急招直接执行
this.updateUrgentStatus(false)
}
},
updateUrgentStatus(checked) {
const urgent = checked ? 1 : 0
const { formList } = this.data
if (Array.isArray(formList) && formList[FORM_FIELDS.URGENT]) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!