添加以下4个页面的内容分享

1. 首页
2. 包间列表
3. 茶艺师列表
4. 茶艺师详情
This commit is contained in:
wangxiaowei
2026-01-08 02:30:57 +08:00
parent 40c2b0dd6c
commit 2b58bac9ac
7 changed files with 103 additions and 27 deletions

View File

@ -187,6 +187,7 @@
const tagColors = ['#40AE36', '#F55726']
onLoad((args) => {
console.log("🚀 ~ args:", args)
if (args.id) {
teaRoomId.value = Number(args.id)
storeType.value = Number(args.type) || StoreType.Direct
@ -198,6 +199,14 @@
Room.handleInit()
}
// 如果是从分享进入的未登录的情况下
uni.$on('refreshShareTeaRoomLists', (params) => {
uni.$off('refreshShareTeaRoomLists')
Room.handleInit()
list.value = []
getMescroll().resetUpScroll()
})
uni.$on('refreshTeaRoomDetail', () => {
list.value = []
getMescroll().resetUpScroll()
@ -205,10 +214,18 @@
})
onUnload(() => {
console.log("🚀 ~ 卸载refreshTeaRoomDetail事件:")
uni.$off('refreshShareTeaRoomLists')
uni.$off('refreshTeaRoomDetail')
})
// 茶室分享(仅页面右上角分享,无需按钮分享)
onShareAppMessage(() => {
return {
title: teaRoom.value.name || '茶室预约',
path: `/bundle/tea-room/room?id=${teaRoomId.value}&type=${storeType.value}`,
}
})
const Room = {
sheetMenuType: '', // 记录菜单类型