H5 integration
YSystem provides H5 pages for hotel lists, hotel details, order lists, and order details. You can load these pages in a WebView in your app or mini program.
Domains
All H5 pages use one of the following domains:
- Development: https://dev-m-app.charmdeer.com
- Production: https://m-app.charmdeer.com
Routes and parameters
| Page | Route | Parameter | Value |
|---|---|---|---|
| Hotel home | /tphotel/index |
channel | Channel keyword |
| Hotel details | /tphotel/detail/${_id} |
channel | Channel keyword |
| Order list | /tphotel/orders |
channel | Channel keyword |
| type | Fixed value: my |
||
| Order details | /tphotel/orders/${_id} |
channel | Channel keyword |
| type | Fixed value: my |
User authentication
Pass the current user's ID to YSystem so that bookings can be associated with that user and shown when they return to YSystem.
See User authentication for the recommended authentication flow.