mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-13 06:35:41 +08:00
bug(分区):
This commit is contained in:
@@ -29,8 +29,10 @@ export default function WgtContentPartition(props) {
|
||||
const activeIndex = navList.findIndex((item) => item.isActive)
|
||||
if (activeIndex >= 0) {
|
||||
setCurrentIndex(activeIndex)
|
||||
setChildren(navList[activeIndex]?.children || [])
|
||||
} else {
|
||||
setCurrentIndex(0)
|
||||
setChildren(navList[0]?.children || [])
|
||||
}
|
||||
}, [navList])
|
||||
|
||||
|
||||
@@ -2,21 +2,16 @@
|
||||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||||
* See LICENSE file for license details.
|
||||
*/
|
||||
import React, { useState, useMemo, useEffect } from 'react'
|
||||
import React, { useMemo, useEffect } from 'react'
|
||||
import Taro, { getCurrentInstance } from '@tarojs/taro'
|
||||
import { View, Text } from '@tarojs/components'
|
||||
import { View } from '@tarojs/components'
|
||||
import {
|
||||
pxToUnitRpx,
|
||||
classNames,
|
||||
pickBy,
|
||||
isWeixin,
|
||||
showToast,
|
||||
getMobAppExtraData,
|
||||
styleNames
|
||||
} from '@/utils'
|
||||
showToast} from '@/utils'
|
||||
import { useImmer } from 'use-immer'
|
||||
import { SpHtml, SpLogin } from '@/components'
|
||||
import { useSelector } from 'react-redux'
|
||||
import { SpLogin } from '@/components'
|
||||
import api from '@/api'
|
||||
import doc from '@/doc'
|
||||
import { getGlobalBaseStyle } from '../helper'
|
||||
|
||||
@@ -198,8 +198,6 @@ export default function WgtLocationModule(props) {
|
||||
return totalHeight
|
||||
}, [base, immersive, navBarHeight])
|
||||
|
||||
// 打印计算结果(用于调试)
|
||||
console.log('LocationModuleNavBar 高度计算:', calculateNavBarHeight)
|
||||
|
||||
return (
|
||||
<View className={classNames('wgt wgt-location-module')} id={`wgt-location-module-${id || ''}`}>
|
||||
|
||||
Reference in New Issue
Block a user