优化功能
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user