| | |
| | | "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) { |
| | |
| | | import { LoginFormTabs } from '../constants'; |
| | | import * as authServices from '@12333/services/apiV2/auth'; |
| | | import { NODE_ENV } from '@/constants'; |
| | | import { subscribeMessageTemplateIds } from '@12333/constants'; |
| | | import { subscribeMessageTemplateIdsForC } from '@12333/constants'; |
| | | console.log('NODE_ENV: ', NODE_ENV); |
| | | |
| | | defineOptions({ |
| | |
| | | |
| | | async function handleLoginSuccess() { |
| | | try { |
| | | console.log('Taro.requestSubscribeMessage: ', Taro.requestSubscribeMessage); |
| | | if (!Taro.requestSubscribeMessage) { |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续报名' }); |
| | | } |
| | |
| | | }); |
| | | let setting: boolean[] = []; |
| | | if (res.subscriptionsSetting && res.subscriptionsSetting.itemSettings) { |
| | | setting = subscribeMessageTemplateIds |
| | | setting = subscribeMessageTemplateIdsForC |
| | | .map((id) => res.subscriptionsSetting.itemSettings[id] !== 'accept') |
| | | .filter(Boolean); |
| | | } |
| | | if (setting.length > 0) { |
| | | Taro.requestSubscribeMessage({ |
| | | tmplIds: subscribeMessageTemplateIds, |
| | | tmplIds: subscribeMessageTemplateIdsForC, |
| | | success: function (res) { |
| | | console.log('res: ', res); |
| | | }, |
| | |
| | | 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 = [ |
| | | 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', //签到提醒 |
| | | ]; |