From 12e4493a17457a355c466152bd122cb18b8466dd Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Sat, 8 Aug 2026 10:29:31 +0800 Subject: [PATCH] =?UTF-8?q?style(diy-recommend-code):=20minimal=20?= =?UTF-8?q?=E9=A2=84=E8=AE=BE=E5=90=8C=E6=AD=A5=E9=87=87=E7=94=A8=20100%?= =?UTF-8?q?=20=E5=AE=BD=20+=20=E5=B1=85=E4=B8=AD=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit minimal 预设的"立即分享"按钮之前是 inline-block + padding 自适应宽度, 与其他预设不一致。改为和 gradient 预设一致的"双层结构": - button path (小程序/APP): 外层 button: position:relative; left:0; right:0; margin:16rpx 0 0 0; width:100%; display:block; box-sizing:border-box; 内层 view: display:block; width:100%; height:76rpx; background:linear-gradient(90deg,#FF6B6B 0%,#FF4444 100%); border-radius:38rpx; box-shadow; text-align:center; - view path (H5): 外层 view: margin-top:16rpx; width:100%; 内层 view: display:block; width:100%; height:76rpx; 同上渐变样式 效果: - 按钮 100% 卡片宽,与 gradient 一致 - 小程序 button 默认偏移问题(position:relative + left:0 + right:0)同步修复 - 商家在 4 个预设下看到一致的全宽分享按钮布局 --- components-diy/diy-recommend-code.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components-diy/diy-recommend-code.vue b/components-diy/diy-recommend-code.vue index c3acfdd..de8ebca 100644 --- a/components-diy/diy-recommend-code.vue +++ b/components-diy/diy-recommend-code.vue @@ -183,13 +183,13 @@ - - - + + 📤 {{ nc.buttonText || '立即分享' }}