志愿测评
parent
9ef6aeeb3e
commit
5d324c4b58
|
@ -1515,11 +1515,7 @@ textarea::-webkit-input-placeholder{
|
|||
text-align: center;
|
||||
transition: all .6s;
|
||||
}
|
||||
.question-btns>span:hover{
|
||||
background-color: #333fc9;
|
||||
color: #FFFFFF;
|
||||
transition: all .6s;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 我的页面 */
|
||||
|
|
|
@ -1,77 +1,91 @@
|
|||
<template>
|
||||
<div class="content">
|
||||
<!-- 头部 -->
|
||||
<div :class="{'header':true,'scroll white':isScrollTop,'white':true}">
|
||||
<div class="back" @click="$router.go(-1)"><img src="../../../assets/images/home/expert/back.png" alt=""></div>
|
||||
<div class="header-title">专业定位测评</div>
|
||||
</div>
|
||||
<div class="entrance pull-content list-section">
|
||||
<div class="list-section">
|
||||
<h3>这里展示专业定位测评的文字内容,专业定位测评 来帮你解读!高考志愿填报过程中,往往规划师老 师,会让考生和家长做一个专业定位测</h3>
|
||||
<div class="entrance-tips">专业定位测评提示:你需要使用12-15分钟的时间,请 用第一感觉作答,勿做太多的思考!</div>
|
||||
<div class="entrance-btns">
|
||||
<span @click="goPage('/evaluation/question')">考生本人测评入口</span>
|
||||
<span @click="goPage('/evaluation/question')">家长/亲属测评入口</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<!-- 头部 -->
|
||||
<div :class="{ header: true, 'scroll white': isScrollTop, white: true }">
|
||||
<div class="back" @click="$router.go(-1)">
|
||||
<img src="../../../assets/images/home/expert/back.png" alt="" />
|
||||
</div>
|
||||
<div class="header-title">专业定位测评</div>
|
||||
</div>
|
||||
<div class="entrance pull-content list-section">
|
||||
<div class="list-section">
|
||||
<h3>
|
||||
这里展示专业定位测评的文字内容,专业定位测评
|
||||
来帮你解读!高考志愿填报过程中,往往规划师老
|
||||
师,会让考生和家长做一个专业定位测
|
||||
</h3>
|
||||
<div class="entrance-tips">
|
||||
专业定位测评提示:你需要使用12-15分钟的时间,请
|
||||
用第一感觉作答,勿做太多的思考!
|
||||
</div>
|
||||
<div class="entrance-btns">
|
||||
<span @click="goPage('/evaluation/question', 'student')"
|
||||
>考生本人测评入口</span
|
||||
>
|
||||
<span @click="goPage('/evaluation/question', 'parents')"
|
||||
>家长/亲属测评入口</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "evaluation-entrance",
|
||||
data() {
|
||||
return {
|
||||
isScrollTop: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
methods: {
|
||||
// 页面跳转
|
||||
goPage(path){
|
||||
this.$router.push(path);
|
||||
},
|
||||
// 滚动改变样式
|
||||
eventScrollTop() {
|
||||
let scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
|
||||
if (scrollTop >= 5) {
|
||||
if (this.isScroll) {
|
||||
this.isScroll = false;
|
||||
this.isScrollTop = true;
|
||||
}
|
||||
} else {
|
||||
if (!this.isScroll) {
|
||||
this.isScroll = true;
|
||||
this.isScrollTop = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
window.removeEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
//keep-alive进入时触发
|
||||
activated() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop)
|
||||
},
|
||||
//keep-alive离开时触发
|
||||
deactivated() {
|
||||
window.removeEventListener("scroll", this.eventScrollTop);
|
||||
}
|
||||
}
|
||||
export default {
|
||||
name: "evaluation-entrance",
|
||||
data() {
|
||||
return {
|
||||
isScrollTop: false,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
mounted() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
// 页面跳转
|
||||
goPage(path, state) {
|
||||
this.$router.push({
|
||||
path: path,
|
||||
query: {
|
||||
state,
|
||||
},
|
||||
});
|
||||
},
|
||||
// 滚动改变样式
|
||||
eventScrollTop() {
|
||||
let scrollTop =
|
||||
document.body.scrollTop || document.documentElement.scrollTop;
|
||||
if (scrollTop >= 5) {
|
||||
if (this.isScroll) {
|
||||
this.isScroll = false;
|
||||
this.isScrollTop = true;
|
||||
}
|
||||
} else {
|
||||
if (!this.isScroll) {
|
||||
this.isScroll = true;
|
||||
this.isScrollTop = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
destroyed() {
|
||||
window.removeEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
//keep-alive进入时触发
|
||||
activated() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
//keep-alive离开时触发
|
||||
deactivated() {
|
||||
window.removeEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -1,76 +1,127 @@
|
|||
<template>
|
||||
<div class="content">
|
||||
<!-- 头部 -->
|
||||
<div :class="{'header':true,'scroll white':isScrollTop,'white':true}">
|
||||
<div class="back" @click="$router.go(-1)"><img src="../../../assets/images/home/expert/back.png" alt=""></div>
|
||||
<div class="header-title">XXX测评</div>
|
||||
</div>
|
||||
<div class="question pull-content list-section">
|
||||
<div class="question-item">
|
||||
<div class="number"><span>12</span><em>/</em>80</div>
|
||||
<h3>我最喜欢按兴致做事</h3>
|
||||
<div class="question-btns">
|
||||
<span @click="setQuestionEV()">完全相符合</span>
|
||||
<span @click="setQuestionEV()">比较相符合</span>
|
||||
<span @click="setQuestionEV()">不太好分辨</span>
|
||||
<span @click="setQuestionEV()">比较不符合</span>
|
||||
<span @click="setQuestionEV()">完全不符合</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<!-- 头部 -->
|
||||
<div :class="{ header: true, 'scroll white': isScrollTop, white: true }">
|
||||
<div class="back" @click="$router.go(-1)">
|
||||
<img src="../../../assets/images/home/expert/back.png" alt="" />
|
||||
</div>
|
||||
<div class="header-title">XXX测评</div>
|
||||
</div>
|
||||
<div class="question pull-content list-section">
|
||||
<div class="question-item">
|
||||
<div class="number">
|
||||
<span>{{ num + 1 }}</span
|
||||
><em>/</em>{{ lastquestions.total }}
|
||||
</div>
|
||||
<h3 v-if="state == 'student'">
|
||||
{{ lastquestions.list[num].question.content_student }}
|
||||
</h3>
|
||||
<h3 v-if="state == 'parents'">
|
||||
{{ lastquestions.list[num].question.content_parents }}
|
||||
</h3>
|
||||
<div class="question-btns">
|
||||
<span
|
||||
v-for="(item, index) in optionsData"
|
||||
:key="index"
|
||||
@click="setQuestionEV(item.key)"
|
||||
>{{ item.name }}</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "evaluation-question",
|
||||
data() {
|
||||
return {
|
||||
isScrollTop: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
methods: {
|
||||
// 滚动改变样式
|
||||
eventScrollTop() {
|
||||
let scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
|
||||
if (scrollTop >= 5) {
|
||||
if (this.isScroll) {
|
||||
this.isScroll = false;
|
||||
this.isScrollTop = true;
|
||||
}
|
||||
} else {
|
||||
if (!this.isScroll) {
|
||||
this.isScroll = true;
|
||||
this.isScrollTop = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
window.removeEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
//keep-alive进入时触发
|
||||
activated() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop)
|
||||
},
|
||||
//keep-alive离开时触发
|
||||
deactivated() {
|
||||
window.removeEventListener("scroll", this.eventScrollTop);
|
||||
}
|
||||
}
|
||||
export default {
|
||||
name: "evaluation-question",
|
||||
data() {
|
||||
return {
|
||||
isScrollTop: false,
|
||||
lastquestions: [],
|
||||
num: 0,
|
||||
optionsData: [],
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
mounted() {
|
||||
this.getLastquestions();
|
||||
this.getQuestionAnswerOptions();
|
||||
this.state = this.$route.query.state;
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
// 题目
|
||||
getLastquestions() {
|
||||
let that = this;
|
||||
this.axios
|
||||
.post(this.HOME + "/api/evaluation/get-last-questions", {
|
||||
role_type: this.$route.query.state,
|
||||
})
|
||||
.then(function (res) {
|
||||
that.lastquestions = res.data.data;
|
||||
});
|
||||
},
|
||||
getQuestionAnswerOptions() {
|
||||
let that = this;
|
||||
this.axios
|
||||
.post(this.HOME + "/api/evaluation/question-answer-options")
|
||||
.then(function (res) {
|
||||
that.optionsData = res.data.data;
|
||||
});
|
||||
},
|
||||
|
||||
// 滚动改变样式
|
||||
eventScrollTop() {
|
||||
let scrollTop =
|
||||
document.body.scrollTop || document.documentElement.scrollTop;
|
||||
if (scrollTop >= 5) {
|
||||
if (this.isScroll) {
|
||||
this.isScroll = false;
|
||||
this.isScrollTop = true;
|
||||
}
|
||||
} else {
|
||||
if (!this.isScroll) {
|
||||
this.isScroll = true;
|
||||
this.isScrollTop = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
setQuestionEV(key) {
|
||||
let that = this;
|
||||
this.axios
|
||||
.post(this.HOME + "/api/evaluation/answer-question", {
|
||||
id: this.lastquestions.list[this.num].id,
|
||||
option_key: key,
|
||||
})
|
||||
.then(function () {
|
||||
that.num++;
|
||||
if (that.num >= 117) {
|
||||
console.log(that.num)
|
||||
that.$router.push({
|
||||
path: "/ucenter",
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
destroyed() {
|
||||
window.removeEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
//keep-alive进入时触发
|
||||
activated() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
//keep-alive离开时触发
|
||||
deactivated() {
|
||||
window.removeEventListener("scroll", this.eventScrollTop);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -175,7 +175,11 @@ export default {
|
|||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
cpUrl() {},
|
||||
cpUrl() {
|
||||
this.$router.push({
|
||||
path: "/evaluation",
|
||||
});
|
||||
},
|
||||
getBanner() {
|
||||
let that = this;
|
||||
this.axios
|
||||
|
|
|
@ -75,7 +75,7 @@ export default {
|
|||
created() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop);
|
||||
this.phoneData = this.$route.query.number;
|
||||
this.phoneData = this.$route.query.phone
|
||||
const TIME_COUNT = 60;
|
||||
if (!this.timer) {
|
||||
this.count = TIME_COUNT;
|
||||
|
@ -91,7 +91,9 @@ export default {
|
|||
}, 1000);
|
||||
}
|
||||
},
|
||||
mounted() {},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
hideKeyboard() {
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
<!-- 头部 -->
|
||||
<div :class="{'header':true,'scroll white':isScrollTop,'white':true}">
|
||||
<div class="back" @click="$router.go(-1)"><img src="../../../assets/images/home/expert/back.png" alt=""></div>
|
||||
<div class="header-title">手机绑定</div>
|
||||
<div v-if="centerUserData.mobile" class="header-title">修改号码</div>
|
||||
<div v-else class="header-title">手机绑定</div>
|
||||
</div>
|
||||
<div class="feedback-bg pull-content">
|
||||
<ul class="phone-bind">
|
||||
|
@ -21,11 +22,19 @@
|
|||
data() {
|
||||
return {
|
||||
isScrollTop: false,
|
||||
centerUserData:{
|
||||
mobile:""
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop);
|
||||
|
||||
|
||||
|
||||
this.centerUserData=JSON.parse(location.centerUserData)
|
||||
console.log(this.centerUserData)
|
||||
},
|
||||
mounted() {
|
||||
|
||||
|
|
|
@ -9,8 +9,12 @@
|
|||
<div class="banner my-banner">
|
||||
<img src="../../../assets/images/user/banner.jpg" alt="" />
|
||||
<div class="my-photo">
|
||||
<span><img src="../../../assets/images/user/photo.png" /></span>
|
||||
<p>张桑</p>
|
||||
<span>
|
||||
<img v-if="userData.avatar" :src="userData.avatar" />
|
||||
<img v-else src="../../../assets/images/user/photo.png" />
|
||||
</span>
|
||||
<p v-if="userData.nick_name">{{userData.nick_name}}</p>
|
||||
<p v-else>未填写个人信息</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 免费咨询卡 -->
|
||||
|
@ -24,11 +28,11 @@
|
|||
</div>
|
||||
<div class="line" v-if="isReceive == 1"></div>
|
||||
<ul class="student-information">
|
||||
<li @click="goPage('/bind')">
|
||||
<li @click="goPage('/bind')" >
|
||||
<span
|
||||
><img src="../../../assets/images/user/icon-phone.png" alt=""
|
||||
/></span>
|
||||
<p>手机号<em>18683958573</em></p>
|
||||
<p>手机号<em>{{userData.mobile}}</em></p>
|
||||
<img src="../../../assets/images/home/expert/arrow-right.png" alt="" />
|
||||
</li>
|
||||
<li @click="goPage('/info')">
|
||||
|
@ -100,11 +104,36 @@ export default {
|
|||
isReceive: 1, //是否领取咨询机会
|
||||
isUse: 0, //是否使用
|
||||
isOpen: false,
|
||||
userData:{
|
||||
avatar: "" ,
|
||||
consult_amount: 0,
|
||||
create_time: "",
|
||||
ding_code: "",
|
||||
expert_id: 0,
|
||||
gender: 0,
|
||||
id: 31,
|
||||
im_uid: "",
|
||||
lat: "",
|
||||
lng: "",
|
||||
login_time: "",
|
||||
mobile: "",
|
||||
nick_name: "",
|
||||
open_id: "",
|
||||
real_name: "",
|
||||
tags: "",
|
||||
tel: "",
|
||||
type: 0,
|
||||
unionid: "",
|
||||
update_time: "",
|
||||
user_code: ""
|
||||
},
|
||||
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.isScroll = true;
|
||||
window.addEventListener("scroll", this.eventScrollTop);
|
||||
this.getUserData();
|
||||
},
|
||||
methods: {
|
||||
// 判断跳转方式
|
||||
|
@ -121,6 +150,14 @@ export default {
|
|||
goPage(path) {
|
||||
this.$router.push(path);
|
||||
},
|
||||
// 获取用户信息
|
||||
getUserData() {
|
||||
let that = this;
|
||||
this.axios.post(this.HOME + "/api/user/center-info").then(function (res) {
|
||||
that.userData = res.data.data;
|
||||
location.centerUserData=JSON.stringify( that.userData )
|
||||
});
|
||||
},
|
||||
// 滚动改变样式
|
||||
eventScrollTop() {
|
||||
let scrollTop =
|
||||
|
|
Loading…
Reference in New Issue