反馈修改完成

master
Lee-1203 2022-03-11 18:07:10 +08:00
parent b0c57fc407
commit 55b64892e0
9 changed files with 93 additions and 37 deletions

View File

@ -596,10 +596,12 @@ textarea {
text-align: center; text-align: center;
} }
/* 专业测评 */ /* 专业测评 */
.evaluation{
margin-top: 0;
}
.index-evaluation-list{ .index-evaluation-list{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-top: .2rem;
} }
.index-evaluation-list>li{ .index-evaluation-list>li{
width: 48.875%; width: 48.875%;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -38,7 +38,8 @@ export default {
created() { created() {
this.isScroll = true; this.isScroll = true;
window.addEventListener("scroll", this.eventScrollTop); window.addEventListener("scroll", this.eventScrollTop);
if(this.$route.query.source !== ''){
if(this.$route.query.source){
localStorage.source = JSON.stringify(this.$route.query.source); localStorage.source = JSON.stringify(this.$route.query.source);
} }
}, },

View File

@ -1,10 +1,5 @@
<template> <template>
<div class="content main-content"> <div class="content main-content">
<!-- 头部 -->
<div :class="{'header':true,'scroll white':isScrollTop,'white':true}">
<div class="back"></div>
<div class="header-title">测评</div>
</div>
<div class="evaluation pull-content"> <div class="evaluation pull-content">
<div class="evaluation-list"> <div class="evaluation-list">
<div class="evaluation-item" v-for="(item,index) in evaluationList" :key="index"> <div class="evaluation-item" v-for="(item,index) in evaluationList" :key="index">
@ -63,8 +58,6 @@
} }
}, },
created() { created() {
this.isScroll = true;
window.addEventListener("scroll", this.eventScrollTop);
}, },
mounted() { mounted() {
@ -136,18 +129,6 @@
} }
} }
} }
},
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> </script>

View File

