From 4303a932789feae8590c5a2065fceb0eca4d5f18 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Sat, 8 Aug 2026 10:35:12 +0800 Subject: [PATCH] =?UTF-8?q?style(diy-recommend-code):=20card=20=E9=A2=84?= =?UTF-8?q?=E8=AE=BE=E5=90=8C=E6=AD=A5=E9=87=87=E7=94=A8=20100%=20?= =?UTF-8?q?=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 card 预设的"立即分享"按钮之前是 inline-block + padding 自适应宽度, 与其他预设不一致。改为和 gradient / minimal 预设一致的"双层结构": - 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:#FFFFFF; border:2rpx solid #FF6B6B; border-radius:38rpx; text-align:center; - view path (H5): 外层 view: margin-top:16rpx; width:100%; 内层 view: display:block; width:100%; height:76rpx; 同上样式 card 风格保持"白底红边框"设计,不读 diyData.buttonBgColor。 效果: - 按钮 100% 卡片宽,与 gradient / minimal 一致 - 小程序 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 de8ebca..1bbea6c 100644 --- a/components-diy/diy-recommend-code.vue +++ b/components-diy/diy-recommend-code.vue @@ -238,13 +238,13 @@ - - - + + 📤 {{ nc.buttonText || '立即分享' }}