添加以下4个页面的内容分享
1. 首页 2. 包间列表 3. 茶艺师列表 4. 茶艺师详情
This commit is contained in:
@ -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: '', // 记录菜单类型
|
||||
|
||||
|
||||
Reference in New Issue
Block a user