调整(客户页文案): 买家页只讲填什么,并修复深色背景下上传提示看不清

- 虎牙资料页去掉内部口径:删除「UID 只做资料留档,不参与绑定核验」「用于客服核对绑定是否正确」
  这类给买家看的专业说明,改为直接说填什么:
  顶部「请填写下面的资料,填好后继续登录。」、角色名「只填游戏角色名,不要带 UID 或区服。」、
  截图「截图里要能看到游戏名字和游戏 UID。」、UID 提示「例如 4212063544」。
  斗鱼页文案与规则不变(共享规则模块只被虎牙选用新文案)。
- 修复深色客户页里通用上传组件的提示文字是深灰/黑色、几乎看不见:
  在 .customer-auth-page 作用域内统一 image-upload 提示、拖拽层与「上传」字样的配色,
  后台与打手端不受影响。
- 测试同步:断言买家页不再出现内部核验措辞,改为断言新文案常量。
This commit is contained in:
yml
2026-12-02 12:22:27 +08:00
parent 7d7a996f7d
commit 8640e85c88
6 changed files with 53 additions and 16 deletions
@@ -44,6 +44,9 @@ import { formatAdminDateTime } from '@/utils/admin-time'
import {
CUSTOMER_SERVER_ZONE_OPTIONS,
GAME_ROLE_ID_PLACEHOLDER,
HUYA_PROFILE_INTRO,
HUYA_ROLE_NAME_HINT,
HUYA_SCREENSHOT_HINT,
getGameRoleIdIssue,
validateCustomerProfileSubmit,
} from '@/utils/customer-fulfillment-profile'
@@ -52,7 +55,7 @@ import {
resolveCustomerPlatformRedirect,
type CustomerFulfillmentPlatform,
} from '@/utils/customer-fulfillment-link'
import { GAME_ROLE_NAME_FORMAT_HINT, getGameRoleNameIssue } from '@/utils/game-role-name'
import { getGameRoleNameIssue } from '@/utils/game-role-name'
import { formatHuyaBindingDecisionMessage } from '@/utils/semi-auto-binding-decision'
import { runWeiboYidunChallenge } from '@/utils/weibo-yidun'
import HuyaChallengeModal from './HuyaChallengeModal'
@@ -1306,11 +1309,7 @@ export default function CustomerFulfillmentPage({
})
const huyaProfileForm = showHuyaProfileStage ? (
<div className="customer-auth-profile" id="customer-profile-form">
<p>
{profileComplete
? '修改资料后会重新核对平台角色;角色名、区服和平台信息一致后才能确认绑定。'
: '第一步:请填写区服、游戏角色 UID、角色名和游戏主页截图。UID 只做资料留档,不参与绑定核验。'}
</p>
<p>{profileComplete ? '改完资料后点保存,系统会重新核对。' : HUYA_PROFILE_INTRO}</p>
<div className="customer-profile-form">
<label className="customer-collect-label">
区服 <span>*</span>
@@ -1342,7 +1341,7 @@ export default function CustomerFulfillmentPage({
aria-live="polite"
>
{profileRoleIdIssue ? <ExclamationCircleOutlined aria-hidden="true" /> : null}
<span>{profileRoleIdIssue || '只能填写数字,例如 4212063544'}</span>
<span>{profileRoleIdIssue || '例如 4212063544'}</span>
</p>
<label className="customer-collect-label">
角色名 <span>*</span>
@@ -1362,7 +1361,7 @@ export default function CustomerFulfillmentPage({
aria-live="polite"
>
{profileRoleNameIssue ? <ExclamationCircleOutlined aria-hidden="true" /> : null}
<span>{profileRoleNameIssue || GAME_ROLE_NAME_FORMAT_HINT}</span>
<span>{profileRoleNameIssue || HUYA_ROLE_NAME_HINT}</span>
</p>
<label className="customer-collect-label">
游戏主页截图 <span>*</span>
@@ -1397,9 +1396,7 @@ export default function CustomerFulfillmentPage({
<span>示例:需能看到游戏名字和游戏 UID</span>
</div>
</div>
<p className="customer-field-help">
请上传游戏主页截图,需能看到游戏名字/昵称和游戏 UID(编号);用于客服核对绑定是否正确。
</p>
<p className="customer-field-help">{HUYA_SCREENSHOT_HINT}</p>
<Button
block
size="large"
@@ -249,6 +249,32 @@
margin-top: 2px;
}
/*
* 客户页整体是深色背景,而通用上传组件(styles/base.css)用的是浅色主题配色:
* 不覆盖会看到「点击或拖拽上传」这类提示是深灰/黑色,几乎看不见。
* 这里只收敛客户页作用域,后台与打手端不受影响。
*/
.customer-auth-page .image-upload-hint,
.customer-auth-page .image-upload-hint.ant-typography {
color: #94a3b8;
}
.customer-auth-page .image-upload-trigger {
color: #94a3b8;
}
.customer-auth-page .image-upload-drag-overlay {
background: rgba(15, 23, 42, 0.94);
}
.customer-auth-page .image-upload-drag-text {
color: #e2e8f0;
}
.customer-auth-page .image-upload-drag-subtext {
color: #94a3b8;
}
/* 格式不合法(例如 UID 非纯数字)用红字,混入资料用警示色。 */
.customer-field-help.is-error {
color: #f87171;
@@ -5,7 +5,15 @@ export const CUSTOMER_SERVER_ZONE_OPTIONS = ['苹果Q区', '苹果V区', '安卓
/** 游戏角色 UID 输入框提示,与后端 `semi_auto_profile_role_id_invalid` 口径一致。 */
export const GAME_ROLE_ID_PLACEHOLDER = '请输入游戏角色 UID,纯数字uid'
export const GAME_ROLE_ID_INVALID_HINT = '游戏角色 UID 只能填写纯数字(1-20 位)'
export const GAME_ROLE_ID_INVALID_HINT = '只能填写数字'
/**
* 客户页文案只讲「填什么」,不讲内部规则:
* 买家不需要知道 UID 是否参与绑定核验、也不需要知道我们怎么比对。
*/
export const HUYA_PROFILE_INTRO = '请填写下面的资料,填好后继续登录。'
export const HUYA_ROLE_NAME_HINT = '只填游戏角色名,不要带 UID 或区服。'
export const HUYA_SCREENSHOT_HINT = '截图里要能看到游戏名字和游戏 UID。'
/** 输入过程中的实时提示:为空不提示(提交时再统一拦截)。 */
export function getGameRoleIdIssue(value: string): string | null {