ccj 3 tahun lalu
induk
melakukan
4b4d018651
2 mengubah file dengan 40 tambahan dan 20 penghapusan
  1. 20 20
      pages/sale/information.vue
  2. 20 0
      pages/task/my_task.vue

+ 20 - 20
pages/sale/information.vue

@@ -219,26 +219,26 @@
 				});
 			}
 			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', '/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: () => {}
+					})
+				}
+			})
 			uni.getSystemInfo({
 				success: function(res) {
 					console.log("statusBarHeight", res.statusBarHeight)

+ 20 - 0
pages/task/my_task.vue

@@ -76,6 +76,26 @@
 			this.taskInfo=[]
 			this.getIndexBuyData()
 			this.pcUserInfo =  uni.getStorageSync("pcUserInfo")
+			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.warehouseInOutInfo.phone = this.userInfo.phone
 		},
 		onReachBottom() { //上拉触底函数