Open the YSystem mini program
Open hotel details
Basic example
wx.navigateToMiniProgram({
appId,
path: 'pages/external/landing',
extraData: {
route: '/tphotel/detail',
hotel: {
_id: '5b21e0d642609f784c9936b2'
}
}
})
Include stay details
wx.navigateToMiniProgram({
appId,
path: 'pages/external/landing',
extraData: {
route: '/tphotel/detail',
hotel: {
_id: '5b21e0d642609f784c9936b2'
},
stay: {
date: {
checkIn: '2023-07-19',
checkOut: '2023-07-21'
}
}
}
})
Include authentication
const token = 't7W4BB9bswuw7eXrJiXVacQU'
wx.navigateToMiniProgram({
appId,
path: 'pages/external/landing',
extraData: {
route: '/tphotel/detail',
token,
hotel: {
_id: '5b21e0d642609f784c9936b2'
}
}
})