优化登录提示语,优化request错误返回提示语
This commit is contained in:
@@ -176,7 +176,14 @@ const narBack = () => {
|
||||
*/
|
||||
const switchTab = (tab) => {
|
||||
activeTab.value = tab
|
||||
resetAndLoad()
|
||||
if (tab === 'list') {
|
||||
resetAndLoad()
|
||||
} else {
|
||||
// 暂无审核功能,"我的活动"默认显示暂无数据
|
||||
displayedActivities.value = []
|
||||
hasMoreData.value = false
|
||||
currentPage.value = 1
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -185,7 +192,7 @@ const switchTab = (tab) => {
|
||||
*/
|
||||
const switchFilter = (filter) => {
|
||||
myFilter.value = filter
|
||||
resetAndLoad()
|
||||
// resetAndLoad()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -287,7 +294,9 @@ const viewActivityDetail = (activity) => {
|
||||
* 页面显示时刷新数据
|
||||
*/
|
||||
onShow(() => {
|
||||
getActivityListData(1) // 强制刷新第一页
|
||||
if (activeTab.value === 'list') {
|
||||
getActivityListData(1) // 强制刷新第一页
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -296,7 +305,7 @@ onShow(() => {
|
||||
onLoad(() => {
|
||||
// 监听详情页报名/取消报名后的刷新通知
|
||||
uni.$on('refreshActivityList', (data) => {
|
||||
console.log('收到活动列表刷新通知:', data)
|
||||
// console.log('收到活动列表刷新通知:', data)
|
||||
getActivityListData(1)
|
||||
})
|
||||
})
|
||||
@@ -312,9 +321,7 @@ onUnload(() => {
|
||||
* 监听我的活动筛选条件变化
|
||||
*/
|
||||
watch(() => myFilter.value, () => {
|
||||
if (activeTab.value === 'my') {
|
||||
resetAndLoad()
|
||||
}
|
||||
// 暂无审核功能,筛选条件暂不触发加载
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user