diff --git a/server/src/modules/survey/template/banner/index.json b/server/src/modules/survey/template/banner/index.json index 80a8f056..e1cd290d 100644 --- a/server/src/modules/survey/template/banner/index.json +++ b/server/src/modules/survey/template/banner/index.json @@ -1,12 +1,64 @@ { "temp": { "key": "default", - "name": "默认分类", + "name": "全部", "list": [{ "src": "/imgs/skin/17e06b7604a007e1d3e1453b9ddadc3c.webp", "title": "1" }] -}, + }, + "scenery": { + "key": "scenery", + "name": "风景", + "list": [{ + "src": "/imgs/skin/SyiLRcukyE1558430525760.webp", + "title": "1" + }, { + "src": "/imgs/skin/sqYig4AcWr1558430525663.webp", + "title": "2" + }, { + "src": "/imgs/skin/ElNeqJT2I21558430526165.webp", + "title": "3" + }, { + "src": "/imgs/skin/CxQkSU6AY21558430526163.webp", + "title": "4" + }, { + "src": "/imgs/skin/VTUwbp6vY61558430527320.webp", + "title": "5" + }, { + "src": "/imgs/skin/SHs0K703Yn1558430527218.webp", + "title": "6" + }, { + "src": "/imgs/skin/oVTedX9V4s1558430527671.webp", + "title": "7" + }] + }, + "business": { + "key": "business", + "name": "商务", + "list": [{ + "src": "/imgs/skin/3ABKqvDaVn1558514860472.webp", + "title": "1" + }, { + "src": "/imgs/skin/OewuaQmWoq1558514860285.webp", + "title": "2" + }, { + "src": "/imgs/skin/HuVqqtbFjs1558514860570.webp", + "title": "3" + }, { + "src": "/imgs/skin/icSlqsr0uZ1558514860875.webp", + "title": "4" + }, { + "src": "/imgs/skin/Qu9rg33wmq1558514861015.webp", + "title": "5" + }, { + "src": "/imgs/skin/145gBCRtNP1558514861211.webp", + "title": "6" + }, { + "src": "/imgs/skin/ykWLFV0QWj1558514861444.webp", + "title": "7" + }] + }, "activity": { "key": "activity", "name": "节日", @@ -41,32 +93,6 @@ "title": "7" }] }, - "scenery": { - "key": "scenery", - "name": "风景", - "list": [{ - "src": "/imgs/skin/SyiLRcukyE1558430525760.webp", - "title": "1" - }, { - "src": "/imgs/skin/sqYig4AcWr1558430525663.webp", - "title": "2" - }, { - "src": "/imgs/skin/ElNeqJT2I21558430526165.webp", - "title": "3" - }, { - "src": "/imgs/skin/CxQkSU6AY21558430526163.webp", - "title": "4" - }, { - "src": "/imgs/skin/VTUwbp6vY61558430527320.webp", - "title": "5" - }, { - "src": "/imgs/skin/SHs0K703Yn1558430527218.webp", - "title": "6" - }, { - "src": "/imgs/skin/oVTedX9V4s1558430527671.webp", - "title": "7" - }] - }, "transportation": { "key": "transportation", "name": "交通", @@ -119,32 +145,7 @@ "title": "7" }] }, - "business": { - "key": "business", - "name": "商务", - "list": [{ - "src": "/imgs/skin/3ABKqvDaVn1558514860472.webp", - "title": "1" - }, { - "src": "/imgs/skin/OewuaQmWoq1558514860285.webp", - "title": "2" - }, { - "src": "/imgs/skin/HuVqqtbFjs1558514860570.webp", - "title": "3" - }, { - "src": "/imgs/skin/icSlqsr0uZ1558514860875.webp", - "title": "4" - }, { - "src": "/imgs/skin/Qu9rg33wmq1558514861015.webp", - "title": "5" - }, { - "src": "/imgs/skin/145gBCRtNP1558514861211.webp", - "title": "6" - }, { - "src": "/imgs/skin/ykWLFV0QWj1558514861444.webp", - "title": "7" - }] - }, + "campus": { "key": "campus", "name": "校园", diff --git a/server/src/modules/survey/template/surveyTemplate/survey/normal.json b/server/src/modules/survey/template/surveyTemplate/survey/normal.json index ad7cfabd..4038eb28 100644 --- a/server/src/modules/survey/template/surveyTemplate/survey/normal.json +++ b/server/src/modules/survey/template/surveyTemplate/survey/normal.json @@ -124,9 +124,5 @@ "endTime": "2028-05-22 17:17:48", "tLimit": "0", "language": "chinese" - }, - "skinConf": { - "skinColor": "#4a4c5b", - "inputBgColor": "#ffffff" } } diff --git a/server/src/modules/survey/template/surveyTemplate/survey/nps.json b/server/src/modules/survey/template/surveyTemplate/survey/nps.json index 0cedd519..2618856d 100644 --- a/server/src/modules/survey/template/surveyTemplate/survey/nps.json +++ b/server/src/modules/survey/template/surveyTemplate/survey/nps.json @@ -13,10 +13,6 @@ "msg_9004": "提交失败!" } }, - "skinConf": { - "skinColor": "#4a4c5b", - "inputBgColor": "#ffffff" - }, "bannerConf": { "titleConfig": { "mainTitle": "
为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,期待您的参与
", diff --git a/server/src/modules/survey/template/surveyTemplate/survey/register.json b/server/src/modules/survey/template/surveyTemplate/survey/register.json index 853af1aa..d9562a0e 100644 --- a/server/src/modules/survey/template/surveyTemplate/survey/register.json +++ b/server/src/modules/survey/template/surveyTemplate/survey/register.json @@ -156,9 +156,5 @@ "endTime": "2028-05-22 17:17:48", "tLimit": "0", "language": "chinese" - }, - "skinConf": { - "skinColor": "#4a4c5b", - "inputBgColor": "#ffffff" } } diff --git a/server/src/modules/survey/template/surveyTemplate/survey/vote.json b/server/src/modules/survey/template/surveyTemplate/survey/vote.json index 293cf607..9c25ad76 100644 --- a/server/src/modules/survey/template/surveyTemplate/survey/vote.json +++ b/server/src/modules/survey/template/surveyTemplate/survey/vote.json @@ -143,9 +143,5 @@ "endTime": "2028-05-25 10:22:23", "tLimit": "0", "language": "chinese" - }, - "skinConf": { - "skinColor": "#4a4c5b", - "inputBgColor": "#ffffff" } } diff --git a/server/src/modules/survey/template/surveyTemplate/templateBase.json b/server/src/modules/survey/template/surveyTemplate/templateBase.json index 4ecea689..cc17b7f3 100644 --- a/server/src/modules/survey/template/surveyTemplate/templateBase.json +++ b/server/src/modules/survey/template/surveyTemplate/templateBase.json @@ -37,6 +37,15 @@ }, "skinConf": { "skinColor": "#4a4c5b", - "inputBgColor": "#ffffff" + "inputBgColor": "#ffffff", + "backgroundConf": { + "color": "#fff" + }, + "themeConf": { + "color": "#ffa600" + }, + "contentConf": { + "opacity": 100 + } } } diff --git a/web/src/management/config/setterConfig/bannerConfig.js b/web/src/management/config/setterConfig/bannerConfig.js index 0596fe9d..49c0d771 100644 --- a/web/src/management/config/setterConfig/bannerConfig.js +++ b/web/src/management/config/setterConfig/bannerConfig.js @@ -1,55 +1,41 @@ export default [ { - label: '头图配置(默认尺寸:750*260)', - type: 'Customed', - key: 'bannerConfig', - labelStyle: { - fontWeight: 'bold', - }, - content: [ - { - label: '顶部图片地址', - type: 'Input', - key: 'bannerConfig.bgImage', - direction: 'horizon', - }, - { - label: '顶部视频地址', - type: 'Input', - key: 'bannerConfig.videoLink', - direction: 'horizon', - }, - { - label: '视频海报地址', - type: 'Input', - key: 'bannerConfig.postImg', - direction: 'horizon', - }, - ], + label: '顶部图片地址', + type: 'Input', + key: 'bgImage', + inline: true, + direction: 'horizon', + labelStyle: { width: '120px' } }, { - label: '头图跳转', - type: 'Customed', - key: 'bannerConfig-Jump', - labelStyle: { - fontWeight: 'bold', + label: '顶部视频地址', + type: 'Input', + key: 'videoLink', + direction: 'horizon', + labelStyle: { width: '120px' } + }, + { + label: '视频海报地址', + type: 'Input', + key: 'postImg', + direction: 'horizon', + labelStyle: { width: '120px' } + }, + { + label: '图片支持点击', + type: 'CustomedSwitch', + direction: 'horizon', + labelStyle: { width: '120px' }, + key: 'bgImageAllowJump', + }, + { + label: '跳转链接', + type: 'Input', + direction: 'horizon', + labelStyle: { width: '120px' }, + key: 'bgImageJumpLink', + relyFunc: (data) => { + return !!data?.bgImageAllowJump; }, - content: [ - { - label: '图片支持点击', - type: 'CustomedSwitch', - direction: 'space_between', - key: 'bannerConfig.bgImageAllowJump', - }, - { - label: '跳转链接', - type: 'Input', - direction: 'horizon', - key: 'bannerConfig.bgImageJumpLink', - relyFunc: (data) => { - return !!data?.bannerConfig?.bgImageAllowJump; - }, - }, - ], }, ]; diff --git a/web/src/management/config/setterConfig/logoConfig.js b/web/src/management/config/setterConfig/logoConfig.js index 2fe8c0eb..94505b34 100644 --- a/web/src/management/config/setterConfig/logoConfig.js +++ b/web/src/management/config/setterConfig/logoConfig.js @@ -4,17 +4,15 @@ export default [ type: 'Input', key: 'logoImage', tip: '默认尺寸200px*50px', - labelStyle: { - fontWeight: 'bold', - }, + direction: 'horizon', + labelStyle: { width: '120px' } }, { label: 'Logo大小', type: 'InputPercent', key: 'logoImageWidth', tip: '填写宽度百分比,例如30%', - labelStyle: { - fontWeight: 'bold', - }, + direction: 'horizon', + labelStyle: { width: '120px' } }, ]; diff --git a/web/src/management/config/setterConfig/skinConfig.js b/web/src/management/config/setterConfig/skinConfig.js new file mode 100644 index 00000000..84b00601 --- /dev/null +++ b/web/src/management/config/setterConfig/skinConfig.js @@ -0,0 +1,46 @@ +import bannerConfig from "./bannerConfig" +import logoConfig from "./logoConfig" + +export default [ + { + name: '头图', + key: 'bannerConf.bannerConfig', + formConfigList: bannerConfig + }, + { + name: '背景', + key: 'skinConf.backgroundConf', + formConfigList: [{ + direction: 'space_between', + label: '背景颜色', + type: 'ColorPicker', + key: 'color', + }], + }, + { + name: '主题色', + key: 'skinConf.themeConf', + formConfigList: [{ + direction: 'space_between', + direction: 'space_between', + label: '全局应用', + type: 'ColorPicker', + key: 'color', + }], + }, + { + key: 'skinConf.contentConf', + name: '内容区域', + formConfigList: [{ + direction: 'space_between', + label: '内容透明度', + type: 'SliderSetter', + key: 'opacity', + }], + }, + { + name: '品牌logo', + key: 'bottomConf', + formConfigList: logoConfig + } +] \ No newline at end of file diff --git a/web/src/management/config/skinPresets.js b/web/src/management/config/skinPresets.js new file mode 100644 index 00000000..ad622e19 --- /dev/null +++ b/web/src/management/config/skinPresets.js @@ -0,0 +1,7 @@ + +export default { + 'default-1': { + 'skinConf.backgroundConf.color': '#90b4fa', + 'skinConf.themeConf.color': '#FAA600', + } +} \ No newline at end of file diff --git a/web/src/management/pages/edit/modules/questionModule/components/logo.vue b/web/src/management/pages/edit/components/logo.vue similarity index 89% rename from web/src/management/pages/edit/modules/questionModule/components/logo.vue rename to web/src/management/pages/edit/components/logo.vue index 393dd9f8..2fd94f74 100644 --- a/web/src/management/pages/edit/modules/questionModule/components/logo.vue +++ b/web/src/management/pages/edit/components/logo.vue @@ -3,7 +3,7 @@