删除不用的图片,增加页面转发给朋友
This commit is contained in:
@@ -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}`
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user