From e66c91acfc6ff2a5fd3b96d57469703c4fe10a37 Mon Sep 17 00:00:00 2001 From: jing <1683105490@qq.com> Date: Thu, 17 Sep 2026 15:09:42 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E3=80=90=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E3=80=91=E7=9A=84=E6=A0=B7=E5=BC=8F=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E2=80=9C=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E2=80=9D=E5=8F=AF=E4=BB=A5=E6=8E=A7=E5=88=B6=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E7=9A=84"=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2"?= =?UTF-8?q?=E5=92=8C=E6=90=9C=E7=B4=A2=E6=A1=86=E7=9A=84=E2=80=9C=E4=B8=8A?= =?UTF-8?q?=E4=B8=8B=E5=B7=A6=E5=8F=B3=E8=BE=B9=E8=B7=9D=E2=80=9D=E7=9A=84?= =?UTF-8?q?=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local.config.js | 2 +- components-diy/diy-group.vue | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.local.config.js b/.local.config.js index dad5c42..40d9ad4 100644 --- a/.local.config.js +++ b/.local.config.js @@ -243,7 +243,7 @@ const localDevConfig = ({ // })['local-11']; // 选择要使用的环境配置 // })['2811']; // 本地 //})['5g-317']; // 电磁兼容 -})['192.168.8.118-1']; // +})['5g-312']; // // })['local-2']; // 本地 // })['local-11']; // 本地 // })['1-test']; // test diff --git a/components-diy/diy-group.vue b/components-diy/diy-group.vue index 4169969..69d5880 100644 --- a/components-diy/diy-group.vue +++ b/components-diy/diy-group.vue @@ -377,7 +377,13 @@ export default { : index + 1; if (newItem.componentName !== 'Search' || newItem.positionWay !== 'fixed') { - newItem.pageStyle = `background-color:${newItem.pageBgColor};`; + // PR-DIY-SEARCH-MARGIN-COLOR (2026-09-17): 搜索组件的上下左右边距区域颜色 + // 与搜索框背景色(componentBgColor, 后台自定义)保持一致, 使边距和搜索框融为一体; + // 兼容旧数据: 未配置 componentBgColor 时回退 pageBgColor。其余组件仍用 pageBgColor。 + const wrapBgColor = (newItem.componentName === 'Search' && newItem.componentBgColor) + ? newItem.componentBgColor + : newItem.pageBgColor; + newItem.pageStyle = `background-color:${wrapBgColor};`; if (newItem.margin) { newItem.pageStyle += `padding-top:${newItem.margin.top * 2}rpx;`;