bug(custom): eCX-7264

This commit is contained in:
zhangjing1
2025-09-09 15:16:13 +08:00
parent c03d828cc2
commit 46625d6394
4 changed files with 21 additions and 20 deletions

10
.env
View File

@@ -1,16 +1,16 @@
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_COMPANY_ID=5
APP_PLATFORM=platform
APP_CUSTOM_SERVER=https://ecshopx-h5.ex-sandbox.com/
APP_HOME_PAGE=/pages/index
APP_TRACK=youshu
APP_YOUSHU_TOKEN=bi281e87ab2424481a
APP_ID=wx1e25e45145b70faa
APP_MAP_KEY=PSPBZ-KQ5CW-CSGRF-ON2S4-K2HQJ-XEBQG
APP_ID=wxf7abee400d50e0d0
APP_MAP_KEY=1ccc1ebc947719886f0cd766d70241fe
APP_MAP_NAME=oneX新零售门店定位
APP_IMAGE_CDN=https://b-img-cdn.yuanyuanke.cn/ecshopx-vshop
APP_DIANWU_URL=https://demo-ecshopx-dianwu.shopex123.com
APP_DIANWU_URL=
APP_MERCHANT_URL=
APP_ADAPAY=

View File

@@ -147,6 +147,14 @@ function App({ children }) {
})
const getSystemConfig = async () => {
const [homeRes, appBaseRes, priceSetting, appSettingInfo, enterStoreRule] = await Promise.all([
api.shop.homeSetting(),
api.shop.getAppBaseInfo(),
api.shop.getAppGoodsPriceSetting(),
api.groupBy.getCompanySetting(),
VERSION_STANDARD ? api.shop.getStoreEnterRule() : Promise.resolve(null)
])
const {
echat,
meiqia,
@@ -155,7 +163,7 @@ function App({ children }) {
nostores_status = false,
distributor_param_status = false,
point_rule_name = '积分'
} = await api.shop.homeSetting()
} = homeRes
const {
tab_bar,
@@ -164,16 +172,10 @@ function App({ children }) {
is_open_official_account: openOfficialAccount,
color_style: { primary, accent, marketing },
title // 商城应用名称
} = await api.shop.getAppBaseInfo()
} = appBaseRes
const priceSetting = await api.shop.getAppGoodsPriceSetting()
const appSettingInfo = await api.groupBy.getCompanySetting() // 获取小程序头像
let enterStoreRule = null,
entryStoreRules = []
if (VERSION_STANDARD) {
enterStoreRule = await api.shop.getStoreEnterRule()
let entryStoreRules = []
if (VERSION_STANDARD && enterStoreRule) {
entryStoreRules = Object.entries({
distributor_code: enterStoreRule.distributor_code,
shop_assistant: enterStoreRule.shop_assistant,

View File

@@ -439,9 +439,8 @@ const SpPage = memo(
{/* 没有页面自动义头部配置样式,自动生成自定义导航 */}
{state.customNavigation && RenderCustomNavigation()}
{props.loading && <SpLoading />}
{!props.isDefault && !props.loading && (
{!props.isDefault && (
<View
className='sp-page__body'
style={styleNames({
@@ -499,7 +498,6 @@ SpPage.defaultProps = {
isDefault: false,
isSticky: false, // 是否粘性吸顶
immersive: false, // 沉浸式导航
loading: false,
navbar: false,
navigateMantle: false, // 页面向下滚动,沉浸式导航开启蒙层背景色
navigationLeftBlockWidthFull: false,

View File

@@ -16,7 +16,8 @@ import {
SpCouponPackage,
SpSkuSelect,
SpPrivacyModal,
SpLogin
SpLogin,
SpLoading
} from '@/components'
import api from '@/api'
import {
@@ -269,7 +270,6 @@ function Home() {
pageConfig={pageData?.base || {}}
renderFloat={wgts.length > 0 && <CompFloatMenu />}
renderFooter={<SpTabbar />}
loading={loading}
ref={pageRef}
navigateMantle={navigateMantle}
onReady={({ footerHeight }) => {
@@ -285,6 +285,7 @@ function Home() {
scrollY
onScroll={handleScroll}
>
{loading && <SpLoading />}
{isShowHomeHeader && (
<WgtHomeHeader>{fixedTop && <SpSearch info={searchComp} />}</WgtHomeHeader>
)}