feat(user): 合并切换开发者菜单并优化首页轮播图显示

- 用户菜单根据 isDeveloper 字段切换显示申请或进入开发者中心
- 已审核用户菜单高亮显示“进入开发者中心”
- 去除冗余开发者中心菜单条目,简化结构
- 重新设计开发者中心页面UI,统一门店中心风格
- 顶部展示开发者头像及昵称手机号信息
- 功能卡片展示“我的应用”、“API Key”和“我的工单”,异步加载数量角标
- 底部添加“开发者帮助与支持”入口,替代门店订阅消息卡片
- 未登录或非开发者状态显示相应空态及操作按钮
- 首页轮播图为空时不显示容器,功能入口自动上移,优化空状态体验
- 优化登录状态与权限校验逻辑,防止页面闪烁和无权限展示
This commit is contained in:
2026-07-23 18:39:49 +08:00
parent 226e223d96
commit 0713ad4cf7
3 changed files with 28 additions and 23 deletions

View File

@@ -280,9 +280,9 @@ const IndexPage: React.FC = () => {
)}
</View>
)}
{/* 轮播图 */}
<View className='mx-3 mt-2 rounded-lg overflow-hidden index-banner-wrap'>
{bannerSlides.length > 0 ? (
{/* 轮播图:有数据才显示,为空则不渲染 */}
{bannerSlides.length > 0 && (
<View className='mx-3 mt-2 rounded-lg overflow-hidden index-banner-wrap'>
<Swiper
autoplay
interval={3000}
@@ -302,12 +302,8 @@ const IndexPage: React.FC = () => {
</SwiperItem>
))}
</Swiper>
) : (
<View className='w-full bg-green-50 flex items-center justify-center' style={{ height: `${bannerHeight}px` }}>
<Text className='text-gray-400 text-sm'></Text>
</View>
)}
</View>
</View>
)}
{/* 功能入口网格 */}
<View className='mx-3 mt-3 p-3 bg-white rounded-lg'>