|
@@ -277,26 +277,27 @@
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
- saveUrl();
|
|
|
|
|
|
|
+ // saveUrl();
|
|
|
// let token = uni.getStorageSync('token');
|
|
// let token = uni.getStorageSync('token');
|
|
|
console.log(11, this);
|
|
console.log(11, this);
|
|
|
if (!this.hasLogin) {
|
|
if (!this.hasLogin) {
|
|
|
// 登录拦截
|
|
// 登录拦截
|
|
|
- // interceptor();
|
|
|
|
|
- uni.showModal({
|
|
|
|
|
- title: '登录',
|
|
|
|
|
- content: '您未登录,是否马上登陆?',
|
|
|
|
|
- success: e => {
|
|
|
|
|
- if (e.confirm) {
|
|
|
|
|
- interceptor();
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- fail: e => {
|
|
|
|
|
- console.log(e);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ saveUrl();
|
|
|
|
|
+ interceptor();
|
|
|
|
|
+ // uni.showModal({
|
|
|
|
|
+ // title: '登录',
|
|
|
|
|
+ // content: '您未登录,是否马上登陆?',
|
|
|
|
|
+ // success: e => {
|
|
|
|
|
+ // if (e.confirm) {
|
|
|
|
|
+ // interceptor();
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ // fail: e => {
|
|
|
|
|
+ // console.log(e);
|
|
|
|
|
+ // }
|
|
|
|
|
+ // });
|
|
|
} else {
|
|
} else {
|
|
|
- this.loadData();
|
|
|
|
|
|
|
+ // this.loadData();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -332,7 +333,8 @@
|
|
|
},
|
|
},
|
|
|
fail(e) {
|
|
fail(e) {
|
|
|
console.log('失败', e);
|
|
console.log('失败', e);
|
|
|
- window.location.reload();
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // window.location.reload();
|
|
|
// obj.tishi()
|
|
// obj.tishi()
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -548,20 +550,20 @@
|
|
|
data
|
|
data
|
|
|
}) => {
|
|
}) => {
|
|
|
obj.carouselList = data.banner; //轮播图
|
|
obj.carouselList = data.banner; //轮播图
|
|
|
- bannerlist().then(({
|
|
|
|
|
- data
|
|
|
|
|
- }) => {
|
|
|
|
|
- console.log(data);
|
|
|
|
|
- obj.science = data;
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // bannerlist().then(({
|
|
|
|
|
+ // data
|
|
|
|
|
+ // }) => {
|
|
|
|
|
+ // console.log(data);
|
|
|
|
|
+ // obj.science = data;
|
|
|
|
|
+ // });
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
- if (obj.loadingType === 'noMore') {
|
|
|
|
|
- //防止重复加载
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- // 修改当前对象状态为加载中
|
|
|
|
|
- obj.loadingType = 'loading';
|
|
|
|
|
|
|
+ // if (obj.loadingType === 'noMore') {
|
|
|
|
|
+ // //防止重复加载
|
|
|
|
|
+ // return;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // // 修改当前对象状态为加载中
|
|
|
|
|
+ // obj.loadingType = 'loading';
|
|
|
getListAED({
|
|
getListAED({
|
|
|
page: 1,
|
|
page: 1,
|
|
|
limit: 2
|
|
limit: 2
|