Forráskód Böngészése

Merge branch 'deploy' of http://git.chelingzhu.com/chelingzhu-web/qhsxKx-mini-html into deploy

lilei 4 éve
szülő
commit
543a439a74
3 módosított fájl, 1 hozzáadás és 4 törlés
  1. 0 1
      api/login.js
  2. 0 3
      pages/index/index.vue
  3. 1 0
      pages/login/login.vue

+ 0 - 1
api/login.js

@@ -19,7 +19,6 @@ export const logout = params => {
 // 验证是否登录过
 export const checkLogin = () => {
   let token = getApp().globalData.token
-  console.log(token,'token')
   if (token&&token!='') {
     return axios.request({
       url: `checkToken`,

+ 0 - 3
pages/index/index.vue

@@ -108,7 +108,6 @@
 			this.mapCtx = uni.createMapContext('map')
 		},
 		onShow() {
-			console.log(1111)
 			this.checkLogin()
 		},
 		onLoad() {
@@ -118,7 +117,6 @@
 			// 检验登录token是否过期
 			checkLogin () {
 				checkLogin().then(res =>{
-					console.log(res,'11111111111')
 					if (res.status == '200'){
 						this.hasLogin = true
 					} else {
@@ -134,7 +132,6 @@
 				// #ifndef H5 || APP-PLUS
 				uni.getSetting({
 					success(res) {
-						console.log(res,'11111')
 						if (!res.authSetting['scope.userLocation']) {
 							uni.authorize({
 								scope: 'scope.userLocation',

+ 1 - 0
pages/login/login.vue

@@ -54,6 +54,7 @@
 									console.log(res.data, 'login data')
 									getApp().globalData.token = res.data
 									_this.$u.vuex('vuex_token',res.data)
+									uni.setStorageSync('loginTimeOut', 'NO')
 									if (_this.path === '/pages/index/main' || _this.lanuch) {
 										uni.reLaunch({
 											url: _this.path