修改bug

This commit is contained in:
zhouyanli
2026-07-30 18:01:39 +08:00
parent 80ff7588b1
commit 8c0a713512
20 changed files with 223 additions and 134 deletions

View File

@@ -183,6 +183,7 @@
getBannarList,
getReloadUserInfo
} from "/pageSubPack/api/api.js"
import { requireLogin } from '@/common/checkLogin.js'
// 列表数据状态
@@ -199,19 +200,6 @@
const lastUserId = ref('')
const pageReady = ref(false)
// =======工具方法=======
const requireLogin = () => {
const token = uni.getStorageSync('token')
if (!token) {
uni.showToast({ title: '请先登录', icon: 'none' })
setTimeout(() => {
uni.navigateTo({ url: '/pageSubPack/loginSub/login?mode=pwd' })
}, 1000)
return false
}
return true
}
// =======方法=======
const formatDate = (date) => {
if (!date) return ''