美化了样式

This commit is contained in:
2025-08-15 00:36:04 +08:00
parent 5fc1378051
commit 1b4d3e310b
63 changed files with 2735 additions and 2411 deletions

View File

@ -22,11 +22,22 @@ Page({
*/
onLoad() {
let token = wx.getStorageSync('token')
if (token) {
wx.switchTab({
url: '/pages/course/homepage/homepage'
})
}
if (!token) return ;
wx.request({
url: baseUrl + '/userInfo/verify/token',
method: 'POST',
header: {
'Authorization': token
},
success: res => {
console.log(res.data)
if (res.data.code === 1) {
wx.switchTab({
url: '/pages/course/homepage/homepage'
})
}
}
})
},
/**