feat(semi-auto): 虎牙客户页登录→资料→绑定流程与返回上一步重置

This commit is contained in:
2026-11-17 20:40:12 +08:00
parent 5d0be12476
commit 23b8e4fdd3
21 changed files with 1455 additions and 558 deletions
+16 -1
View File
@@ -1,4 +1,4 @@
import { Suspense, lazy, useEffect } from 'react'
import { Suspense, lazy, useEffect, useLayoutEffect } from 'react'
import { Spin } from 'antd'
import {
BrowserRouter,
@@ -169,6 +169,21 @@ function OrderServiceApplication() {
function CustomerFulfillmentApplication() {
useClearStrayHash()
/**
* 客户履约页固定移动端:
* 全局 base.css 给 body 设了 min-width:320px,worker.css 又用 overflow-x:hidden
* 裁掉横向溢出。应用内浏览器/分屏/系统显示放大时,实际视口可能小于 320px,
* 页面右侧(输入框、商品值、提示文案)会被直接裁掉。
* 这里只给客户履约路由挂移动端根类,覆盖最小宽度,不影响后台与打手端。
*/
useLayoutEffect(() => {
document.documentElement.classList.add('customer-mobile-html')
document.body.classList.add('customer-mobile-body')
return () => {
document.documentElement.classList.remove('customer-mobile-html')
document.body.classList.remove('customer-mobile-body')
}
}, [])
// 非标准子路径也按首段路径绑定平台,避免 /c/.../extra 这类地址绕过严格绑定。
const prefix = window.location.pathname.split('/').filter(Boolean)[0]
const wildcardPlatform = prefix === 'c' ? 'huya' : prefix === 'd' ? 'weibo' : undefined