Commit c1a6062c by Lin

refactor(CarBrands, HomeFrame): 清理和优化组件代码

- 移除 CarBrands 组件中的冗余显示信息,简化界面
- 在 HomeFrame 组件中更新 props 定义,添加默认值以增强功能
- 优化代码结构,提高可读性和维护性
1 parent 0cf26e43
...@@ -7,11 +7,7 @@ ...@@ -7,11 +7,7 @@
:title="currentView == 'brand' ? '请选择车品牌' : '请选择车系'" :title="currentView == 'brand' ? '请选择车品牌' : '请选择车系'"
:z-index="dynamicZIndex" :z-index="dynamicZIndex"
@close="handleMessageBoxClose"> @close="handleMessageBoxClose">
currentView是: {{currentView}} <scroll-view class="select-box">
<scroll-view class="select-box"
:show-scrollbar="false"
:style="{ maxHeight: windowHeight * 0.6 + 'px' }">
currentView: {{currentView}}
<!-- 品牌列表 --> <!-- 品牌列表 -->
<view v-show="currentView == 'brand'" class="view-content"> <view v-show="currentView == 'brand'" class="view-content">
<template v-for="(item, index) in carBrandList" <template v-for="(item, index) in carBrandList"
......
...@@ -91,7 +91,7 @@ import ProductIntroSwiper from "./ProductIntroSwiper.uvue"; ...@@ -91,7 +91,7 @@ import ProductIntroSwiper from "./ProductIntroSwiper.uvue";
import { getLandscapeConfig } from "./styles/landscape.uts"; import { getLandscapeConfig } from "./styles/landscape.uts";
import { getPortraitConfig } from "./styles/portrait.uts"; import { getPortraitConfig } from "./styles/portrait.uts";
const props = defineProps<{ const props = withDefaults(defineProps<{
showFooter?: boolean showFooter?: boolean
swiperCustom?: boolean swiperCustom?: boolean
/** 产品介绍区:与 swiperCustom 配套,由页面传入列表与文案 */ /** 产品介绍区:与 swiperCustom 配套,由页面传入列表与文案 */
...@@ -106,7 +106,9 @@ const props = defineProps<{ ...@@ -106,7 +106,9 @@ const props = defineProps<{
showStartReception?: boolean showStartReception?: boolean
/** 展业工具区块标题,默认「展业工具」 */ /** 展业工具区块标题,默认「展业工具」 */
toolBoxTitle?: string toolBoxTitle?: string
}>(); }>(), {
showStartReception: true,
});
const emit = defineEmits<{ const emit = defineEmits<{
start: [] start: []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!