bug(custom): eCX-7464

This commit is contained in:
zhangjing1
2025-11-17 11:26:07 +08:00
parent 0830546cb7
commit 6df724cace
4 changed files with 13 additions and 15 deletions

16
.env
View File

@@ -1,16 +1,16 @@
APP_BASE_URL=https://{域名}/api/h5app/wxapp
APP_WEBSOCKET=wss://{域名}/ws
APP_COMPANY_ID={company_id}
APP_PLATFORM={version}
APP_CUSTOM_SERVER=https://{域名}
APP_BASE_URL=https://demo-ecshopx.ishopex.cn/api/h5app/wxapp
APP_WEBSOCKET=wss://demo-ecshopx.ishopex.cn/ws
APP_COMPANY_ID=38
APP_PLATFORM=standard
APP_CUSTOM_SERVER=https://ecshopx-h5.ex-sandbox.com/
APP_HOME_PAGE=/pages/index
APP_TRACK=youshu
APP_YOUSHU_TOKEN=bi281e87ab2424481a
APP_ID={小程序APPID}
APP_MAP_KEY={高德地图key}
APP_ID=wx1e25e45145b70faa
APP_MAP_KEY=PSPBZ-KQ5CW-CSGRF-ON2S4-K2HQJ-XEBQG
APP_MAP_NAME=oneX新零售门店定位
APP_IMAGE_CDN=https://b-img-cdn.yuanyuanke.cn/ecshopx-vshop
APP_DIANWU_URL=
APP_DIANWU_URL=https://demo-ecshopx-dianwu.shopex123.com
APP_MERCHANT_URL=
APP_ADAPAY=

View File

@@ -27,21 +27,22 @@ function SpCheckboxNew(props) {
checked = false,
label,
onChange = () => {},
disabled = false
disabled = false,
canCancel = false
} = props
const [isChecked, setChecked] = useState(checked)
const onChangeCheckbox = (e) => {
e.stopPropagation()
if (disabled) return
if (disabled || canCancel) return
setChecked(!isChecked)
onChange && onChange(!isChecked)
}
useEffect(() => {
setChecked(props.checked)
}, [])
}, [props.checked])
return (
<View

View File

@@ -467,10 +467,6 @@ const SpPage = memo(
>
<View className='sp-page__body-content'>
<context.Provider value={{}}>{props.children}</context.Provider>
<View className='sp-page__powered-by'>
<Text>Powered by</Text>
<SpImage src='powered-logo.png' width={120} />
</View>
</View>
</View>
)}

View File

@@ -101,6 +101,7 @@ const Settings = () => {
<View className='lang-item' key={`lang-item__${index}`}>
<SpCheckbox
checked={item.key == state.selectLang}
canCancel={item.key == state.selectLang}
onChange={(e) => {
setState((draft) => {
draft.selectLang = item.key