mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-14 17:41:45 +08:00
bug(custom): eCX-7264
This commit is contained in:
10
.env
10
.env
@@ -1,16 +1,16 @@
|
|||||||
APP_BASE_URL=https://demo-ecshopx.ishopex.cn/api/h5app/wxapp
|
APP_BASE_URL=https://demo-ecshopx.ishopex.cn/api/h5app/wxapp
|
||||||
APP_WEBSOCKET=wss://demo-ecshopx.ishopex.cn/ws
|
APP_WEBSOCKET=wss://demo-ecshopx.ishopex.cn/ws
|
||||||
APP_COMPANY_ID=38
|
APP_COMPANY_ID=5
|
||||||
APP_PLATFORM=standard
|
APP_PLATFORM=platform
|
||||||
APP_CUSTOM_SERVER=https://ecshopx-h5.ex-sandbox.com/
|
APP_CUSTOM_SERVER=https://ecshopx-h5.ex-sandbox.com/
|
||||||
APP_HOME_PAGE=/pages/index
|
APP_HOME_PAGE=/pages/index
|
||||||
APP_TRACK=youshu
|
APP_TRACK=youshu
|
||||||
APP_YOUSHU_TOKEN=bi281e87ab2424481a
|
APP_YOUSHU_TOKEN=bi281e87ab2424481a
|
||||||
APP_ID=wx1e25e45145b70faa
|
APP_ID=wxf7abee400d50e0d0
|
||||||
APP_MAP_KEY=PSPBZ-KQ5CW-CSGRF-ON2S4-K2HQJ-XEBQG
|
APP_MAP_KEY=1ccc1ebc947719886f0cd766d70241fe
|
||||||
APP_MAP_NAME=oneX新零售门店定位
|
APP_MAP_NAME=oneX新零售门店定位
|
||||||
APP_IMAGE_CDN=https://b-img-cdn.yuanyuanke.cn/ecshopx-vshop
|
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_MERCHANT_URL=
|
||||||
APP_ADAPAY=
|
APP_ADAPAY=
|
||||||
|
|
||||||
|
|||||||
22
src/app.js
22
src/app.js
@@ -147,6 +147,14 @@ function App({ children }) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const getSystemConfig = async () => {
|
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 {
|
const {
|
||||||
echat,
|
echat,
|
||||||
meiqia,
|
meiqia,
|
||||||
@@ -155,7 +163,7 @@ function App({ children }) {
|
|||||||
nostores_status = false,
|
nostores_status = false,
|
||||||
distributor_param_status = false,
|
distributor_param_status = false,
|
||||||
point_rule_name = '积分'
|
point_rule_name = '积分'
|
||||||
} = await api.shop.homeSetting()
|
} = homeRes
|
||||||
|
|
||||||
const {
|
const {
|
||||||
tab_bar,
|
tab_bar,
|
||||||
@@ -164,16 +172,10 @@ function App({ children }) {
|
|||||||
is_open_official_account: openOfficialAccount,
|
is_open_official_account: openOfficialAccount,
|
||||||
color_style: { primary, accent, marketing },
|
color_style: { primary, accent, marketing },
|
||||||
title // 商城应用名称
|
title // 商城应用名称
|
||||||
} = await api.shop.getAppBaseInfo()
|
} = appBaseRes
|
||||||
|
|
||||||
const priceSetting = await api.shop.getAppGoodsPriceSetting()
|
let entryStoreRules = []
|
||||||
|
if (VERSION_STANDARD && enterStoreRule) {
|
||||||
const appSettingInfo = await api.groupBy.getCompanySetting() // 获取小程序头像
|
|
||||||
|
|
||||||
let enterStoreRule = null,
|
|
||||||
entryStoreRules = []
|
|
||||||
if (VERSION_STANDARD) {
|
|
||||||
enterStoreRule = await api.shop.getStoreEnterRule()
|
|
||||||
entryStoreRules = Object.entries({
|
entryStoreRules = Object.entries({
|
||||||
distributor_code: enterStoreRule.distributor_code,
|
distributor_code: enterStoreRule.distributor_code,
|
||||||
shop_assistant: enterStoreRule.shop_assistant,
|
shop_assistant: enterStoreRule.shop_assistant,
|
||||||
|
|||||||
@@ -439,9 +439,8 @@ const SpPage = memo(
|
|||||||
{/* 没有页面自动义头部配置样式,自动生成自定义导航 */}
|
{/* 没有页面自动义头部配置样式,自动生成自定义导航 */}
|
||||||
{state.customNavigation && RenderCustomNavigation()}
|
{state.customNavigation && RenderCustomNavigation()}
|
||||||
|
|
||||||
{props.loading && <SpLoading />}
|
|
||||||
|
|
||||||
{!props.isDefault && !props.loading && (
|
{!props.isDefault && (
|
||||||
<View
|
<View
|
||||||
className='sp-page__body'
|
className='sp-page__body'
|
||||||
style={styleNames({
|
style={styleNames({
|
||||||
@@ -499,7 +498,6 @@ SpPage.defaultProps = {
|
|||||||
isDefault: false,
|
isDefault: false,
|
||||||
isSticky: false, // 是否粘性吸顶
|
isSticky: false, // 是否粘性吸顶
|
||||||
immersive: false, // 沉浸式导航
|
immersive: false, // 沉浸式导航
|
||||||
loading: false,
|
|
||||||
navbar: false,
|
navbar: false,
|
||||||
navigateMantle: false, // 页面向下滚动,沉浸式导航开启蒙层背景色
|
navigateMantle: false, // 页面向下滚动,沉浸式导航开启蒙层背景色
|
||||||
navigationLeftBlockWidthFull: false,
|
navigationLeftBlockWidthFull: false,
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ import {
|
|||||||
SpCouponPackage,
|
SpCouponPackage,
|
||||||
SpSkuSelect,
|
SpSkuSelect,
|
||||||
SpPrivacyModal,
|
SpPrivacyModal,
|
||||||
SpLogin
|
SpLogin,
|
||||||
|
SpLoading
|
||||||
} from '@/components'
|
} from '@/components'
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import {
|
import {
|
||||||
@@ -269,7 +270,6 @@ function Home() {
|
|||||||
pageConfig={pageData?.base || {}}
|
pageConfig={pageData?.base || {}}
|
||||||
renderFloat={wgts.length > 0 && <CompFloatMenu />}
|
renderFloat={wgts.length > 0 && <CompFloatMenu />}
|
||||||
renderFooter={<SpTabbar />}
|
renderFooter={<SpTabbar />}
|
||||||
loading={loading}
|
|
||||||
ref={pageRef}
|
ref={pageRef}
|
||||||
navigateMantle={navigateMantle}
|
navigateMantle={navigateMantle}
|
||||||
onReady={({ footerHeight }) => {
|
onReady={({ footerHeight }) => {
|
||||||
@@ -285,6 +285,7 @@ function Home() {
|
|||||||
scrollY
|
scrollY
|
||||||
onScroll={handleScroll}
|
onScroll={handleScroll}
|
||||||
>
|
>
|
||||||
|
{loading && <SpLoading />}
|
||||||
{isShowHomeHeader && (
|
{isShowHomeHeader && (
|
||||||
<WgtHomeHeader>{fixedTop && <SpSearch info={searchComp} />}</WgtHomeHeader>
|
<WgtHomeHeader>{fixedTop && <SpSearch info={searchComp} />}</WgtHomeHeader>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user