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

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
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 38 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

+19
View File
@@ -134,5 +134,24 @@ Page({
title: `暖橙陪诊 · ${attendant.name}`, title: `暖橙陪诊 · ${attendant.name}`,
path: `/pages/attendant/attendantdetail?id=${attendant.id}` 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}`
}
} }
}) })
+6
View File
@@ -75,5 +75,11 @@ Page({
title: '暖橙陪诊服务协议', title: '暖橙陪诊服务协议',
path: '/pages/escort/agreement' path: '/pages/escort/agreement'
} }
},
onShareTimeline() {
return {
title: '暖橙陪诊服务协议'
}
} }
}) })
+17
View File
@@ -402,5 +402,22 @@ Page({
title: `${service.title} - 专业陪诊服务`, title: `${service.title} - 专业陪诊服务`,
path: `/pages/escort/itemdetail?id=${service.id}` 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() { onShareAppMessage() {
return { return {
title: '暖橙陪诊 - 专业陪诊服务', title: '暖橙陪诊 - 专业陪诊服务',
+10
View File
@@ -232,5 +232,15 @@ Page({
saving: false saving: false
}) })
}) })
},
// 本页是就诊人档案表单(姓名 / 手机号 / 身份证号),转发卡片不指向本页,
// 统一落到首页,避免好友打开一个需要登录的空表单;
// 也不提供朋友圈分享——朋友圈只能分享当前页 URL,会把档案页地址带出去
onShareAppMessage() {
return {
title: '暖橙陪诊 · 专业陪诊服务',
path: '/pages/home/index'
}
} }
}) })
-7
View File
@@ -70,13 +70,6 @@ Page({
}, },
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
// 跳转「联系我们」页:本页不再平铺联系方式,四项内容与那一页重合, // 跳转「联系我们」页:本页不再平铺联系方式,四项内容与那一页重合,
// 且那一页每行还带「拨打」「复制」动作词,是更完整的一份 // 且那一页每行还带「拨打」「复制」动作词,是更完整的一份
goToContact() { goToContact() {
+7
View File
@@ -83,5 +83,12 @@ Page({
title: '暖橙陪诊 · 合作与入驻', title: '暖橙陪诊 · 合作与入驻',
path: '/pages/mine/business' path: '/pages/mine/business'
} }
},
// 朋友圈只能分享当前页,本页无需带入 ?section=,好友打开即为页首
onShareTimeline() {
return {
title: '暖橙陪诊 · 合作与入驻'
}
} }
}) })