Commit a4ec34cf authored by 张子雨's avatar 张子雨

feat: 优化

parent 73bf70cc
const isProduction = process.env.NODE_ENV === 'production'; const isProduction = process.env.NODE_ENV === 'production';
const isPre = process.env.PRE_ENV === 'pre'; const isPre = process.env.PRE_ENV === 'pre';
const environment = 'sc1'; const environment = 'yxm2';
const envAPi = { const envAPi = {
api: `https://security-${environment}.liangkebang.net`, //'https://security-xyqb.liangkebang.net', api: `https://security-${environment}.liangkebang.net`, //'https://security-xyqb.liangkebang.net',
kdspOpApi: `https://sc-merchant-api-${environment}.liangkebang.net`, kdspOpApi: `https://sc-merchant-api-${environment}.liangkebang.net`,
......
...@@ -95,17 +95,20 @@ export async function getInfo() { ...@@ -95,17 +95,20 @@ export async function getInfo() {
} }
} }
// 身份证有效期处理 // 身份证有效期处理
const date = res.legalPersonPeriod.split('-') || []; let checkboxDisabled = false;
res.legalPersonStart = date[0] && moment(date[0]); if (res.legalPersonPeriod) {
res.legalPersonEnd = date[1] && date[1] !== '长期' ? moment(date[1]) : ''; const date = res.legalPersonPeriod.split('-') || [];
res.checked = date[1] && date[1] === '长期' ? ['长期'] : []; res.legalPersonStart = date[0] && moment(date[0]);
const checkboxDisabled = date[1] && date[1] === '长期'; res.legalPersonEnd = date[1] && date[1] !== '长期' ? moment(date[1]) : '';
res.checked = date[1] && date[1] === '长期' ? ['长期'] : [];
checkboxDisabled = date[1] && date[1] === '长期';
}
res.businessLicensePeriod = res.businessLicensePeriod && moment(res.businessLicensePeriod); res.businessLicensePeriod = res.businessLicensePeriod && moment(res.businessLicensePeriod);
const companyNamedis = !!res.companyName; const companyNamedis = !!res.companyName;
// 获取主营类目 // 获取主营类目
let categoryList = []; let categoryList = [];
if (res.productBusiness.length) { if (res.productBusiness?.length) {
const dataList = await apiCategoryList(res.productBusiness); const dataList = await apiCategoryList(res.productBusiness);
categoryList = dataList.data; categoryList = dataList.data;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment