fix(diy-card): 修复 merge 拼接残留的多余闭合括号 — detailBtnStyle/emptyBtnStyle 掉出 computed

684 行多余 '},' 使 computed 对象提前闭合, detailBtnStyle/emptyBtnStyle 成为
根级孤儿键(Vue 静默忽略) → 发名片大按钮无主题色背景、空态按钮无样式,
控制台警告 Property or method "detailBtnStyle" is not defined。

发现途径: H5 实测(8080 diy 2699 页) console 捕获, 修复后警告清零。
验证: 名片 7 套件全绿
This commit is contained in:
2026-10-24 12:02:24 +08:00
parent bd691d2d30
commit 4b99bcdd7e

View File

@@ -681,7 +681,6 @@ export default {
rowsClearStyle() {
return this.actsAbove ? {} : this.cornerClearStyle;
},
},
detailBtnStyle() {
// 发送名片大按钮: 纯色主题实心(2026-10-22 参考图定稿, 不再用渐变);
// 高度 104rpx(用户反馈: 比触达标准 80rpx 加高一档, 参考图观感)
@@ -700,7 +699,8 @@ export default {
padding: '0 ' + px2rpx(CardTokens.space.xxl) + 'rpx',
});
},
},
methods: {
// 模板无法访问模块导入, 需挂到实例(list.vue 同款写法); 头像缺图时显示姓氏首字
initialOf,