Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp
| | |
| | | "watchSyncEffect": true, |
| | | "useUpdateResume": true, |
| | | "useAccessReal": true, |
| | | "useLaunchOptions": true |
| | | "useLaunchOptions": true, |
| | | "APP_ENV": true |
| | | } |
| | | } |
| | |
| | | // Generated by unplugin-auto-import |
| | | export {} |
| | | declare global { |
| | | const APP_ENV: typeof import('./src/constants/app')['APP_ENV'] |
| | | const AppLocalConfig: typeof import('./src/constants/app')['AppLocalConfig'] |
| | | const BackType: typeof import('./src/constants/enum')['BackType'] |
| | | const EffectScope: typeof import('vue')['EffectScope'] |
| | |
| | | import { UnwrapRef } from 'vue' |
| | | declare module 'vue' { |
| | | interface ComponentCustomProperties { |
| | | readonly APP_ENV: UnwrapRef<typeof import('./src/constants/app')['APP_ENV']> |
| | | readonly AppLocalConfig: UnwrapRef<typeof import('./src/constants/app')['AppLocalConfig']> |
| | | readonly BackType: UnwrapRef<typeof import('./src/constants/enum')['BackType']> |
| | | readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']> |
| | |
| | | NODE_ENV: '"development"', |
| | | BASE_URL: '"http://localhost:53780"', |
| | | BASE_URL_JX: '"https://api.jx818.com"', |
| | | APP_ENV: '"development"', |
| | | |
| | | OSS_URL: '"https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/"', |
| | | WEMAP_KEY: 'T2UBZ-N563J-ZCHFF-XDOXN-VCH7S-CJB2T', |
| | |
| | | NODE_ENV: '"production"', |
| | | BASE_URL: '"https://lgdapi.81812333.com"', |
| | | BASE_URL_JX: '"https://lgdapi.jx818.com"', |
| | | APP_ENV: '"production"', |
| | | |
| | | OSS_URL: '"https://parkmanagement.oss-cn-hangzhou.aliyuncs.com"', |
| | | |
| | |
| | | userType: EnumUserType.Personal, |
| | | clientType: EnumClientType.Wxmp, |
| | | }; |
| | | |
| | | export const APP_ENV = process.env.APP_ENV; |
| | |
| | | const { goLoginFn } = useGoLogin(); |
| | | const bgHeight = computed(() => 133 + systemStore.navHeight); |
| | | |
| | | Taro.useDidShow(() => { |
| | | Taro.useDidShow(({ scene }) => { |
| | | if (isLogin.value) { |
| | | updateUserInfo(); |
| | | setTimeout(() => { |
| | | updateUserInfo(); |
| | | }, 300); |
| | | } |
| | | }); |
| | | |
| | |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import Taro from '@tarojs/taro'; |
| | | import * as authServices from '@12333/services/apiV2/auth'; |
| | | import { APP_ENV } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'verificationCodeLoginForm', |
| | |
| | | }, |
| | | { showLoading: false, getResponse: true } |
| | | ); |
| | | |
| | | if (res && process.env.APP_ENV === 'staging') { |
| | | if (res && APP_ENV === 'staging') { |
| | | // @ts-ignore |
| | | form.verificationCode = res?.data?.extras?.code ?? ''; |
| | | } |
| | | // @ts-ignore |
| | | return res?.data?.data; |
| | | } |
| | | |
| | | async function handleLogin() { |
| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { ResponseCode } from '@12333/constants'; |
| | | import * as authServices from '@12333/services/apiV2/auth'; |
| | | import { APP_ENV } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'registerForm', |
| | |
| | | } |
| | | ); |
| | | |
| | | if (res && process.env.APP_ENV === 'staging') { |
| | | if (res && APP_ENV === 'staging') { |
| | | // @ts-ignore |
| | | form.verificationCode = res?.data?.extras?.code ?? ''; |
| | | } |
| | | // @ts-ignore |
| | | return res?.data?.data; |
| | | } |
| | | |
| | | async function handleRegister() { |
| | |
| | | |
| | | const goToSign = useAccessReal(async () => { |
| | | try { |
| | | // if (detail.value?.contractTemplateAccess === EnumElectronSignAccess.BestSign) { |
| | | let params: API.PersonalUserElectronSignCommand = { |
| | | id: detail.value?.id, |
| | | }; |
| | | let res = await enterpriseEmployeeServices.personalUserElectronSign(params); |
| | | if (res) { |
| | | const encodedUrl = encodeURIComponent(res.signContractLongUrl); |
| | | Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` }); |
| | | if (detail.value?.contractTemplateAccess === EnumElectronSignAccess.AlipaySign) { |
| | | try { |
| | | await Message.confirm({ |
| | | message: `签约短信已发送至您${hiddenPhone( |
| | | detail.value?.contactPhoneNumber |
| | | )}的手机,请及时查看并签约`, |
| | | cancelText: '未收到短信', |
| | | }); |
| | | } catch (error) { |
| | | goToSign(); |
| | | } |
| | | } else { |
| | | const encodedUrl = encodeURIComponent(res.signContractLongUrl); |
| | | Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` }); |
| | | } |
| | | } |
| | | // } |
| | | // if (detail.value?.contractTemplateAccess === EnumElectronSignAccess.AlipaySign) { |
| | | // Message.confirm({ |
| | | // message: `签约短信已发送至您${hiddenPhone( |
| | | // detail.value?.contactPhoneNumber |
| | | // )}的手机,请及时查看并签约`, |
| | | // showCancelBtn: false, |
| | | // }); |
| | | // } |
| | | } catch (error) {} |
| | | }); |
| | | Taro.useDidShow(() => { |
| | |
| | | Stop = 999, |
| | | } |
| | | |
| | | /** 企业钱包交易状态 */ |
| | | export enum EnumEnterpriseWalletTransactionStatus { |
| | | /**待提交 */ |
| | | WaitSubmit = 1, |
| | | /**待支付 */ |
| | | WaitPay = 10, |
| | | /**处理中 */ |
| | | Dealing = 20, |
| | | /**成功 */ |
| | | Success = 30, |
| | | /**退票 */ |
| | | Refund = 40, |
| | | /**失败 */ |
| | | Fail = 50, |
| | | } |
| | | |
| | | /** 企业钱包交易类型 */ |
| | | export enum EnumEnterpriseWalletTransactionType { |
| | | /**充值 */ |
| | |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 企业钱包转账 POST /api/user/enterpriseWallet/transferEnterpriseWallet */ |
| | | export async function transferEnterpriseWallet( |
| | | body: API.TransferEnterpriseWalletCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterpriseWallet/transferEnterpriseWallet', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | Stop = 999, |
| | | } |
| | | |
| | | enum EnumEnterpriseWalletTransactionStatus { |
| | | /**待提交 */ |
| | | WaitSubmit = 1, |
| | | /**待支付 */ |
| | | WaitPay = 10, |
| | | /**处理中 */ |
| | | Dealing = 20, |
| | | /**成功 */ |
| | | Success = 30, |
| | | /**退票 */ |
| | | Refund = 40, |
| | | /**失败 */ |
| | | Fail = 50, |
| | | } |
| | | |
| | | enum EnumEnterpriseWalletTransactionType { |
| | | /**充值 */ |
| | | Recharge = 10, |
| | |
| | | remark?: string; |
| | | /** 订单支付时间 */ |
| | | transDate?: string; |
| | | transactionStatus?: EnumWalletTransactionStatus; |
| | | transactionStatus?: EnumEnterpriseWalletTransactionStatus; |
| | | } |
| | | |
| | | interface GetExceptionLogsQuery { |
| | |
| | | remark?: string; |
| | | } |
| | | |
| | | interface TransferEnterpriseWalletCommand { |
| | | access?: EnumEnterpriseWalletAccess; |
| | | /** 金额 */ |
| | | amount?: number; |
| | | /** 充值备注 */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface UpdatePhoneNumberVerifyCodeCommand { |
| | | /** 手机号码 */ |
| | | phoneNumber: string; |
| | |
| | | title?: string; |
| | | message?: string | VNode; |
| | | confirmText?: string; |
| | | cancelText?: string; |
| | | showCancelBtn?: boolean; |
| | | }; |
| | | |
| | |
| | | title = '提示', |
| | | message = '确定要删除该数据吗?', |
| | | confirmText = '确认', |
| | | cancelText = '取消', |
| | | showCancelBtn = true, |
| | | } = options; |
| | | return new Promise((resolve, reject) => { |
| | |
| | | visible={open.value} |
| | | content={message} |
| | | showCancelBtn={showCancelBtn} |
| | | cancelText={cancelText} |
| | | onCancel={() => { |
| | | onClose(); |
| | | reject(); |