|
@@ -178,8 +178,28 @@
|
|
|
this.loadData()
|
|
|
var userInfo = uni.getStorageSync("userInfo")
|
|
|
var that = this
|
|
|
-
|
|
|
+ this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
|
|
|
+ console.log("checkSession",res)
|
|
|
+ if (res.data.data == "INVALID") {
|
|
|
+ uni.showModal({
|
|
|
+ title: '登录提示',
|
|
|
+ content: 'Session过期需要重新登录,是否立即登录?',
|
|
|
+ showCancel: true,
|
|
|
+ confirmText: '登录',
|
|
|
+ success: (e) => {
|
|
|
+ if (e.confirm) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/public/login'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: () => {},
|
|
|
+ complete: () => {}
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
this.$api.doRequest('get', '/notice/query/noticeNumber').then(res => {
|
|
|
+ console.log("noticeNumber",res)
|
|
|
if (res.data.data) {
|
|
|
let name = 'myTip';
|
|
|
let value = res.data.data.task;
|
|
@@ -223,26 +243,7 @@
|
|
|
that.statusBarHeight += res.statusBarHeight + "px"; //这就是状态栏的高度
|
|
|
},
|
|
|
});
|
|
|
- this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
|
|
|
- console.log("checkSession",res)
|
|
|
- if (res.data.data == "INVALID") {
|
|
|
- uni.showModal({
|
|
|
- title: '登录提示',
|
|
|
- content: 'Session过期需要重新登录,是否立即登录?',
|
|
|
- showCancel: true,
|
|
|
- confirmText: '登录',
|
|
|
- success: (e) => {
|
|
|
- if (e.confirm) {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/public/login'
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- fail: () => {},
|
|
|
- complete: () => {}
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+
|
|
|
var infoList = [];
|
|
|
uni.request({
|
|
|
url: "https://hq.sinajs.cn/list=C0,C2109,C2111,C2201,C2203,C2205,C2207,A0,A2109,A2111,A2201,A2203,A2205,A2207",
|