| | |
| | | "name": "待验收-验收详情", |
| | | "pathName": "subpackages/task/taskHandleCheckDetail/taskHandleCheckDetail", |
| | | "query": "id=546401cc-c148-47d0-c647-08de1e75af01&date=2025-11-28&taskInfoId=5a22c18b-0b49-4540-6658-08de1da80d7c", |
| | | "scene": null, |
| | | "launchMode": "default" |
| | | "launchMode": "default", |
| | | "scene": null |
| | | }, |
| | | { |
| | | "name": "报名列表", |
| | |
| | | import IconCaptcha from '@/assets/login/icon-btn-captcha.png'; |
| | | import IconPassword from '@/assets/login/icon-btn-password.png'; |
| | | import { LoginFormTabs } from '../constants'; |
| | | import { subscribeMessageTemplateIdsForB } from '@12333/constants'; |
| | | import * as authServices from '@12333/services/apiV2/auth'; |
| | | |
| | | defineOptions({ |
| | |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleLoginSuccess() { |
| | | Message.success('授权登录成功', { |
| | | onClosed: () => { |
| | | jump(); |
| | | }, |
| | | }); |
| | | async function handleLoginSuccess() { |
| | | try { |
| | | if (!Taro.requestSubscribeMessage) { |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续报名' }); |
| | | } |
| | | const res = await Taro.getSetting({ |
| | | withSubscriptions: true, |
| | | }); |
| | | let setting: boolean[] = []; |
| | | if (res.subscriptionsSetting && res.subscriptionsSetting.itemSettings) { |
| | | setting = subscribeMessageTemplateIdsForB |
| | | .map((id) => res.subscriptionsSetting.itemSettings[id] !== 'accept') |
| | | .filter(Boolean); |
| | | } |
| | | if (setting.length > 0) { |
| | | Taro.requestSubscribeMessage({ |
| | | tmplIds: subscribeMessageTemplateIdsForB, |
| | | success: function (res) { |
| | | console.log('res: ', res); |
| | | }, |
| | | }); |
| | | } |
| | | Message.success('授权登录成功', { |
| | | onClosed: () => { |
| | | jump(); |
| | | }, |
| | | }); |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function goLoginByForm(tab = LoginFormTabs.VerificationCodeLogin) { |
| | |
| | | "description": "", |
| | | "setting": { |
| | | "urlCheck": false, |
| | | "es6": false, |
| | | "enhance": false, |
| | | "es6": true, |
| | | "enhance": true, |
| | | "postcss": false, |
| | | "preloadBackgroundData": false, |
| | | "minified": false, |
| | |
| | | import { LoginFormTabs } from '../constants'; |
| | | import * as authServices from '@12333/services/apiV2/auth'; |
| | | import { NODE_ENV } from '@/constants'; |
| | | import { subscribeMessageTemplateIdsForC } from '@12333/constants'; |
| | | console.log('NODE_ENV: ', NODE_ENV); |
| | | |
| | | defineOptions({ |
| | |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleLoginSuccess() { |
| | | Message.success('授权登录成功', { |
| | | onClosed: () => { |
| | | jump(); |
| | | }, |
| | | }); |
| | | async function handleLoginSuccess() { |
| | | try { |
| | | if (!Taro.requestSubscribeMessage) { |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续报名' }); |
| | | } |
| | | const res = await Taro.getSetting({ |
| | | withSubscriptions: true, |
| | | }); |
| | | let setting: boolean[] = []; |
| | | if (res.subscriptionsSetting && res.subscriptionsSetting.itemSettings) { |
| | | setting = subscribeMessageTemplateIdsForC |
| | | .map((id) => res.subscriptionsSetting.itemSettings[id] !== 'accept') |
| | | .filter(Boolean); |
| | | } |
| | | if (setting.length > 0) { |
| | | Taro.requestSubscribeMessage({ |
| | | tmplIds: subscribeMessageTemplateIdsForC, |
| | | success: function (res) { |
| | | console.log('res: ', res); |
| | | }, |
| | | }); |
| | | } |
| | | Message.success('授权登录成功', { |
| | | onClosed: () => { |
| | | jump(); |
| | | }, |
| | | }); |
| | | } catch (error) { |
| | | console.log('error: ', error); |
| | | } |
| | | } |
| | | |
| | | function goLoginByForm(tab = LoginFormTabs.VerificationCodeLogin) { |
| | |
| | | GetTaskInfoQueryResultHireButton, |
| | | GetTaskInfoQueryResultApplyButton, |
| | | EnumTaskCheckReceiveMethod, |
| | | subscribeMessageTemplateIds, |
| | | } from '@12333/constants'; |
| | | import { useAccessLogin } from '@/hooks'; |
| | | import { useTaskInfo } from '@12333/hooks'; |
| | |
| | | } |
| | | }); |
| | | |
| | | const tmplIds = ['T7Gta6H6TROZjcqeSWVTG2wWGGInWh0fGTOgCCgVBuk']; |
| | | |
| | | const handleApply = _.debounce( |
| | | useAccessReal( |
| | | async () => { |
| | | try { |
| | | // if (!Taro.requestSubscribeMessage) { |
| | | // await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续报名' }); |
| | | // } |
| | | // const res = await Taro.getSetting({ |
| | | // withSubscriptions: true, |
| | | // }); |
| | | // let setting: boolean[] = []; |
| | | // if (res.subscriptionsSetting && res.subscriptionsSetting.itemSettings) { |
| | | // setting = tmplIds |
| | | // .map((id) => res.subscriptionsSetting.itemSettings[id] !== 'accept') |
| | | // .filter(Boolean); |
| | | // } |
| | | // console.log('setting: ', setting); |
| | | // if (setting.length > 0) { |
| | | // Taro.requestSubscribeMessage({ |
| | | // tmplIds: tmplIds, |
| | | // success: function (res) { |
| | | // console.log('res: ', res); |
| | | // }, |
| | | // }); |
| | | // } |
| | | let params: API.ApplyTaskCommand = { |
| | | ids: [id], |
| | | }; |
| | |
| | | import IconPassword from '@/assets/login/icon-btn-password.png'; |
| | | import { LoginFormTabs } from '../constants'; |
| | | import * as authServices from '@12333/services/apiV2/auth'; |
| | | import { subscribeMessageTemplateIdsForU } from '@12333/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'authorization', |
| | |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleLoginSuccess() { |
| | | Message.success('授权登录成功', { |
| | | onClosed: () => { |
| | | jump(); |
| | | }, |
| | | }); |
| | | async function handleLoginSuccess() { |
| | | try { |
| | | if (!Taro.requestSubscribeMessage) { |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续报名' }); |
| | | } |
| | | const res = await Taro.getSetting({ |
| | | withSubscriptions: true, |
| | | }); |
| | | let setting: boolean[] = []; |
| | | if (res.subscriptionsSetting && res.subscriptionsSetting.itemSettings) { |
| | | setting = subscribeMessageTemplateIdsForU |
| | | .map((id) => res.subscriptionsSetting.itemSettings[id] !== 'accept') |
| | | .filter(Boolean); |
| | | } |
| | | if (setting.length > 0) { |
| | | Taro.requestSubscribeMessage({ |
| | | tmplIds: subscribeMessageTemplateIdsForU, |
| | | success: function (res) { |
| | | console.log('res: ', res); |
| | | }, |
| | | }); |
| | | } |
| | | Message.success('授权登录成功', { |
| | | onClosed: () => { |
| | | jump(); |
| | | }, |
| | | }); |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function goLoginByForm(tab = LoginFormTabs.VerificationCodeLogin) { |
| | |
| | | |
| | | export const WeekCN = ['日', '一', '二', '三', '四', '五', '六']; |
| | | |
| | | export const subscribeMessageTemplateIds = [ |
| | | 'SXKAepOeuiyYrm0uhIzG48Tcf1LKdcp6I3xPbaV-Sgs', //被录用后向C端人员通知 |
| | | 'CQn-c22Uo_v5pQhAjdw-PknXBVD-DLAELsqRQziikAE', //排班后向C端人员通知 |
| | | 'pw-WntZZJjADXfLsxcs5S8pKlpTrSc-HtJs0ZZvqliE', //结算完成后向C端人员通知 |
| | | export const subscribeMessageTemplateIdsForC = [ |
| | | 'xYWBg0FydQ64a-4cDqLCp8HV82QhRKmREa78GpLqMlQ', //签约提醒 |
| | | 'Ce0QCQIGXjChpmq_r3hr_lifwO7MSpxDUjqNkwJCA74', //被安排提醒 |
| | | 'ziC07K27Km9OAywf-KYwHiWgn195j9tmuFKxbDZ79tg', //录用/录用谢绝 |
| | | 'TwPHORIjXxeUVr8R4FzbRofmIYmU0vODetvXrPfFAbY', //验收结果 |
| | | 'Fm2ut8eeJxf18PrVusJEdufbCMr9wZ45LeFVK4eNhIc', //到账提醒 |
| | | ]; |
| | | |
| | | export const subscribeMessageTemplateIdsForB = [ |
| | | 'VTxlUXF40FU0G3Re6UIIK3w3wqeJxAKG1veLpaQysVQ', //验收提醒 |
| | | 'wOMG0iMj1hheKdJhBZIuUZIRT_AJl7-auvf2C0KrACs', //待审批提醒 |
| | | 'gPaQGVWqA0UM8764uYb8LfapitRG-R2urVSa5za1hCU', //结算提醒 |
| | | 'a97bSRg0O7xbugFNxDBShm7k55e-jMWT4PHVZnVCzQM', //充值提醒 |
| | | ]; |
| | | |
| | | export const subscribeMessageTemplateIdsForU = [ |
| | | '2canu6qqn3_03s2IbfPEPWRqNtEKxu4lNvRUud5yRys', //薪资结算提醒 |
| | | 'PZO6t_6pBEPxqlGXD4x99h8sIOHFKKjaki9An6FnT1c', //结算提醒(已结算、结算失败) |
| | | 'oY96y8VrXOW47ZBCfLTLk5gEeBamn8Ou8S9Ub4ANZAY', //充值提醒 |
| | | 'B_y0UwuixBCkhM0ng_RYaxGgXhLh4SXxDTmkwZ5CXiY', //签到提醒 |
| | | ]; |
| | |
| | | const Options: LoggerRecordOptions = { |
| | | moduleName: getUtilsConfig().appName, |
| | | enableStorage: true, |
| | | level: 'error', |
| | | loggerStorageAdapter() { |
| | | return { |
| | | setItem(key: string, data: any) { |