| | |
| | | "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"', |
| | | |
| | |
| | | "description": "", |
| | | "setting": { |
| | | "urlCheck": false, |
| | | "es6": true, |
| | | "enhance": true, |
| | | "es6": false, |
| | | "enhance": false, |
| | | "postcss": false, |
| | | "preloadBackgroundData": false, |
| | | "minified": false, |
| | |
| | | userType: EnumUserType.Personal, |
| | | clientType: EnumClientType.Wxmp, |
| | | }; |
| | | |
| | | export const APP_ENV = process.env.APP_ENV; |
| | |
| | | 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() { |