From 838c44b223b450a6a0fde6520b42b2819e1bd562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Sat, 19 Oct 2024 16:20:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/const/seckill.ts | 2 ++ src/config/const/tabs-carousel.ts | 24 +++++++++++++++++++++--- src/config/const/title.ts | 19 ++++++++++++++++--- 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/src/config/const/seckill.ts b/src/config/const/seckill.ts index 5bc34374..27bd8730 100644 --- a/src/config/const/seckill.ts +++ b/src/config/const/seckill.ts @@ -176,6 +176,7 @@ const defaultSeckill: DefaultSeckill = { seckill_subscript_location: 'top-left', seckill_subscript_text_color: '#fff', seckill_subscript_bg_color: '#FF7607', + // 进度条设置,暂时隐藏 progress_bg_color: '#FFEDED', progress_actived_color_list: [ { color: '#FF3131', color_percentage: undefined }, @@ -185,6 +186,7 @@ const defaultSeckill: DefaultSeckill = { progress_button_color: '#FFDE81', progress_button_icon_color: '#FF2525', progress_text_color: '#FF3434', + // 轮播设置 is_roll: '1', interval_time: 3, rolling_fashion: 'translation', diff --git a/src/config/const/tabs-carousel.ts b/src/config/const/tabs-carousel.ts index 40ad811a..f1520c60 100644 --- a/src/config/const/tabs-carousel.ts +++ b/src/config/const/tabs-carousel.ts @@ -76,18 +76,25 @@ interface defaultTabs { } const defaultTabs: defaultTabs = { content: { + // 选项卡风格 tabs_theme: '0', + // 是否置顶 tabs_top_up: '1', + // 选项卡数据 home_data: { id: get_math(), title: '首页', desc: '简介', data_type: '0', classify: {}, micro_page: '', micro_page_list: {}, category_list: {} }, tabs_list: [ { id: get_math(), title: '热门推荐', desc: '简介', data_type: '0', classify: {}, micro_page: '', micro_page_list: {}, category_list: {} }, { id: get_math(), title: '测试一', desc: '简介', data_type: '0', classify: {}, micro_page: '', micro_page_list: {}, category_list: {} }, { id: get_math(), title: '测试二', desc: '简介', data_type: '0', classify: {}, micro_page: '', micro_page_list: {}, category_list: {} }, ], + // 轮播类型 carousel_type: 'inherit', + // 轮播图片方式 img_fit: 'contain', + // 轮播是否滚动 is_roll: '1', interval_time: 3, + // 轮播图片列表 carousel_list: [ { carousel_img: [], @@ -108,9 +115,11 @@ const defaultTabs: defaultTabs = { video_title: '视频名称', }, ], + // 轮播高度 height: 300, }, style: { + // 选项卡设置 tabs_one_theme: '0', tabs_checked: [ { color: '#FF2222', color_percentage: undefined }, @@ -124,17 +133,22 @@ const defaultTabs: defaultTabs = { tabs_size: 14, tabs_color: 'rgba(51,51,51,1)', tabs_spacing: 20, + // 更多设置 more_icon_class: 'fenlei-more', more_icon_color: '#000', more_icon_size: 14, + // 选项卡与轮播之间的间距 data_spacing: 10, + // 图片圆角 radius: 0, radius_top_left: 0, radius_top_right: 0, radius_bottom_left: 0, radius_bottom_right: 0, - is_show: '1', + // 图片间距 image_spacing: 10, + // 指示器设置 + is_show: '1', indicator_style: 'dot', indicator_location: 'center', indicator_size: 5, @@ -146,6 +160,9 @@ const defaultTabs: defaultTabs = { radius_bottom_left: 4, radius_bottom_right: 4, }, + actived_color: '#2A94FF', + color: '#DDDDDD', + // 轮播视频处理 video_is_show: '1', video_type: 'icon', video_radius: { @@ -167,12 +184,13 @@ const defaultTabs: defaultTabs = { video_icon_color: '#ff6868', video_location: 'center', video_bottom: 20, + // 视频标题设置 video_title_color: '#666', video_title_size: 12, + // 轮播视频背景 video_color_list: [{ color: '#F0F0F0', color_percentage: undefined }], video_direction: '180deg', - actived_color: '#2A94FF', - color: '#DDDDDD', + // 公共样式 common_style: { ...defaultCommon, padding: 10, diff --git a/src/config/const/title.ts b/src/config/const/title.ts index 80684056..aed8edea 100644 --- a/src/config/const/title.ts +++ b/src/config/const/title.ts @@ -40,16 +40,23 @@ interface defaultSearch { } const defaultSearch: defaultSearch = { content: { - title: '标题', - title_link: {}, + // 左侧图片或icon img_src: [], icon_class: '', + // 标题 + title: '标题', + title_link: {}, + // 副标题 subtitle: '', + // 内容居中 is_title_center: '0', - keyword_show: '1', + // 右侧内容设置 right_show: '1', right_title: '更多', right_link: {}, + // 是否显示关键字 + keyword_show: '1', + // 关键字数组 keyword_list: [ { id: get_math(), @@ -60,17 +67,23 @@ const defaultSearch: defaultSearch = { ], }, style: { + // 标题设置 title_color: '#000', title_size: 12, title_weight: 'normal', + // 图片高度 img_height: 30, + // icon 大小 icon_size: 12, icon_color: '#999', + // 副标题设置 subtitle_color: '#999', subtitle_size: 12, subtitle_weight: 'normal', + // 关键字设置 keyword_color: '#000', keyword_size: 12, + // 右侧更多按钮设置 right_color: '#999', right_size: 12, common_style: {