wupengfei
2 天以前 608ed6ae8348a77ca332ca44d3f5d55d6e6fdd6b
feat: 签约
4个文件已修改
20 ■■■■■ 已修改文件
apps/cMiniApp/src/app.config.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/constants/router.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/utils/common.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/app.config.ts
@@ -82,6 +82,7 @@
        'mineCollectTask/mineCollectTask',
        'mineAgreementSign/mineAgreementSign',
        'mineAgreementSignDetail/mineAgreementSignDetail',
        'mineAgreementSignExtraPage/mineAgreementSignExtraPage',
        'setting/setting',
      ],
    },
apps/cMiniApp/src/constants/router.ts
@@ -38,6 +38,7 @@
  mineCollectTask = '/subpackages/mine/mineCollectTask/mineCollectTask',
  mineAgreementSign = '/subpackages/mine/mineAgreementSign/mineAgreementSign',
  mineAgreementSignDetail = '/subpackages/mine/mineAgreementSignDetail/mineAgreementSignDetail',
  mineAgreementSignExtraPage = '/subpackages/mine/mineAgreementSignExtraPage/mineAgreementSignExtraPage',
  setting = '/subpackages/mine/setting/setting',
  mineWallet = '/subpackages/wallet/mineWallet/mineWallet',
apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue
@@ -76,7 +76,7 @@
  EnumTaskUserSignContractStatus,
  EnumTaskUserSignContractStatusText,
} from '@12333/constants';
import { format } from '@12333/utils';
import { format, Message } from '@12333/utils';
import Taro from '@tarojs/taro';
defineOptions({
@@ -110,10 +110,14 @@
});
function checkAgreement() {
  const encodedUrl = encodeURIComponent(detail?.value?.contractUrl);
  Taro.navigateTo({
    url: `${RouterPath.mineAgreementSignDetail}?url=${encodedUrl}`,
  });
  if (detail?.value?.userSignContractStatus === EnumTaskUserSignContractStatus.Wait) {
    goToSign();
  } else {
    const encodedUrl = encodeURIComponent(detail?.value?.contractUrl);
    Taro.navigateTo({
      url: `${RouterPath.mineAgreementSignDetail}?url=${encodedUrl}`,
    });
  }
}
const goToSign = useAccessReal(async () => {
@@ -124,7 +128,7 @@
    let res = await enterpriseEmployeeServices.personalUserElectronSign(params);
    if (res) {
      const encodedUrl = encodeURIComponent(res.signContractLongUrl);
      Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` });
      Taro.navigateTo({ url: `${RouterPath.mineAgreementSignExtraPage}?url=${encodedUrl}` });
    }
  } catch (error) {}
});
packages/utils/common.ts
@@ -133,5 +133,5 @@
export const hiddenIDNumberForEnd6 = (realIDNumber: string) => {
  if (!realIDNumber) return '';
  realIDNumber.replace(/^(\d+)(.{6})$/, '$1******');
  return realIDNumber.replace(/^(\d+)(.{6})$/, '$1******');
};