From 9f06ee1cd95bf793ef5349386187fc36655933d5 Mon Sep 17 00:00:00 2001 From: nanguaboss <602995148@qq.com> Date: Mon, 10 Aug 2026 00:57:46 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.49:=20=E6=96=B0=E5=A2=9E/=E7=BB=A7?= =?UTF-8?q?=E7=BB=AD=E8=A1=A5=E5=85=A8=E5=BC=B9=E7=AA=97=E4=B8=A5=E6=A0=BC?= =?UTF-8?q?=E6=8C=89=E7=B1=BB=E5=9E=8B=E5=91=88=E7=8E=B0=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=20-=20=E4=BC=81=E4=B8=9A=E5=8F=AA=E6=98=BE=E7=A4=BA=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E7=9B=B8=E5=85=B3(=E5=90=8D=E7=A7=B0/=E8=A1=8C?= =?UTF-8?q?=E4=B8=9A/=E6=B3=A8=E5=86=8C=E5=8F=B7/=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B/=E5=9B=BD=E5=AE=B6/=E5=9C=B0=E5=9D=80/?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA/=E7=94=B5=E8=AF=9D=E9=82=AE?= =?UTF-8?q?=E7=AE=B1/=E7=A4=BE=E5=AA=92),=E4=BA=BA=E5=91=98=E5=8F=AA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BA=BA=E5=91=98=E7=9B=B8=E5=85=B3(?= =?UTF-8?q?=E5=A7=93=E5=90=8D/=E7=94=B5=E8=AF=9D=E9=82=AE=E7=AE=B1/?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=9C=B0/=E8=BA=AB=E4=BB=BD=E8=AF=81/?= =?UTF-8?q?=E7=A4=BE=E5=AA=92),=E4=BA=A7=E5=93=81/=E9=9C=80=E6=B1=82?= =?UTF-8?q?=E5=8F=AA=E6=98=BE=E7=A4=BA=E5=85=AC=E5=8F=B8=E5=90=8D+?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BF=A1=E6=81=AF,=E6=B7=B7=E5=90=88=3D?= =?UTF-8?q?=E5=90=8D=E7=A7=B0/=E5=A7=93=E5=90=8D/=E8=81=94=E7=B3=BB?= =?UTF-8?q?=E4=BF=A1=E6=81=AF;=E4=BF=AE=E5=A4=8D=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=AF=AF=E6=98=BE=E7=A4=BA=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E8=AF=81=E7=9A=84=E4=BD=8E=E7=BA=A7=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/config.js | 2 +- static/js/fragment.js | 49 +++++++++++++++++++++++-------------------- 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/static/js/config.js b/static/js/config.js index ca0f687..440fcf5 100644 --- a/static/js/config.js +++ b/static/js/config.js @@ -5,7 +5,7 @@ var BASE_URL = '/api/'; var PAGE_SIZE = 20; /** 系统版本号(logo旁展示):修改代码后运行 tools/bump_version.php 自动递增 */ -var APP_VERSION = 'v1.0.48'; +var APP_VERSION = 'v1.0.49'; /** 页脚版权/备案信息(在 config.js 中修改) */ var FOOTER_TEXT = '© 2026 SuperLink 管理系统 版权所有 | 备案号:请替换为真实备案号'; diff --git a/static/js/fragment.js b/static/js/fragment.js index 6fb4815..7592b58 100644 --- a/static/js/fragment.js +++ b/static/js/fragment.js @@ -244,26 +244,25 @@ $(function () { function syncFields() { var t = $('#ha-type').val(); - // 公司名称:除人员外都显示 - $('#ha-f-company_name').toggle(t !== 'person'); - // 姓名/联系人:人员与混合显示「姓名」,其它类型显示「联系人」 - $('#ha-f-person_name').toggle(true); - $('#ha-f-person_name label').text((t === 'person' || t === 'mixed') ? '姓名' : '联系人'); - // 企业专属:行业 / 注册号 / 业务类型 / 国家 / 地址 var isCompany = (t === 'company'); + var isPerson = (t === 'person'); + // 企业相关:名称/行业/注册号/业务类型/国家/地址 + $('#ha-f-company_name').toggle(t !== 'person'); $('#ha-f-industry').toggle(isCompany); $('#ha-f-regnum').toggle(isCompany); $('#ha-f-bizrole').toggle(isCompany); $('#ha-f-country').toggle(isCompany); $('#ha-f-address').toggle(isCompany); - // 人员专属:工作所在地 - $('#ha-f-workloc').toggle(t === 'person'); - // 身份证 / 社媒平台 / 账号 / 主页:企业与人员显示 - var showIdSocial = (t === 'company' || t === 'person'); - $('#ha-f-idnumber').toggle(showIdSocial); - $('#ha-f-platform').toggle(showIdSocial); - $('#ha-f-account').toggle(showIdSocial); - $('#ha-f-profile').toggle(showIdSocial); + // 人员相关:姓名/工作所在地/身份证号码 + $('#ha-f-person_name').toggle(true); + $('#ha-f-person_name label').text((isPerson || t === 'mixed') ? '姓名' : '联系人'); + $('#ha-f-workloc').toggle(isPerson); + $('#ha-f-idnumber').toggle(isPerson); + // 社媒联系方式:仅企业/人员 + var showSocial = (isCompany || isPerson); + $('#ha-f-platform').toggle(showSocial); + $('#ha-f-account').toggle(showSocial); + $('#ha-f-profile').toggle(showSocial); } $('#ha-type').on('change', syncFields); syncFields(); @@ -364,21 +363,25 @@ $(function () { function syncFields() { var t = $('#cv-type').val(); - $('#cv-f-company_name').toggle(t !== 'person'); - $('#cv-f-person_name').toggle(true); - $('#cv-f-person_name label').text((t === 'person' || t === 'mixed') ? '姓名' : '联系人'); var isCompany = (t === 'company'); + var isPerson = (t === 'person'); + // 企业相关:名称/行业/注册号/业务类型/国家/地址 + $('#cv-f-company_name').toggle(t !== 'person'); $('#cv-f-industry').toggle(isCompany); $('#cv-f-regnum').toggle(isCompany); $('#cv-f-bizrole').toggle(isCompany); $('#cv-f-country').toggle(isCompany); $('#cv-f-address').toggle(isCompany); - $('#cv-f-workloc').toggle(t === 'person'); - var showIdSocial = (t === 'company' || t === 'person'); - $('#cv-f-idnumber').toggle(showIdSocial); - $('#cv-f-platform').toggle(showIdSocial); - $('#cv-f-account').toggle(showIdSocial); - $('#cv-f-profile').toggle(showIdSocial); + // 人员相关:姓名/工作所在地/身份证号码 + $('#cv-f-person_name').toggle(true); + $('#cv-f-person_name label').text((isPerson || t === 'mixed') ? '姓名' : '联系人'); + $('#cv-f-workloc').toggle(isPerson); + $('#cv-f-idnumber').toggle(isPerson); + // 社媒联系方式:仅企业/人员 + var showSocial = (isCompany || isPerson); + $('#cv-f-platform').toggle(showSocial); + $('#cv-f-account').toggle(showSocial); + $('#cv-f-profile').toggle(showSocial); } $('#cv-type').on('change', syncFields); syncFields();