添加以下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

@ -12,8 +12,8 @@
<view class="home-bg w-[100%] sticky top-0 left-0 z-100">
<wd-navbar safeAreaInsetTop :bordered="false" custom-style="background-color: transparent !important;">
<template #left>
<view class="flex items-center">
<view class="mt-4rpx" @click="router.navigateBack()">
<view class="flex items-center" @click="List.handleBack">
<view class="mt-4rpx">
<wd-icon name="thin-arrow-left" size="30rpx" color="#121212"></wd-icon>
</view>
<view class="text-[#303133] text-36rpx ml-24rpx leading-48rpx">预约茶艺师</view>
@ -196,6 +196,13 @@
})
// 茶室分享(仅页面右上角分享,无需按钮分享)
onShareAppMessage(() => {
return {
title: '茶艺师列表',
path: `/bundle_b/pages/tea-specialist/list`,
}
})
const List = {
/**
@ -230,7 +237,6 @@
router.navigateTo(`/bundle_b/pages/tea-specialist/detail?id=${id}`)
},
/**
* 获取茶艺师等级
* @param value
@ -255,6 +261,15 @@
list.value = []
getMescroll().resetUpScroll()
},
/**
* 分享的页面没有栈所以需要switch方法跳转
*/
handleBack: () => {
router.navigateBack().catch(err => {
router.switchTab('/pages/index/index')
})
}
}
</script>