@ -15,7 +15,7 @@
<span :class="{'active':!isActive}" @click="isActive=!isActive"></span> <span :class="{'active':!isActive}" @click="isActive=!isActive"></span>
</div> </div>
<div class="ask-mode-list"> <div class="ask-mode-list">
<div class="ask-mode-txt" v-show="isActive"> <div class="ask-mode-txt" v-show="isActive&&expertDetail.im_group_qr">
<p>下载二维码并用钉钉扫一扫进入专属群</p> <p>下载二维码并用钉钉扫一扫进入专属群</p>
<img :src="host + expertDetail.im_group_qr"> <img :src="host + expertDetail.im_group_qr">
<span @click="downImg()"></span> <span @click="downImg()"></span>
@ -45,9 +45,10 @@
this.isScroll = true; this.isScroll = true;
window.addEventListener("scroll", this.eventScrollTop); window.addEventListener("scroll", this.eventScrollTop);
this.id = this.$route.query.id; this.id = this.$route.query.id;
this.getDetailData();
}, },
mounted() { mounted() {
this.getDetailData();
}, },
computed: { computed: {
@ -89,23 +90,24 @@
} }
}, },
//
//
downImg() { downImg() {
var oQrcode = document.querySelectorAll('.ask-mode-txt img') var oQrcode = document.querySelectorAll('.ask-mode-txt img')
var url = oQrcode[0].src var url = oQrcode[0].src
var a = document.createElement('a') var link = document.createElement('a')
var event = new MouseEvent('click') var event = new MouseEvent('click')
// //
if(url!=''){ if(url!=''){
a.download = '钉钉专属群二维码' link.download = '钉钉专属群二维码'
a.href = url link.href = url
a.dispatchEvent(event) link.dispatchEvent(event)
}else{ }else{
return false; return false;
} }
}, },
// //
eventScrollTop() { eventScrollTop() {
let scrollTop = document.body.scrollTop || document.documentElement.scrollTop; let scrollTop = document.body.scrollTop || document.documentElement.scrollTop;

View File

@ -117,7 +117,8 @@
if(res.data.data.userType == 1){ if(res.data.data.userType == 1){
that.$router.push('/consultant'); that.$router.push('/consultant');
}else{ }else{
if(that.source !== null){ if(that.source){
window.localStorage.removeItem('source');
that.$router.push('/evaluation/entrance'); that.$router.push('/evaluation/entrance');
}else{ }else{
that.$router.push('/index'); that.$router.push('/index');

View File

@ -206,6 +206,25 @@
created() { created() {
this.isScroll = true; this.isScroll = true;
window.addEventListener("scroll", this.eventScrollTop); window.addEventListener("scroll", this.eventScrollTop);
this.userObj = JSON.parse(localStorage.getItem("centerUserData")).student;
console.log(this.userObj,'用户信息')
if(this.userObj){
let list = this.userObj;
this.studentName = list.student_name;//
this.addrValue = list.student_native;//
this.sexIndex = list.student_gender-1;//
this.temporaryCode = list.student_subject;//
//
if(list.is_art==1){
this.categoryIndex = 1;
}else if(list.is_is_PE==1){
this.categoryIndex = 2;
}else{
this.categoryIndex = 0;
}
this.achievementExpect = list.achievement_expect; //
this.provinceRanking = list.province_ranking //
}
}, },
mounted() { mounted() {
this.getAddrData(); this.getAddrData();
@ -217,6 +236,8 @@
this.isSeekCard=false; this.isSeekCard=false;
this.$router.push('/index'); this.$router.push('/index');
}, },
// //
getAddrData() { getAddrData() {
let that = this; let that = this;
@ -242,6 +263,11 @@
}) })
that.addrArray = newArray; that.addrArray = newArray;
that.addrData = newObj; that.addrData = newObj;
if(that.userObj){
//
let addrIndex = that.addrArray.indexOf(that.userObj.student_native_str);
that.addrIndex = addrIndex;
}
that.getSubjectArray(); that.getSubjectArray();
}); });
}, },
@ -256,6 +282,11 @@
} }
this.dateArray = newArray; this.dateArray = newArray;
this.dateValue = this.dateArray[this.dateIndex]; this.dateValue = this.dateArray[this.dateIndex];
if(this.userObj){
//
let yearIndex = this.dateArray.indexOf(this.userObj.student_exam_year);
this.dateIndex = yearIndex;
}
}, },
// //
openAddr() { openAddr() {
@ -322,6 +353,24 @@
}) })
that.subjectArray = newArray; that.subjectArray = newArray;
//
if(that.userObj){
if(that.iscount){
that.iscount = false;
let stuJect = that.userObj.student_subject.split(',');
let arrList = [];
stuJect.forEach(item=>{
that.subjectArray.forEach(item1=>{
if(item==item1.id){
item1.isActive = true;
}
})
arrList.push(item*1);
})
that.temporaryCode = arrList;
}
}
}); });
}, },
// //
@ -396,7 +445,7 @@
console.log(this.temporaryCode, '数据'); console.log(this.temporaryCode, '数据');
}, },
// //
setStudentInfo() { setStudentInfo() {
let that = this; let that = this;
if(that.studentName == ''){ if(that.studentName == ''){

View File

@ -6,6 +6,9 @@
<img src="../../../assets/images/home/expert/back.png" alt="" /> <img src="../../../assets/images/home/expert/back.png" alt="" />
</div> </div>
<div class="header-title">我的报告</div> <div class="header-title">我的报告</div>
<div class="home" @click="goPage('/index')">
<img src="../../../assets/images/home/home.png" alt="" />
</div>
</div> </div>
<div class="report pull-content"> <div class="report pull-content">
<ul class="report-nav"> <ul class="report-nav">
@ -110,7 +113,6 @@
</div> </div>
<div> <div>
<p v-if="(item.A.avg_score-0)<=(item.B.avg_score-0)" :style="{width: proportion(item.B.avg_score, (item.A.avg_score-0)+(item.B.avg_score-0))}"></p> <p v-if="(item.A.avg_score-0)<=(item.B.avg_score-0)" :style="{width: proportion(item.B.avg_score, (item.A.avg_score-0)+(item.B.avg_score-0))}"></p>
</div> </div>
</div> </div>
<p>{{item.B.factor_name}}</p> <p>{{item.B.factor_name}}</p>
@ -434,6 +436,15 @@
width: 100%; width: 100%;
height: 320px; height: 320px;
} }
.home,
.home img{
width: .4rem;
height: .4rem;
}
.home{
width: .32rem;
height: .32rem;
}
.report-box4-ex{ .report-box4-ex{
margin: .6rem 0; margin: .6rem 0;
} }
@ -460,9 +471,17 @@
.content-ex>div>p { .content-ex>div>p {
background-color: #ffe3db; background-color: #ffe3db;
border: .04rem solid #e0b280; border: .04rem solid #e0b280;
width: 0px; width: 0;
height: 100%; height: 100%;
} }
.content-ex>div:nth-of-type(1)>p{
border-right: 0;
}
.content-ex>div:nth-of-type(2)>p{
background-color: #b7e46a;
border: .04rem solid #80b02e;
border-left: 0;
}
.content-ex> :nth-child(1) { .content-ex> :nth-child(1) {
display: flex; display: flex;

View File

@ -3,7 +3,7 @@
<!-- 轮播图 --> <!-- 轮播图 -->
<div class="banner my-banner"> <div class="banner my-banner">
<img src="../../../assets/images/user/banner.jpg" alt="" /> <img src="../../../assets/images/user/banner.jpg" alt="" />
<div class="my-photo"> <div class="my-photo" @click="goPage('/info')">
<span> <span>
<img v-if="userData.avatar" :src="host + userData.avatar" /> <img v-if="userData.avatar" :src="host + userData.avatar" />
<img v-else src="../../../assets/images/user/photo.png" /> <img v-else src="../../../assets/images/user/photo.png" />
@ -29,7 +29,7 @@
手机号<em>{{ userData.mobile }}</em> 手机号<em>{{ userData.mobile }}</em>
</p> </p>
</li> </li>
<li @click="goPage('/info')"> <li @click="goPage('/information')">
<span><img src="../../../assets/images/user/icon-student.png" /></span> <span><img src="../../../assets/images/user/icon-student.png" /></span>
<p>考生信息</p> <p>考生信息</p>
<img src="../../../assets/images/home/expert/arrow-right.png" /> <img src="../../../assets/images/home/expert/arrow-right.png" />
@ -103,11 +103,12 @@
}, },
created() { created() {
this.getUserData(); this.getUserData();
this.getDate();
this.getevaluationList() this.getevaluationList()
this.consult_amount = (JSON.parse(localStorage.getItem("centerUserData"))).consult_amount; this.consult_amount = (JSON.parse(localStorage.getItem("centerUserData"))).consult_amount;
}, },
mounted() { mounted() {
this.getDate();
}, },
methods: { methods: {
// //