|
@@ -100,14 +100,25 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- this.infoData = JSON.parse(decodeURIComponent(option.item));
|
|
|
- this.applyId = JSON.parse(decodeURIComponent(option.item)).applyId;
|
|
|
- this.laboratoryAppletGetApplyDetails();
|
|
|
- //修改页面title
|
|
|
- uni.setNavigationBarTitle({
|
|
|
- title: this.infoData.auditStatus == 0 ? '待审核' : (this.infoData.auditStatus == 1 ? '未通过' : (this
|
|
|
- .infoData.auditStatus == 2 ? '已通过' : ''))
|
|
|
- });
|
|
|
+ let self = this;
|
|
|
+ if (!uni.getStorageSync('token')) {
|
|
|
+ uni.setStorageSync('manageCation', option.item)
|
|
|
+ uni.redirectTo({
|
|
|
+ url: '/pages/views/login/login',
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ if(uni.getStorageSync('manageCation')){
|
|
|
+ uni.removeStorageSync('manageCation');
|
|
|
+ }
|
|
|
+ this.infoData = JSON.parse(decodeURIComponent(option.item));
|
|
|
+ this.applyId = JSON.parse(decodeURIComponent(option.item)).applyId;
|
|
|
+ this.laboratoryAppletGetApplyDetails();
|
|
|
+ //修改页面title
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: this.infoData.auditStatus == 0 ? '待审核' : (this.infoData.auditStatus == 1 ? '未通过' : (this
|
|
|
+ .infoData.auditStatus == 2 ? '已通过' : ''))
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
onShow() {
|
|
|
|