优化功能

This commit is contained in:
wangxiaowei
2026-01-12 17:39:48 +08:00
parent d1560ab450
commit f5e77e997b
21 changed files with 498 additions and 98 deletions

View File

@ -182,20 +182,18 @@
const orderStatus = ref<string>('')
const list = ref<Array<any>>([]) // 茶室列表
const keywords = ref<string>('') // 搜索关键词
const canReset = ref<boolean>(false) // 避免onShow重复加载
onShow(() => {
if (canReset.value) {
list.value = []
getMescroll().resetUpScroll()
}
canReset.value = true
})
onLoad(async () => {
uni.$on('refreshTeaSpecialist', () => {
list.value = []
getMescroll().resetUpScroll()
})
})
onUnload(() => {
uni.$off('refreshTeaSpecialist')
})
// 茶室分享(仅页面右上角分享,无需按钮分享)
onShareAppMessage(() => {
return {