From 31ac1df69ae7462dac9a9171cb8e6856291e7c2a Mon Sep 17 00:00:00 2001
From: Lee-1203 <342694918@qq.com>
Date: Sat, 5 Mar 2022 22:07:52 +0800
Subject: [PATCH] =?UTF-8?q?=E5=92=A8=E8=AF=A2=E5=B8=88=E7=AB=AF=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3=E8=B0=83=E7=94=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 public/index.html                    |   5 +-
 src/App.vue                          |   8 +-
 src/views/consultant/case.vue        |   4 +-
 src/views/consultant/list.vue        |   6 +-
 src/views/home/evaluation/index.vue  |  11 +-
 src/views/home/expert/index.vue      |  13 +-
 src/views/index/index.vue            |   4 +-
 src/views/login.vue                  |  28 ++-
 src/views/login/verification.vue     |  34 ++-
 src/views/user/information/index.vue | 337 ++++++++++++++-------------
 10 files changed, 257 insertions(+), 193 deletions(-)
diff --git a/public/index.html b/public/index.html
index 92d4d57..49f0128 100644
--- a/public/index.html
+++ b/public/index.html
@@ -5,7 +5,7 @@
 		
 		
 		
-		
<%= htmlWebpackPlugin.options.title %>
+		有谱志愿
 		
\ No newline at end of file
diff --git a/src/views/home/evaluation/index.vue b/src/views/home/evaluation/index.vue
index e70341f..426f4c9 100644
--- a/src/views/home/evaluation/index.vue
+++ b/src/views/home/evaluation/index.vue
@@ -19,7 +19,7 @@
 						马上测试
 					
 				
-				
+				
 			
 		
 		
@@ -112,6 +112,10 @@
 		created() {
 			this.isScroll = true;
 			window.addEventListener("scroll", this.eventScrollTop);
+			
+		},
+		mounted() {
+			this.isFirst = (JSON.parse(localStorage.getItem("isFirst")));
 		},
         methods:{
 			toEntrance(){
@@ -123,7 +127,8 @@
 			},
 			//下次不再提醒
 			noTips(){
-				this.isFirst = !this.isFirst;
+				this.isFirst = false;
+				localStorage.isFirst = JSON.stringify(this.isFirst);
 				this.$router.push('/evaluation/entrance');
 			},
 			// 页面跳转
diff --git a/src/views/home/expert/index.vue b/src/views/home/expert/index.vue
index 13d8101..aa4417f 100644
--- a/src/views/home/expert/index.vue
+++ b/src/views/home/expert/index.vue
@@ -10,12 +10,12 @@
 			![]() -
 		
 		
-		
+		
 			 
 			完善信息,立即领取免费咨询卡(1小时)
 			
 		 
-		
+		
 			 
 			您已领取一小时免费咨询权益,可向专家进行提问
 		 
@@ -52,7 +52,7 @@
 						
有谱志愿
 				
 					手机号
-					
+					
 				
 				
 				
-					
 钉钉授权登录
钉钉授权登录
+					
 钉钉授权登录
 					获取验证码
钉钉授权登录
 					获取验证码
 				
+			
 				其他登录方式
 				
 					- 
@@ -92,13 +91,31 @@
 				openPhoneTips: false, //验证手机号弹出框
 				phoneNumber: "",
 				phone: "",
+				noPositin: false,
+				
+				defaultPhoneHeight : '0',  //默认屏幕高度
+				nowPhoneHeight :  '0',  //实时屏幕高度
 			};
 		},
 		created() {
 			this.isScroll = true;
 			window.addEventListener("scroll", this.eventScrollTop);
 		},
-		mounted() {},
+		mounted(){
+		    this.defaultPhoneHeight = window.innerHeight
+		    window.onresize = ()=>{
+		        this.nowPhoneHeight = window.innerHeight
+		    }
+		},
+		watch: {
+		    nowPhoneHeight:function(){
+		         if(this.defaultPhoneHeight != this.nowPhoneHeight){
+					this.noPositin = true;
+		        }else{
+		            this.noPositin = false;
+		        }
+		    }
+		},
 		methods: {
 			// 钉钉授权登录
 			nailLogin() {
@@ -170,6 +187,7 @@
 		},
 		destroyed() {
 			window.removeEventListener("scroll", this.eventScrollTop);
+			window.onresize = null;
 		},
 		//keep-alive进入时触发
 		activated() {
diff --git a/src/views/login/verification.vue b/src/views/login/verification.vue
index 014bb4f..2cc2787 100644
--- a/src/views/login/verification.vue
+++ b/src/views/login/verification.vue
@@ -55,6 +55,7 @@
 				show: false, //显示获取验证码
 				count: "", //剩余时间
 				timer: null,
+				userType: 0,
 			};
 		},
 		beforeCreate() {},
@@ -78,15 +79,17 @@
 			}
 		},
 		mounted() {
-
+			
 		},
 		computed: {},
 		methods: {
 			getUserData() {
-			  this.axios.post(this.HOME + "/api/user/center-info").then(function (res) {
-				  console.log(res.data.data)
-			localStorage.centerUserData = JSON.stringify(res.data.data);
-			  });
+				let that = this;
+				this.axios.post(this.HOME + "/api/user/center-info").then(function(res) {
+					console.log(res.data.data,1234)
+					that.userType = res.data.data.type;
+					localStorage.centerUserData = JSON.stringify(res.data.data);
+				});
 			},
 			hideKeyboard() {
 				// 输入完成隐藏键盘
@@ -102,10 +105,8 @@
 					.then(function(res) {
 						localStorage.userData = JSON.stringify(res.data.data);
 						if (res.data.code == 0) {
-							that.getUserData()
-							that.$router.push({
-								path: "/index",
-							});
+							that.getUserData();
+							that.goPages();
 						} else {
 							window.alert(res.msg);
 						}
@@ -114,6 +115,21 @@
 						console.log(error);
 					});
 			},
+			
+			// 跳转页面
+			goPages(){
+				console.log(this.userType,252525)
+				if(this.userType == 1){
+					this.$router.push({
+						path: "/consultant",
+					});
+				}else{
+					this.$router.push({
+						path: "/index",
+					});
+				}
+			},
+			
 			handleSubmit() {
 				this.$emit("input", this.value);
 			},
diff --git a/src/views/user/information/index.vue b/src/views/user/information/index.vue
index c481733..e9d427b 100644
--- a/src/views/user/information/index.vue
+++ b/src/views/user/information/index.vue
@@ -1,8 +1,9 @@
 
-    
-        
+	 
+		
 		 
-			 
+			  
+			 
-				- 
+				
- 
 					{{item.name}}
 					  
@@ -84,7 +88,9 @@
 				取消 
-			 	- {{item.title}} 
+- {{item.title}} 
 
 
 			
-			 	- {{item}} 
+- {{item}} 
-			 	- {{item.title}} 
+- {{item.title}} 
@@ -115,76 +125,84 @@ 
 			 -    
+	
 
 
 
 
 
\ No newline at end of file
+
 		
-    
+	
 
 
 
 
 
\ No newline at end of file
+