优化(斗鱼领取): 游戏主页截图改为游戏名字/UID核对并增加示例图
- 文案去掉斗鱼个人主页,改为游戏主页截图 - 提示需能看到游戏名字和游戏 UID - 上传框右侧增加实例图片 - 调整移动端上传/示例布局
This commit is contained in:
@@ -917,7 +917,7 @@ export async function saveDouyuCustomerProfile(
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (!homepageScreenshotObjectKey) {
|
if (!homepageScreenshotObjectKey) {
|
||||||
throw createHttpError('请上传斗鱼个人主页截图', {
|
throw createHttpError('请上传游戏主页截图', {
|
||||||
statusCode: 400,
|
statusCode: 400,
|
||||||
errorCode: 'douyu_customer_homepage_screenshot_required',
|
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]
|
const screenshot = homepageScreenshot[0]
|
||||||
if (!screenshot?.objectKey) {
|
if (!screenshot?.objectKey) {
|
||||||
message.warning('请上传斗鱼个人主页截图')
|
message.warning('请上传游戏主页截图')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
setSaving(true)
|
setSaving(true)
|
||||||
@@ -418,21 +418,36 @@ export default function DouyuFulfillmentPage() {
|
|||||||
{roleNameIssue ? <ExclamationCircleOutlined aria-hidden="true" /> : null}
|
{roleNameIssue ? <ExclamationCircleOutlined aria-hidden="true" /> : null}
|
||||||
<span>{roleNameIssue || DOUYU_ROLE_NAME_FORMAT_HINT}</span>
|
<span>{roleNameIssue || DOUYU_ROLE_NAME_FORMAT_HINT}</span>
|
||||||
</p>
|
</p>
|
||||||
<label className="customer-collect-label">斗鱼个人主页截图(必填)</label>
|
<label className="customer-collect-label">游戏主页截图(必填)</label>
|
||||||
<ImageUpload
|
<div className="customer-douyu-screenshot-row">
|
||||||
scene="douyu-homepage-screenshot"
|
<div className="customer-douyu-screenshot-upload">
|
||||||
scope="collect"
|
<ImageUpload
|
||||||
maxCount={1}
|
scene="douyu-homepage-screenshot"
|
||||||
showPasteHint
|
scope="collect"
|
||||||
value={homepageScreenshot}
|
maxCount={1}
|
||||||
onChange={setHomepageScreenshot}
|
showPasteHint
|
||||||
uploader={async (file) => {
|
value={homepageScreenshot}
|
||||||
const response = await uploadDouyuHomepageScreenshot(orderNo, file)
|
onChange={setHomepageScreenshot}
|
||||||
return response.data.file
|
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">
|
<p className="customer-douyu-role-name-help">
|
||||||
请上传斗鱼个人主页截图,需能看到昵称和角色信息;用于客服核对绑定是否正确。
|
请上传游戏主页截图,需能看到游戏名字/昵称和游戏
|
||||||
|
UID(编号);用于客服核对绑定是否正确。
|
||||||
</p>
|
</p>
|
||||||
<div className="customer-douyu-submit-bar">
|
<div className="customer-douyu-submit-bar">
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -645,3 +645,58 @@
|
|||||||
-webkit-overflow-scrolling: touch;
|
-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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user