删除不用的图片,增加页面转发给朋友
This commit is contained in:
@@ -402,5 +402,22 @@ Page({
|
||||
title: `${service.title} - 专业陪诊服务`,
|
||||
path: `/pages/escort/itemdetail?id=${service.id}`
|
||||
}
|
||||
},
|
||||
|
||||
// 朋友圈只能分享当前页,服务 id 只能靠 query 带上;
|
||||
// 服务未加载完(service.id 为 null)时不带 query,落到默认项,避免拼出 id=null
|
||||
onShareTimeline() {
|
||||
const {
|
||||
service
|
||||
} = this.data
|
||||
if (!service.id) {
|
||||
return {
|
||||
title: '暖橙陪诊 · 专业陪诊服务'
|
||||
}
|
||||
}
|
||||
return {
|
||||
title: `${service.title} - 专业陪诊服务`,
|
||||
query: `id=${service.id}`
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user