反馈修改完成

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;
}
/* 专业测评 */
.evaluation{
margin-top: 0;
}
.index-evaluation-list{
display: flex;
justify-content: space-between;
margin-top: .2rem;
}
.index-evaluation-list>li{
width: 48.875%;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

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

View File

@ -1,10 +1,5 @@
<template>
<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-list">
<div class="evaluation-item" v-for="(item,index) in evaluationList" :key="index">
@ -63,8 +58,6 @@
}
},
created() {
this.isScroll = true;
window.addEventListener("scroll", this.eventScrollTop);
},
mounted() {
@ -136,19 +129,7 @@
}
}
}
},
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>

View File

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

View File

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

View File

@ -206,6 +206,25 @@
created() {
this.isScroll = true;
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() {
this.getAddrData();
@ -217,6 +236,8 @@
this.isSeekCard=false;
this.$router.push('/index');
},
//
getAddrData() {
let that = this;
@ -242,6 +263,11 @@
})
that.addrArray = newArray;
that.addrData = newObj;
if(that.userObj){
//
let addrIndex = that.addrArray.indexOf(that.userObj.student_native_str);
that.addrIndex = addrIndex;
}
that.getSubjectArray();
});
},
@ -256,6 +282,11 @@
}
this.dateArray = newArray;
this.dateValue = this.dateArray[this.dateIndex];
if(this.userObj){
//
let yearIndex = this.dateArray.indexOf(this.userObj.student_exam_year);
this.dateIndex = yearIndex;
}
},
//
openAddr() {
@ -322,6 +353,24 @@
})
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, '数据');
},
//
//
setStudentInfo() {
let that = this;
if(that.studentName == ''){

View File

@ -6,6 +6,9 @@
<img src="../../../assets/images/home/expert/back.png" alt="" />
</div>
<div class="header-title">我的报告</div>
<div class="home" @click="goPage('/index')">
<img src="../../../assets/images/home/home.png" alt="" />
</div>
</div>
<div class="report pull-content">
<ul class="report-nav">
@ -110,7 +113,6 @@
</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>
</div>
</div>
<p>{{item.B.factor_name}}</p>
@ -434,6 +436,15 @@
width: 100%;
height: 320px;
}
.home,
.home img{
width: .4rem;
height: .4rem;
}
.home{
width: .32rem;
height: .32rem;
}
.report-box4-ex{
margin: .6rem 0;
}
@ -460,9 +471,17 @@
.content-ex>div>p {
background-color: #ffe3db;
border: .04rem solid #e0b280;
width: 0px;
width: 0;
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) {
display: flex;

View File

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