wupengfei
2 天以前 7eb002b8aa27e616b8b98074bee97861ea922451
Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp
13个文件已修改
112 ■■■■ 已修改文件
apps/cMiniApp/.eslintrc-auto-import.json 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/auto-imports.d.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/config/dev.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/config/prod.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/constants/app.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/pages/mine/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/login/registerForm/registerForm.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/constants/apiEnum.ts 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/enterpriseWallet.ts 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/apiV2/typings.d.ts 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/utils/message.tsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/.eslintrc-auto-import.json
@@ -105,6 +105,7 @@
    "watchSyncEffect": true,
    "useUpdateResume": true,
    "useAccessReal": true,
    "useLaunchOptions": true
    "useLaunchOptions": true,
    "APP_ENV": true
  }
}
apps/cMiniApp/auto-imports.d.ts
@@ -5,6 +5,7 @@
// 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']
@@ -119,6 +120,7 @@
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']>
apps/cMiniApp/config/dev.js
@@ -5,6 +5,7 @@
    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',
apps/cMiniApp/config/prod.js
@@ -3,6 +3,7 @@
    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"',
apps/cMiniApp/src/constants/app.ts
@@ -4,3 +4,5 @@
  userType: EnumUserType.Personal,
  clientType: EnumClientType.Wxmp,
};
export const APP_ENV = process.env.APP_ENV;
apps/cMiniApp/src/pages/mine/index.vue
@@ -120,9 +120,11 @@
const { goLoginFn } = useGoLogin();
const bgHeight = computed(() => 133 + systemStore.navHeight);
Taro.useDidShow(() => {
Taro.useDidShow(({ scene }) => {
  if (isLogin.value) {
    updateUserInfo();
    setTimeout(() => {
      updateUserInfo();
    }, 300);
  }
});
apps/cMiniApp/src/subpackages/login/loginByForm/verificationCodeLoginForm.vue
@@ -40,6 +40,7 @@
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',
@@ -78,13 +79,10 @@
    },
    { 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() {
apps/cMiniApp/src/subpackages/login/registerForm/registerForm.vue
@@ -62,6 +62,7 @@
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',
@@ -109,12 +110,10 @@
    }
  );
  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() {
apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue
@@ -130,24 +130,27 @@
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(() => {
packages/constants/apiEnum.ts
@@ -167,6 +167,22 @@
  Stop = 999,
}
/** 企业钱包交易状态 */
export enum EnumEnterpriseWalletTransactionStatus {
  /**待提交 */
  WaitSubmit = 1,
  /**待支付 */
  WaitPay = 10,
  /**处理中 */
  Dealing = 20,
  /**成功 */
  Success = 30,
  /**退票 */
  Refund = 40,
  /**失败 */
  Fail = 50,
}
/** 企业钱包交易类型 */
export enum EnumEnterpriseWalletTransactionType {
  /**充值 */
packages/services/apiV2/enterpriseWallet.ts
@@ -310,3 +310,18 @@
    }
  );
}
/** 企业钱包转账 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 || {}),
  });
}
packages/services/apiV2/typings.d.ts
@@ -646,6 +646,21 @@
    Stop = 999,
  }
  enum EnumEnterpriseWalletTransactionStatus {
    /**待提交 */
    WaitSubmit = 1,
    /**待支付 */
    WaitPay = 10,
    /**处理中 */
    Dealing = 20,
    /**成功 */
    Success = 30,
    /**退票 */
    Refund = 40,
    /**失败 */
    Fail = 50,
  }
  enum EnumEnterpriseWalletTransactionType {
    /**充值 */
    Recharge = 10,
@@ -3366,7 +3381,7 @@
    remark?: string;
    /** 订单支付时间 */
    transDate?: string;
    transactionStatus?: EnumWalletTransactionStatus;
    transactionStatus?: EnumEnterpriseWalletTransactionStatus;
  }
  interface GetExceptionLogsQuery {
@@ -5757,6 +5772,14 @@
    remark?: string;
  }
  interface TransferEnterpriseWalletCommand {
    access?: EnumEnterpriseWalletAccess;
    /** 金额 */
    amount?: number;
    /** 充值备注 */
    remark?: string;
  }
  interface UpdatePhoneNumberVerifyCodeCommand {
    /** 手机号码 */
    phoneNumber: string;
packages/utils/message.tsx
@@ -25,6 +25,7 @@
  title?: string;
  message?: string | VNode;
  confirmText?: string;
  cancelText?: string;
  showCancelBtn?: boolean;
};
@@ -34,6 +35,7 @@
      title = '提示',
      message = '确定要删除该数据吗?',
      confirmText = '确认',
      cancelText = '取消',
      showCancelBtn = true,
    } = options;
    return new Promise((resolve, reject) => {
@@ -49,6 +51,7 @@
                  visible={open.value}
                  content={message}
                  showCancelBtn={showCancelBtn}
                  cancelText={cancelText}
                  onCancel={() => {
                    onClose();
                    reject();