删除不用的图片,增加页面转发给朋友

This commit is contained in:
lik
2026-10-07 16:47:28 +08:00
parent 179b059250
commit 60a7c1fd56
18 changed files with 61 additions and 7 deletions
+19
View File
@@ -134,5 +134,24 @@ Page({
title: `暖橙陪诊 · ${attendant.name}`,
path: `/pages/attendant/attendantdetail?id=${attendant.id}`
}
},
// 朋友圈只能分享当前页,陪诊师 id 只能靠 query 带上;
// 详情还没回来(attendant 为 null)时不带 query,好友打开是列表页口径的空态
onShareTimeline() {
const {
attendant
} = this.data
if (!attendant) {
return {
title: '暖橙陪诊 · 陪诊师团队'
}
}
return {
title: `暖橙陪诊 · ${attendant.name}`,
query: `id=${attendant.id}`
}
}
})