feat(card): 名片区块流与基础信息补齐(2.22/2.23) + 分享带名片ID

- 组件支持六个「可独立成块」模块任意排序(区块流): 资料行/快捷操作/社交/二维码/
  标签来源的位置可调, 头部恒最上、发名片恒最下; 二维码位置档位归并为 flow。
- 补齐「名片基础信息」遗漏字段: 简介区块、社交区块、名片附加信息(过期遮罩/
  地址细分/来源), 并与 wap 端展示口径对齐。
- 小程序分享给游客时携带名片 ID: 分享 path 追加 card_id, 访客打开「我的名片」
  即看到分享者那张卡。新增 common/js/card-share.js 统一处理「取卡ID / 拼参数」
  (dataset 通道 + storage 通道兜底, 朋友圈场景靠 storage)。
This commit is contained in:
2026-10-28 16:37:12 +08:00
parent 66aa66d2c1
commit 5e6eec166a
14 changed files with 1245 additions and 99 deletions

View File

@@ -179,7 +179,7 @@ export default {
this.loading = true;
this.$api.sendRequest({
url: '/card/api/diy/card',
data: { card_id: cardId },
data: { card_id: cardId, lang: uni.getStorageSync('lang') || 'zh-cn' },
success: res => {
this.loading = false;
this.card = (res.code == 0 && res.data && res.data.card) ? res.data.card : null;