From d0fe005c4a364247d6b7454513851f0ee0787f83 Mon Sep 17 00:00:00 2001
From: ZF sun <34314687@qq.com>
Date: Wed, 21 Oct 2026 09:13:56 +0800
Subject: [PATCH] =?UTF-8?q?diy:=20=E5=90=8D=E7=89=87=20DIY=20=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E5=8E=9F=E7=94=9F=E6=B8=B2=E6=9F=93(=E7=A6=81=20webvi?=
=?UTF-8?q?ew)=20+=20diy-group=20=E5=88=86=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增 diy-card-entry/list/show/self.vue(easycom 自动加载):
头像/资料行/快捷操作原生渲染, tel 走 makePhoneCall,
wx/mail/web 走复制, 点击卡片跳 pages_tool/card/detail
- diy-card-self 登录态自适应: hasToken watch 自动刷新,
未登录兜底(企业卡/指定卡/登录引导)由后端 /card/api/diy/mycard 决定
- diy-group.vue: DiyCard* 四个 componentName 分发分支
---
components-diy/diy-card-entry.vue | 118 +++++++++++
components-diy/diy-card-list.vue | 230 ++++++++++++++++++++
components-diy/diy-card-self.vue | 335 ++++++++++++++++++++++++++++++
components-diy/diy-card-show.vue | 301 +++++++++++++++++++++++++++
components-diy/diy-group.vue | 16 ++
5 files changed, 1000 insertions(+)
create mode 100644 components-diy/diy-card-entry.vue
create mode 100644 components-diy/diy-card-list.vue
create mode 100644 components-diy/diy-card-self.vue
create mode 100644 components-diy/diy-card-show.vue
diff --git a/components-diy/diy-card-entry.vue b/components-diy/diy-card-entry.vue
new file mode 100644
index 0000000..f245386
--- /dev/null
+++ b/components-diy/diy-card-entry.vue
@@ -0,0 +1,118 @@
+
+
+
+ {{ value.title || '扫名片 · 谈合作' }}
+ {{ value.subtitle }}
+
+
+ {{ value.btnText }}
+
+
+
+
+
+
+
diff --git a/components-diy/diy-card-list.vue b/components-diy/diy-card-list.vue
new file mode 100644
index 0000000..c0bdafc
--- /dev/null
+++ b/components-diy/diy-card-list.vue
@@ -0,0 +1,230 @@
+
+
+
+ {{ value.title }}
+
+
+
+
+
+ {{ (item.name || '名').substring(0, 1) }}
+
+
+ {{ item.name || '未命名名片' }}
+ {{ infoLine(item) }}
+
+ ›
+
+
+
+
+ {{ emptyTip }}
+
+
+
+
+
+
+
+
diff --git a/components-diy/diy-card-self.vue b/components-diy/diy-card-self.vue
new file mode 100644
index 0000000..65e842b
--- /dev/null
+++ b/components-diy/diy-card-self.vue
@@ -0,0 +1,335 @@
+
+
+
+
+ {{ value.loginTip || '登录后这里展示我的名片' }}
+
+ {{ value.loginBtnText || '去登录' }}
+
+
+
+
+
+
+ 我的名片
+
+
+
+
+
+ {{ (card.name || '名').substring(0, 1) }}
+
+
+ {{ card.name || '未命名名片' }}
+ {{ subLine }}
+
+
+
+
+
+ {{ act.label }}
+
+
+
+
+ {{ value.detailBtnText || '查看完整名片' }}
+
+
+
+
+
+ 登录后即可展示我的名片
+
+
+
+
+
+
+
diff --git a/components-diy/diy-card-show.vue b/components-diy/diy-card-show.vue
new file mode 100644
index 0000000..a1daaa7
--- /dev/null
+++ b/components-diy/diy-card-show.vue
@@ -0,0 +1,301 @@
+
+
+
+
+
+
+ {{ (card.name || '名').substring(0, 1) }}
+
+
+ {{ card.name || '未命名名片' }}
+ {{ subLine }}
+
+
+
+
+
+ {{ row.label }}
+ {{ row.value }}
+
+
+
+
+
+ {{ act.label }}
+
+
+
+
+ {{ value.detailBtnText || '查看完整名片' }}
+
+
+
+
+ {{ emptyTip }}
+
+
+
+
+
+
+
diff --git a/components-diy/diy-group.vue b/components-diy/diy-group.vue
index b7ad12e..45ec870 100644
--- a/components-diy/diy-group.vue
+++ b/components-diy/diy-group.vue
@@ -170,6 +170,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+