lsx 2 лет назад
Родитель
Сommit
21c8a2c47b
3 измененных файлов с 17 добавлено и 17 удалено
  1. 1 1
      src/packageOther/about/index.vue
  2. 11 11
      src/pages/login/code.vue
  3. 5 5
      src/pages/login/index.vue

+ 1 - 1
src/packageOther/about/index.vue

@@ -22,7 +22,7 @@
 			<view class="flex about-logo">
 				<image src="../../static/public/logo.png" mode="scaleToFill"></image>
 				<!-- #ifndef MP-ALIPAY -->
-				<view class="edition">v 1.1.4</view>
+				<view class="edition">v 1.1.5</view>
 				<!-- #endif -->
 				<!-- #ifdef MP-ALIPAY -->
 				<view class="edition">v 2.2.6</view>

+ 11 - 11
src/pages/login/code.vue

@@ -152,7 +152,7 @@
 				$http.post('/api/v1/mp/user/getLoginUserinfo', { appSource: appId }).then(res => {
 					if(res.code == 0) {
 						//判断有没有头像
-						if(res.data.avatar) {
+						// if(res.data.avatar) {
 							let Pages = getCurrentPages()
 							setTimeout(() => {
 								if(this.pagesNum > 2 && (Pages[this.pagesNum-3].route != "pages/login/index")) {
@@ -163,11 +163,11 @@
 									this.toIndex()
 								}
 							}, 500)
-						}else{
-							uni.reLaunch({
-								url: '/packageOther/avatar/index'
-							})
-						}
+						// }else{
+						// 	uni.reLaunch({
+						// 		url: '/packageOther/avatar/index'
+						// 	})
+						// }
 					}
 				})
 			},
@@ -210,12 +210,12 @@
 			authClose() {
 				this.authShow = false
 				setTimeout(() => {
-					// uni.navigateBack({
-					// 	delta: 2
-					// })
-					uni.reLaunch({
-						url: '/packageOther/avatar/index'
+					uni.navigateBack({
+						delta: 2
 					})
+					// uni.reLaunch({
+					// 	url: '/packageOther/avatar/index'
+					// })
 				}, 500)
 			},
 		}

+ 5 - 5
src/pages/login/index.vue

@@ -175,12 +175,12 @@
 			authClose() {
 				this.authShow = false
 				setTimeout(() => {
-					// uni.navigateBack({
-					// 	delta: 1
-					// })
-					uni.reLaunch({
-						url: '/packageOther/avatar/index'
+					uni.navigateBack({
+						delta: 1
 					})
+					// uni.reLaunch({
+					// 	url: '/packageOther/avatar/index'
+					// })
 				}, 500)
 			},