From bc96141328c5f2a8b584813f2414731a27b47a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Thu, 17 Oct 2024 17:27:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=B4=E9=83=A8=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page-settings/page-setting.vue | 23 ++++++++++++++++--- src/config/const/header-nav.ts | 5 +++- src/store/modules/common.ts | 1 + 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/components/page-settings/page-setting.vue b/src/components/page-settings/page-setting.vue index 10665cee..38f5cae4 100644 --- a/src/components/page-settings/page-setting.vue +++ b/src/components/page-settings/page-setting.vue @@ -23,11 +23,19 @@ const props = defineProps({ }); const default_data = { content: { + title: !isEmpty(common_store.common.config.site_name) ? common_store.common.config.site_name : '新建页面', indicator_location: 'flex-start', logo: [], + data_alone_row_value: [], icon_setting: [ { id: get_math(), img: [], icon: 'applet-me-message-acquiesce', link: {} }, ], + is_location_left_icon_show: '1', + location_left_img: [], + location_left_icon: 'location', + is_location_right_icon_show: '1', + location_right_img: [], + location_right_icon: 'arrow-bottom', }, style: { header_background_type: 'color_image', @@ -38,16 +46,23 @@ const default_data = { header_background_title_color: '#333', header_background_title_typeface: '500', header_background_title_size: 14, + data_alone_row_space: 5, function_buttons_type: '0', immersive_style: '0', up_slide_display: '1', up_slide_background_color_list: [{ color: '#fff', color_percentage: undefined }], up_slide_background_direction: '180deg', + up_slide_background_img_style: '2', + up_slide_background_img: [], + left_back_btn_color: '#333', icon_color: '#ccc', button_inner_color: '#fff', - search_botton_color_list: [{ color: '#FF973D', color_percentage: undefined }, { color: '#FF3131', color_percentage: undefined }], + search_botton_color_list: [ + { color: '#FF973D', color_percentage: undefined }, + { color: '#FF3131', color_percentage: undefined }, + ], search_botton_direction: '90deg', - search_botton_background_img_style: '', + search_botton_background_img_style: '2', search_botton_background_img: [], search_button_radius: { radius: 16, @@ -56,10 +71,12 @@ const default_data = { radius_bottom_left: 16, radius_bottom_right: 16, }, + position_color: '#333', img_size: '23', img_space: '15', + img_color: '#666', tips_color: '#ccc', - hot_words_color: '#000', + hot_words_color: '#999', search_border: '#E4E4E4', search_bg_color: '#fff', search_border_radius: { diff --git a/src/config/const/header-nav.ts b/src/config/const/header-nav.ts index 64c6c528..e3939682 100644 --- a/src/config/const/header-nav.ts +++ b/src/config/const/header-nav.ts @@ -1,5 +1,8 @@ import { get_math } from '@/utils'; import defaultCommon from './index'; +import { isEmpty } from 'lodash'; +import { commonStore } from '@/store'; +const common_store = commonStore(); interface hot_word_list { id: string; value: string; @@ -77,7 +80,7 @@ const defaultFooterNav: DefaultFooterNav = { content: { theme: '1', logo: [], - title: '新建页面', + title: !isEmpty(common_store.common.config.site_name) ? common_store.common.config.site_name : '新建页面', link: {}, data_alone_row_value: [], indicator_location: 'center', diff --git a/src/store/modules/common.ts b/src/store/modules/common.ts index aa128112..8b1eef7f 100644 --- a/src/store/modules/common.ts +++ b/src/store/modules/common.ts @@ -27,6 +27,7 @@ export const commonStore = defineStore('common', () => { site_logo_app: '', site_logo_wap: '', site_logo: '', + site_name: '', } as any, // 基础数据配置参数 }); // 存储链接数据