From 31f67c109bfdd556cf0ecf5ee72fa4cb28ad6e0d Mon Sep 17 00:00:00 2001 From: jing <1683105490@qq.com> Date: Thu, 22 Oct 2026 16:01:32 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E6=88=91=E7=9A=84=E5=90=8D?= =?UTF-8?q?=E7=89=87=E5=BF=AB=E6=8D=B7=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components-diy/diy-card-mini.vue | 44 ++++++++++++-------------------- components-diy/diy-card-self.vue | 37 +++++++++++++++++++++++++-- components-diy/diy-card-show.vue | 7 ++--- tests/diy-card-qr-style.test.js | 21 +++++++++++++++ 4 files changed, 77 insertions(+), 32 deletions(-) diff --git a/components-diy/diy-card-mini.vue b/components-diy/diy-card-mini.vue index 67a9019..775fc5d 100644 --- a/components-diy/diy-card-mini.vue +++ b/components-diy/diy-card-mini.vue @@ -23,7 +23,7 @@ - + @@ -84,11 +84,12 @@ {{ qrTip || '扫码查看完整名片' }} - + - {{ act.label }} + :style="actStyle" hover-class="btn-press" @tap.stop="onAct(act)"> + {{ act.label }} @@ -304,36 +305,20 @@ export default { return this.$util.objToStyle({ color: this.c.infoColor || CardTokens.color.textSub }); }, badgeStyle() { - return this.$util.objToStyle({ background: avatarBg(this.card) }); + // 企业徽标固定红底(参考图 2026-10-22 口径), 与头像底色解耦 + return this.$util.objToStyle({ background: '#FA5151' }); }, toggleStyle() { return this.$util.objToStyle({ color: (this.card && this.card.theme_color) || CardTokens.color.primary }); }, - actPrimaryStyle() { + actStyle() { + // 快捷芯片统一实心主题色(「打电话」同款); 尺寸/圆角由 .act-chip CSS 类控制 const theme = (this.card && this.card.theme_color) || CardTokens.color.primary; - return this.$util.objToStyle({ - background: theme, - height: px2rpx(CardTokens.touch.chipHeight) + 'rpx', - padding: '0 ' + px2rpx(CardTokens.space.xl) + 'rpx', - borderRadius: px2rpx(CardTokens.radius.pill) + 'rpx', - }); + return this.$util.objToStyle({ background: theme }); }, - actPrimaryTextStyle() { + actTextStyle() { return this.$util.objToStyle({ color: '#FFFFFF' }); }, - actGhostStyle() { - const theme = (this.card && this.card.theme_color) || CardTokens.color.primary; - return this.$util.objToStyle({ - background: 'transparent', - border: '2rpx solid ' + theme, - height: px2rpx(CardTokens.touch.chipHeight) + 'rpx', - padding: '0 ' + px2rpx(CardTokens.space.lg) + 'rpx', - borderRadius: px2rpx(CardTokens.radius.pill) + 'rpx', - }); - }, - actGhostTextStyle() { - return this.$util.objToStyle({ color: (this.card && this.card.theme_color) || CardTokens.color.primary }); - }, detailBtnStyle() { return this.$util.objToStyle({ background: themeGradient(this.card), @@ -574,10 +559,15 @@ export default { align-items: center; justify-content: center; box-sizing: border-box; + /* 小胶囊(2026-10-22 定稿): 显式给高/内距/圆角(内联只出背景色, 尺寸走本类); + 72rpx 触达标准, 按用户反馈放大一档 */ + height: 72rpx; + padding: 0 32rpx; margin: 0 16rpx 16rpx 0; + border-radius: 36rpx; .act-text { - font-size: 24rpx; + font-size: 26rpx; font-weight: 500; } } diff --git a/components-diy/diy-card-self.vue b/components-diy/diy-card-self.vue index d0539e3..63f452c 100644 --- a/components-diy/diy-card-self.vue +++ b/components-diy/diy-card-self.vue @@ -8,7 +8,8 @@ - + -