Commit c1a6062c by Lin

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

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