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 @@
-
向TA提问
+
向TA提问
查看详情
@@ -103,7 +103,7 @@ data() { return { isScrollTop: false, - isReceive: 1, //是否领取咨询机会 + consult_amount: 0, //是否领取咨询机会 current: 0, isConfirm: false, bannerSrc: '', //banner图地址 @@ -128,6 +128,7 @@ created() { this.isScroll = true; window.addEventListener("scroll", this.eventScrollTop); + this.consult_amount = (JSON.parse(localStorage.getItem("centerUserData"))).consult_amount; }, mounted() { this.getBanner(); @@ -242,7 +243,7 @@ // 向TA提问 toAsk(id) { - if (this.isReceive == 1) { + if (this.consult_amount == 1) { this.$router.push({ path: '/expert/ask', name: 'expert-ask', @@ -250,7 +251,7 @@ id: id }, }); - } else if (this.isReceive == 0) { + } else if (this.consult_amount == 0) { this.isConfirm = true; } }, diff --git a/src/views/index/index.vue b/src/views/index/index.vue index 36d5875..091ee11 100644 --- a/src/views/index/index.vue +++ b/src/views/index/index.vue @@ -120,7 +120,7 @@ data() { return { isScrollTop: false, - isReceive: 0, //是否完善资料 + consult_amount: 0, //是否完善资料 bannerSrc: "", expertData: [], //专家列表 headlinesData: [{ @@ -149,7 +149,7 @@ created() { this.isScroll = true; window.addEventListener("scroll", this.eventScrollTop); - this.consult_amount = JSON.parse(localStorage.userData).consult_amount; + this.consult_amount = (JSON.parse(localStorage.getItem("centerUserData"))).consult_amount; }, mounted() { this.getBanner(); diff --git a/src/views/login.vue b/src/views/login.vue index b599295..3eff505 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -13,7 +13,7 @@
有谱志愿
手机号 - +
- 钉钉授权登录 + 钉钉授权登录 获取验证码
-
+
其他登录方式