美化了样式
This commit is contained in:
@ -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'
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -2,12 +2,12 @@
|
||||
margin-top: 16.88rpx;
|
||||
}
|
||||
.page {
|
||||
padding: 255rpx 0 566.25rpx;
|
||||
padding: 255rpx 0 0;
|
||||
background-image: linear-gradient(180deg, #ffeed9 0%, #f5f5f500 125%);
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
height: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
.section {
|
||||
padding: 39.38rpx 52.5rpx 18.75rpx;
|
||||
|
Reference in New Issue
Block a user