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 @@
有谱志愿
手机号 - +
- 钉钉授权登录 + 钉钉授权登录 获取验证码
-
+
其他登录方式