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

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
+6
View File
@@ -75,5 +75,11 @@ Page({
title: '暖橙陪诊服务协议',
path: '/pages/escort/agreement'
}
},
onShareTimeline() {
return {
title: '暖橙陪诊服务协议'
}
}
})
+17
View File
@@ -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}`
}
}
})
+2
View File
@@ -580,6 +580,8 @@ Page({
})
},
// 本页含就诊人姓名 / 手机号 / 身份证号与订单号,转发卡片不指向本页,统一落到首页;
// 也不提供朋友圈分享——朋友圈只能分享当前页 URL,会把订单页地址带出去
onShareAppMessage() {
return {
title: '暖橙陪诊 - 专业陪诊服务',