@@ -51,11 +51,11 @@
// key: 'token',
// data: 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJDT0FDSDo4OSJ9.7DPbdHQIkhpCXE2Tf6eHkdl0Y69C6kbRwntVdKm4DXu1_LlP1ue_2t4LKW0CYLm-enBRzBvIxkgvYjZSoKhqSA'
// })
- if (!uni.getStorageSync('token')) {
+ /*if (!uni.getStorageSync('token')) {
uni.navigateTo({
url: '/pages/login/index'
});
- }
+ }*/
},
methods: {
// 跳转
@@ -74,6 +74,11 @@
}
onLoad() {
+ if (!uni.getStorageSync('token')) {
+ uni.navigateTo({
+ url: '/pages/login/index'
+ });
+ }
if (uni.getStorageSync('userData')) {
this.userData = uni.getStorageSync('userData')
@@ -83,7 +83,7 @@
</view>
</u-card>
- <view class="handle-fix-box">
+ <view class="handle-fix-box" v-if="classInfo.state==1">
<u-button type="warning" shape="circle" :ripple="true" :custom-style="customStyle" @click="goToSignForm">立即签到</u-button>
<u-action-sheet :list="uploadTypeList" v-model="uploadTypeShow" @click="selectUploadType"></u-action-sheet>
@@ -81,6 +81,11 @@
onShow() {
this.tabList.forEach((site, index) => {
site.isOver = false
site.pageIndex = 1