优化(斗鱼领取): 游戏主页截图改为游戏名字/UID核对并增加示例图

- 文案去掉斗鱼个人主页,改为游戏主页截图
- 提示需能看到游戏名字和游戏 UID
- 上传框右侧增加实例图片
- 调整移动端上传/示例布局
This commit is contained in:
yml
2026-11-25 00:16:31 +08:00
parent 0357020387
commit af38bbaddb
4 changed files with 86 additions and 16 deletions
@@ -917,7 +917,7 @@ export async function saveDouyuCustomerProfile(
})
}
if (!homepageScreenshotObjectKey) {
throw createHttpError('请上传斗鱼个人主页截图', {
throw createHttpError('请上传游戏主页截图', {
statusCode: 400,
errorCode: 'douyu_customer_homepage_screenshot_required',
})
Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

@@ -245,7 +245,7 @@ export default function DouyuFulfillmentPage() {
}
const screenshot = homepageScreenshot[0]
if (!screenshot?.objectKey) {
message.warning('请上传斗鱼个人主页截图')
message.warning('请上传游戏主页截图')
return
}
setSaving(true)
@@ -418,21 +418,36 @@ export default function DouyuFulfillmentPage() {
{roleNameIssue ? <ExclamationCircleOutlined aria-hidden="true" /> : null}
<span>{roleNameIssue || DOUYU_ROLE_NAME_FORMAT_HINT}</span>
</p>
<label className="customer-collect-label">斗鱼个人主页截图(必填)</label>
<ImageUpload
scene="douyu-homepage-screenshot"
scope="collect"
maxCount={1}
showPasteHint
value={homepageScreenshot}
onChange={setHomepageScreenshot}
uploader={async (file) => {
const response = await uploadDouyuHomepageScreenshot(orderNo, file)
return response.data.file
}}
/>
<label className="customer-collect-label">游戏主页截图(必填)</label>
<div className="customer-douyu-screenshot-row">
<div className="customer-douyu-screenshot-upload">
<ImageUpload
scene="douyu-homepage-screenshot"
scope="collect"
maxCount={1}
showPasteHint
value={homepageScreenshot}
onChange={setHomepageScreenshot}
uploader={async (file) => {
const response = await uploadDouyuHomepageScreenshot(orderNo, file)
return response.data.file
}}
/>
</div>
<div className="customer-douyu-screenshot-example">
<Image
src="/images/game-home-example.webp"
alt="游戏主页截图示例"
width={150}
height={140}
style={{ objectFit: 'cover', borderRadius: 8, border: '1px solid #334155' }}
/>
<span>示例:需能看到游戏名字和游戏 UID</span>
</div>
</div>
<p className="customer-douyu-role-name-help">
请上传斗鱼个人主页截图,需能看到昵称和角色信息;用于客服核对绑定是否正确。
请上传游戏主页截图,需能看到游戏名字/昵称和游戏
UID(编号);用于客服核对绑定是否正确。
</p>
<div className="customer-douyu-submit-bar">
<Button
@@ -645,3 +645,58 @@
-webkit-overflow-scrolling: touch;
}
}
.customer-douyu-screenshot-row {
display: flex;
align-items: flex-start;
gap: 14px;
min-width: 0;
}
.customer-douyu-screenshot-upload {
flex: 0 0 150px;
min-width: 0;
}
.customer-douyu-screenshot-upload .ant-upload-select,
.customer-douyu-screenshot-upload .ant-upload-list-item-container {
width: 150px !important;
height: 140px !important;
}
.customer-douyu-screenshot-example img {
width: 100% !important;
height: 100% !important;
object-fit: cover;
}
.customer-douyu-screenshot-example {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
color: #94a3b8;
font-size: 12px;
line-height: 1.45;
}
@media (max-width: 480px) {
.customer-douyu-screenshot-row {
gap: 10px;
}
.customer-douyu-screenshot-upload {
flex-basis: 126px;
}
.customer-douyu-screenshot-upload .ant-upload-select,
.customer-douyu-screenshot-upload .ant-upload-list-item-container {
width: 126px !important;
height: 118px !important;
}
.customer-douyu-screenshot-example .ant-image {
width: 126px !important;
height: 118px !important;
}
}