diff --git a/pages.json b/pages.json index 380cfae..3d748c1 100644 --- a/pages.json +++ b/pages.json @@ -1482,6 +1482,18 @@ "navigationBarTextStyle": "white" } }, + { + "path": "card/exchange", + "style": { + "navigationBarTitleText": "名片交换请求" + } + }, + { + "path": "card/style", + "style": { + "navigationBarTitleText": "名片样式" + } + }, { "path": "card/edit", "style": { diff --git a/pages_tool/card/detail.vue b/pages_tool/card/detail.vue index 898225c..1e32fa7 100644 --- a/pages_tool/card/detail.vue +++ b/pages_tool/card/detail.vue @@ -56,7 +56,7 @@ - + @@ -74,10 +74,6 @@ 名片二维码 - - - 编辑名片 - @@ -358,14 +354,16 @@ export default { this.buildShareInfo(); this.showShare = true; }, - // 「名片样式」: 与分享二维码无关, 不再打开分享抽屉。 - // 样式选择页尚未开发, 先给占位提示; 后续实现后把这里换成跳转/弹层即可。 + // 「名片样式」: 进入样式选择页(名片模板 / 分享封面) onStyleTap() { - uni.showToast({ title: '名片样式功能开发中', icon: 'none' }); + const url = this.cardId + ? '/pages_tool/card/style?card_id=' + encodeURIComponent(this.cardId) + : '/pages_tool/card/style'; + uni.navigateTo({ url: url }); }, - // 「交换名片」提醒条: 静态占位, 接口就绪后替换数据源并接真实请求 + // 「交换名片」提醒条: 点右侧箭头/整条 → 进入交换请求列表页 goExchangeReq() { - uni.showToast({ title: '交换名片功能开发中', icon: 'none' }); + uni.navigateTo({ url: '/pages_tool/card/exchange' }); }, viewExchangeCard() { uni.showToast({ title: '查看对方名片(接口待接入)', icon: 'none' });