咨询师端接口调用

master
Lee-1203 2022-03-05 17:09:34 +08:00
parent aec17529bd
commit da8aee0850
6 changed files with 952 additions and 1082 deletions

View File

@ -1695,7 +1695,7 @@ textarea::-webkit-input-placeholder{
color: #3844ce;
}
.report-list>li span{
width: 2.1rem;
width: 2.5rem;
font-size: .24rem;
text-align: right;
color: #999999;
@ -1909,11 +1909,11 @@ textarea::-webkit-input-placeholder{
border-bottom: .02rem solid #333fc9;
}
.exponent-item-son{
margin-top: .15rem;
margin-top: .25rem;
}
.exponent-item-son span{
display: block;
font-size: .28rem;
font-size: .26rem;
line-height: 1.2;
margin: .15rem 0;
text-align: center;

View File

@ -8,22 +8,22 @@
<div class="consultant pull-content">
<div class="consultant-photo">
<div>
<span><img src="../../assets/images/user/photo.png"></span>
<span><img :src="host + experObj.avatar"></span>
<p>
<span><em>姓名</em>李四</span>
<span><em>职称</em>高级咨询师</span>
<span><em>电话</em>18683958573</span>
<span><em>姓名</em>{{experObj.name}}</span>
<span><em>职称</em>{{experObj.tags_text}}</span>
<span><em>电话</em>{{experObj.phone}}</span>
</p>
</div>
<p @click="editInformation()"></p>
</div>
<div class="consultant-info">
<p><span>重点服务区域</span>北京上海</p>
<p><span>区域1的服务价格</span>3000-12000</p>
<p><span>区域2的服务价格</span>3000-12000</p>
<p><span>区域3的服务价格</span>3000-12000</p>
<p><span>其他区域的服务价格</span>3000-12000</p>
<p><span>服务口号</span>教会孩子规划人生旅程重要的是帮助TA构建终身学习的生活态度</p>
<p><span>重点服务区域</span>{{experObj.service_area_text}}</p>
<p><span>区域1的服务价格</span>{{experObj.price_area_a}}</p>
<p><span>区域2的服务价格</span>{{experObj.price_area_b}}</p>
<p><span>区域3的服务价格</span>{{experObj.price_area_c}}</p>
<p><span>其他区域的服务价格</span>{{experObj.price_area_other}}</p>
<p><span>服务口号</span>{{experObj.slogan}}</p>
</div>
<div class="case-administer">
<h3>案例管理</h3>
@ -36,47 +36,14 @@
<span>主案例</span>
<span>操作</span>
</li>
<li>
<span><img src="../../assets/images/home/expert/detail.jpg" alt=""></span>
<span><p>完美的与湖北工业相遇完美的与湖北业相遇</p></span>
<span></span>
<li v-for="(item,index) in expertCase" :key="index">
<span><img :src="host + item.cover"></span>
<span><p>{{item.title}}</p></span>
<span>{{item.is_main==1?"":"否"}}</span>
<span>
<ins>
<em @click="editCase()"></em>
<em>删除</em>
</ins>
</span>
</li>
<li>
<span><img src="../../assets/images/home/expert/detail.jpg" alt=""></span>
<span><p>完美的与湖北工业相遇</p></span>
<span></span>
<span>
<ins>
<em>编辑</em>
<em>删除</em>
</ins>
</span>
</li>
<li>
<span><img src="../../assets/images/home/expert/detail.jpg" alt=""></span>
<span><p>完美的与湖北工业相遇</p></span>
<span></span>
<span>
<ins>
<em>编辑</em>
<em>删除</em>
</ins>
</span>
</li>
<li>
<span><img src="../../assets/images/home/expert/detail.jpg" alt=""></span>
<span><p>完美的与湖北工业相遇</p></span>
<span></span>
<span>
<ins>
<em>编辑</em>
<em>删除</em>
<em @click="editCase(index)"></em>
<em @click="deleteCase(item.id)"></em>
</ins>
</span>
</li>
@ -91,25 +58,98 @@
data(){
return {
isScrollTop: false,
id: '',
page: 1,//
size: 10,//
is_main: -1,//
allowLoad:true,//
experObj: [],//
expertCase: [],//
}
},
created() {
this.isScroll = true;
window.addEventListener("scroll", this.eventScrollTop);
},
mounted() {
this.checkExperInfo();
},
methods:{
//
checkExperInfo(){
let that = this;
this.axios
.post(this.HOME + "/api/user/center-info", {
})
.then(function(res) {
console.log(res,123)
that.experObj = res.data.data.expert
// that.id = that.experObj.id;
//
that.getExpertCase(that.id)
});
},
//
getExpertCase(id){
let that = this;
let anId = id;
this.axios
.post(this.HOME + "/api/expert/get-expert-case-list", {
page: that.page,
size: that.size,
expert_id: anId,
is_main: that.is_main
})
.then(function(res) {
let list = res.data.data.list;
let newArray = [];
that.expertCase = [];
list.forEach(item=>{
let obj = {
id:item.id,
cover: item.cover,
title: item.title,
result_remarks: item.result_remarks,
location_remarks: item.location_remarks,
other_remarks: item.other_remarks,
account_remarks: item.account_remarks,
is_main:item.is_main,
student_name:item.student_name
}
newArray.push(obj);
})
that.expertCase = that.expertCase.concat(newArray);
});
},
//
editCase(index){
let editIndex = index;
localStorage.anliObj = JSON.stringify(editIndex);
this.$router.push('/case');
},
//
deleteCase(idk){
let that = this;
let anId = idk;
this.axios
.post(this.HOME + "/api/expert/get-expert-case-list", {
ids:anId
})
.then(function(res) {
console.log(res,2525)
alert('删除成功');
that.getExpertCase(that.id);
});
},
//
editInformation(){
this.$router.push('/edit');
},
//
addCase(){
this.$router.push('/case');
},
//
editCase(){
this.$router.push('/case');
},
//
goPage(path){
this.$router.push(path);

View File

@ -9,7 +9,7 @@
</div>
<div class="info-bg pull-content">
<div class="feedback-msg">
<textarea v-model="content" rows="" cols="" placeholder="请输入您反馈的内容"></textarea>
<textarea v-model="content" placeholder="请输入您反馈的内容"></textarea>
</div>
</div>
<div @click="btnFeedback()" class="bind-btn">提交</div>
@ -38,8 +38,9 @@ export default {
}
this.axios
.post(
this.HOME + "/api/consumer/submit-feedback",
{ content: this.content },
this.HOME + "/api/consumer/submit-feedback", {
content: this.content
},
)
.then(function(res) {
window.alert(res.data.msg)

View File

@ -13,16 +13,17 @@
<span>头像</span>
<p class="ps">
<input class="inputB" @change="imgIny($event)" type="file" />
<img src="../../../assets/images/user/photo.png" />
<img v-if="myAvatar" :src="host + myAvatar">
<img v-else-if="userDataAll.avatar" :src="host + userDataAll.avatar">
<img v-else src="../../../assets/images/user/photo.png" />
</p>
</li>
<li>
<span>昵称</span
><input type="text" value="" placeholder="请输入昵称" />
<span>昵称</span><input type="text" v-model="nickName" value="" placeholder="请输入昵称" />
</li>
</ul>
</div>
<div class="bind-btn"></div>
<div class="bind-btn" @click="setInfo()"></div>
</div>
</template>
@ -32,19 +33,27 @@ export default {
data() {
return {
isScrollTop: false,
myAvatar: '',
nickName:'',
userDataAll:[]
};
},
created() {
this.isScroll = true;
window.addEventListener("scroll", this.eventScrollTop);
this.userDataAll = (JSON.parse(localStorage.getItem("centerUserData")));
this.nickName = this.userDataAll.nick_name;
},
mounted() {},
computed: {},
methods: {
imgIny(e) {
let that = this;
const files = e.target.files;
console.log(files[0]);
console.log({ image: files[0] });
console.log({
image: files[0]
});
var fromdata = new FormData();
fromdata.append("image", files[0]);
this.axios
@ -54,12 +63,39 @@ export default {
},
})
.then(function(res) {
console.log(res);
that.myAvatar = res.data.data.src;
console.log(that.myAvatar, 123);
})
.catch(function(error) {
console.log(error);
});
},
//
setInfo(){
let that = this;
this.axios
.post(this.HOME + "/api/user/edit-base-info", {
nick_name: that.nickName,
avatar: that.myAvatar
})
.then(function(res) {
that.getUserData();
that.$router.push('/ucenter');
console.log(res)
});
},
//
getUserData() {
let that = this;
this.axios.post(this.HOME + "/api/user/center-info").then(function (res) {
that.userData = res.data.data;
localStorage.centerUserData = JSON.stringify(res.data.data);
});
},
//
eventScrollTop() {
let scrollTop =
@ -90,6 +126,7 @@ export default {
top: 0px;
opacity: 0;
}
.ps {
position: relative;
}

View File

@ -21,68 +21,44 @@
<div class="report-relation">
<span>{{ evaluationData.student.student_name }}</span>
<span>{{ evaluationData.student.student_native_str }}</span>
<span v-show="evaluationData.evaluation.role_type == 'student'"
>考生测评</span
>
<span v-show="evaluationData.evaluation.role_type == 'parents'"
>亲属测评</span
>
<span v-show="evaluationData.evaluation.role_type == 'student'"></span>
<span v-show="evaluationData.evaluation.role_type == 'parents'"></span>
<span>{{ evaluationData.student.done_at }}</span>
</div>
<div class="report-box3 report-box">
<div class="report-title">
{{
evaluationData.evaluation.report.base.profession_concept.name
}}
{{evaluationData.evaluation.report.base.profession_concept.summary}}
<!-- {{baseList1.summary}} -->
</div>
<span class="report-h2">
{{
evaluationData.evaluation.report.base.profession_concept
.reportTextList.summary
}}
{{evaluationData.evaluation.report.base.profession_concept.reportTextList.summary}}
<!-- {{baseList1.reportspanList.summary}} -->
</span>
<span class="txt2">
{{
evaluationData.evaluation.report.base.profession_concept
.reportTextList.keywords_text
}}
<!-- {{baseList1.reportspanList.keywords_span}} -->
{{evaluationData.evaluation.report.base.profession_concept.reportTextList.keywords_text}}
<!-- {{baseList1.reportspanList.keywords_text}} -->
</span>
<span class="report-h3">
{{
evaluationData.evaluation.report.base.profession_concept
.reportTextList.description
}}
{{evaluationData.evaluation.report.base.profession_concept.reportTextList.description}}
<!-- {{baseList1.reportspanList.description}} -->
</span>
<div id="intellect" ref="profession_concept"></div>
</div>
<div class="report-box1 report-box">
<div class="report-title">
{{ evaluationData.evaluation.report.base.intellect.name }}
<!-- {{baseList1.summary}} -->
{{evaluationData.evaluation.report.base.intellect.summary}}
<!-- {{baseList1.summary}} -->
</div>
<span class="report-h2">
{{
evaluationData.evaluation.report.base.intellect.reportTextList
.summary
}}
{{evaluationData.evaluation.report.base.intellect.reportTextList.summary}}
<!-- {{baseList1.reportspanList.summary}} -->
</span>
<span class="txt2">
{{
evaluationData.evaluation.report.base.intellect.reportTextList
.keywords_text
}}
<!-- {{baseList1.reportspanList.keywords_span}} -->
{{evaluationData.evaluation.report.base.intellect.reportTextList.keywords_text}}
<!-- {{baseList1.reportspanList.keywords_text}} -->
</span>
<span class="report-h3">
{{
evaluationData.evaluation.report.base.intellect.reportTextList
.description
}}
{{evaluationData.evaluation.report.base.intellect.reportTextList.description}}
<!-- {{baseList1.reportspanList.description}} -->
</span>
@ -91,58 +67,38 @@
<div class="report-box4 report-box">
<div class="report-title">
{{
evaluationData.evaluation.report.base.profession_interest.name
}}
<!-- {{baseList1.summary}} -->
{{evaluationData.evaluation.report.base.profession_interest.name}}
<!-- {{baseList1.summary}} -->
</div>
<span class="report-h2">
{{
evaluationData.evaluation.report.base.profession_interest
.reportTextList.summary
}}
<!-- {{baseList1.reportspanList.summary}} -->
{{evaluationData.evaluation.report.base.profession_interest.reportTextList.eminent_person_text}}
<!-- {{baseList1.reportspanList.eminent_person_text}} -->
</span>
<span class="txt2">
{{
evaluationData.evaluation.report.base.profession_interest
.reportTextList.keywords_text
}}
<!-- {{baseList1.reportspanList.keywords_span}} -->
{{evaluationData.evaluation.report.base.profession_interest.reportTextList.keywords_text}}
<!-- {{baseList1.reportspanList.keywords_text}} -->
</span>
<span class="report-h3">
{{
evaluationData.evaluation.report.base.profession_interest
.reportTextList.description
}}
{{evaluationData.evaluation.report.base.profession_interest.reportTextList.description}}
<!-- {{baseList1.reportspanList.description}} -->
</span>
<div id="intellect" ref="profession_interest"></div>
</div>
<div class="report-box2 report-box">
<div class="report-title">
{{ evaluationData.evaluation.report.base.mbti_character.name }}
<!-- {{baseList1.summary}} -->
{{ evaluationData.evaluation.report.base.mbti_character.name }}
<!-- {{baseList1.summary}} -->
</div>
<span class="report-h2">
{{
evaluationData.evaluation.report.base.mbti_character
.reportTextList.summary
}}
<!-- {{baseList1.reportspanList.summary}} -->
{{evaluationData.evaluation.report.base.mbti_character.reportTextList.eminent_person_text}}
<!-- {{baseList1.reportspanList.eminent_person_text}} -->
</span>
<span class="txt2">
{{
evaluationData.evaluation.report.base.mbti_character
.reportTextList.keywords_text
}}
<!-- {{baseList1.reportspanList.keywords_span}} -->
{{evaluationData.evaluation.report.base.mbti_character.reportTextList.keywords_text}}
<!-- {{baseList1.reportspanList.keywords_text}} -->
</span>
<span class="report-h3">
{{
evaluationData.evaluation.report.base.mbti_character
.reportTextList.description
}}
{{evaluationData.evaluation.report.base.mbti_character.reportTextList.description}}
<!-- {{baseList1.reportspanList.description}} -->
</span>
<dir class="report-box4-ex">
@ -150,19 +106,10 @@
<p>{{item.A.factor_name}}</p>
<div class="content-ex">
<div>
<p
:style="{
width: proportion(item.A.avg_score, (item.A.avg_score-0)+(item.B.avg_score-0)),
}"
v-if="(item.A.avg_score-0)>=(item.B.avg_score-0)"
></p>
<p :style="{width: proportion(item.A.avg_score, (item.A.avg_score-0)+(item.B.avg_score-0)),}" v-if="(item.A.avg_score-0)>=(item.B.avg_score-0)"></p>
</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>
@ -173,28 +120,19 @@
<div class="report-box5 report-box">
<div class="report-title">
{{ evaluationData.evaluation.report.base.subjects.name }}
<!-- {{baseList1.summary}} -->
{{ evaluationData.evaluation.report.base.subjects.summary }}
<!-- {{baseList1.summary}} -->
</div>
<span class="report-h2">
{{
evaluationData.evaluation.report.base.subjects.reportTextList
.summary
}}
<!-- {{baseList1.reportspanList.summary}} -->
{{evaluationData.evaluation.report.base.subjects.reportTextList.eminent_person_text}}
<!-- {{baseList1.reportspanList.eminent_person_text}} -->
</span>
<span class="txt2">
{{
evaluationData.evaluation.report.base.subjects.reportTextList
.keywords_text
}}
<!-- {{baseList1.reportspanList.keywords_span}} -->
{{evaluationData.evaluation.report.base.subjects.reportTextList.keywords_text}}
<!-- {{baseList1.reportspanList.keywords_text}} -->
</span>
<span class="report-h3">
{{
evaluationData.evaluation.report.base.subjects.reportTextList
.description
}}
{{evaluationData.evaluation.report.base.subjects.reportTextList.description}}
<!-- {{baseList1.reportspanList.description}} -->
</span>
<div id="intellect" ref="subjects"></div>
@ -202,175 +140,28 @@
</div>
<!-- 专业类匹配度 -->
<div class="report-item" v-show="!isShow">
<div class="report-exponent">
<div class="report-exponent" v-for="(item,index) in majorList" :key="index">
<div class="exponent-title">
<div class="exponent-star">
推荐指数<span></span><span></span><span></span
><span></span><span></span>
推荐指数<span v-for="(itemk,indexk) in item.stars" :key="indexk"></span>
<!-- <span a:for="{{item.stars}}"></span> -->
</div>
<div class="percentage">匹配度>90%<!-- {{item.degree}} --></div>
<div class="percentage">匹配度{{item.degree}}
<!-- {{item.degree}} -->
</div>
</div>
<div class="exponent-list">
<div class="exponent-item">
<div class="exponent-item" v-for="(item2,index2) in item.majors" :key="index2">
<span>
自然学科类<br />
(10)
<!-- {{item2.name}}
{{item2.name}}<br />
({{item2.childrenSize}})
<!-- {{item2.name}}<br />
({{item2.childrenSize}}) -->
</span>
<div class="exponent-item-son">
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span v-for="(item3,index3) in item2.children" :key="index3">{{item3.name}}</span>
</div>
</div>
<div class="exponent-item">
<span>
社会科学类<br />
(10)
<!-- {{item2.name}}
({{item2.childrenSize}}) -->
</span>
<div class="exponent-item-son">
<span>中西医结合</span>
<span>中西医结合</span>
</div>
</div>
<div class="exponent-item">
<span>
人文科学类<br />
(10)
<!-- {{item2.name}}
({{item2.childrenSize}}) -->
</span>
<div class="exponent-item-son">
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
</div>
</div>
</div>
</div>
<div class="report-exponent">
<div class="exponent-title">
<div class="exponent-star">
推荐指数<span></span><span></span><span></span
><span></span><span></span>
<!-- <span a:for="{{item.stars}}"></span> -->
</div>
<div class="percentage">匹配度>90%<!-- {{item.degree}} --></div>
</div>
<div class="exponent-list">
<div class="exponent-item">
<span>
自然学科类<br />
(10)
<!-- {{item2.name}}
({{item2.childrenSize}}) -->
</span>
<div class="exponent-item-son">
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
</div>
</div>
<div class="exponent-item">
<span>
社会科学类<br />
(10)
<!-- {{item2.name}}
({{item2.childrenSize}}) -->
</span>
<div class="exponent-item-son">
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
</div>
</div>
<div class="exponent-item">
<span>
人文科学类<br />
(10)
<!-- {{item2.name}}
({{item2.childrenSize}}) -->
</span>
<div class="exponent-item-son">
<span>中西医结合</span>
</div>
</div>
</div>
</div>
<div class="report-exponent">
<div class="exponent-title">
<div class="exponent-star">
推荐指数<span></span><span></span><span></span
><span></span><span></span>
<!-- <span a:for="{{item.stars}}"></span> -->
</div>
<div class="percentage">匹配度>90%<!-- {{item.degree}} --></div>
</div>
<div class="exponent-list">
<div class="exponent-item">
<span>
自然学科类<br />
(10)
<!-- {{item2.name}}
({{item2.childrenSize}}) -->
</span>
<div class="exponent-item-son">
<span>中西医结合</span>
<span>自然保护与环境生态类</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
</div>
</div>
<div class="exponent-item">
<span>
社会科学类<br />
(10)
<!-- {{item2.name}}
({{item2.childrenSize}}) -->
</span>
<div class="exponent-item-son">
<span>中西医结合</span>
<span>中西医结合</span>
<span>中西医结合</span>
</div>
</div>
<div class="exponent-item">
<span>
人文科学类<br />
(10)
<!-- {{item2.name}}
({{item2.childrenSize}}) -->
</span>
<div class="exponent-item-son"></div>
</div>
</div>
</div>
</div>
@ -390,6 +181,7 @@ export default {
roleTType: "student", //
evaluationData: {},
arrData: "",
majorList:[], //
};
},
created() {
@ -418,15 +210,17 @@ export default {
xAxis: {
data: dataNmae,
type: "category",
axisLabel: { interval: 0, rotate: 60 },
axisLabel: {
interval: 0,
rotate: 60
},
},
yAxis: {
type: "value",
},
series: [
{
series: [{
data: dataNum,
type: "bar",
itemStyle: {
@ -442,8 +236,7 @@ export default {
},
},
},
},
],
}, ],
};
myChart.setOption(option);
}, 10);
@ -468,19 +261,15 @@ export default {
// { name: "Marketing", max: 9 },
// ],
},
series: [
{
series: [{
name: "Budget vs spending",
type: "radar",
data: [
{
data: [{
// value: [4200, 3000, 20000, 35000, 50000, 18000],
value: valueArr,
name: "Allocated Budget",
},
],
},
],
}, ],
}, ],
};
myChart.setOption(option);
@ -493,16 +282,16 @@ export default {
id: this.$route.query.id,
})
.then(function(res) {
console.log(res);
console.log(res,111111);
that.evaluationData = res.data.data;
that.majorList = that.evaluationData.evaluation.report.major;
console.log(that.majorList,123)
let dataName = [];
let dataNun = [];
for (
let index = 0;
index <
let index = 0; index <
that.evaluationData.evaluation.report.base.intellect.reportData
.length;
index++
.length; index++
) {
dataNun.push(
that.evaluationData.evaluation.report.base.intellect.reportData[
@ -519,11 +308,9 @@ export default {
let dataNamea = [];
let dataNuna = [];
for (
let index = 0;
index <
let index = 0; index <
that.evaluationData.evaluation.report.base.profession_concept
.reportData.length;
index++
.reportData.length; index++
) {
dataNuna.push(
that.evaluationData.evaluation.report.base.profession_concept
@ -538,11 +325,9 @@ export default {
let dataNameb = [];
let dataNunb = [];
for (
let index = 0;
index <
let index = 0; index <
that.evaluationData.evaluation.report.base.profession_interest
.reportData.length;
index++
.reportData.length; index++
) {
dataNunb.push(
that.evaluationData.evaluation.report.base.profession_interest
@ -560,11 +345,9 @@ export default {
let dataNameC = [];
let dataNunC = [];
for (
let index = 0;
index <
let index = 0; index <
that.evaluationData.evaluation.report.base.subjects.reportData
.length;
index++
.length; index++
) {
dataNunC.push(
that.evaluationData.evaluation.report.base.subjects.reportData[
@ -580,8 +363,7 @@ export default {
that.leidata(dataNunC, dataNameC, "subjects");
let arrData = [
{
let arrData = [{
A: "",
B: "",
},
@ -602,8 +384,7 @@ export default {
// console.log((arrAD[0].factor_subgroup_id-0)-1);
for (
let index = 0;
index < arrAD.length; index++) {
let index = 0; index < arrAD.length; index++) {
if (arrData[(arrAD[index].factor_subgroup_id - 0) - 1].A) {
arrData[(arrAD[index].factor_subgroup_id - 0) - 1].B = arrAD[index]
} else {
@ -653,26 +434,36 @@ export default {
width: 100%;
height: 320px;
}
.report-box4-ex{
margin: .6rem 0;
}
.report-box4-ex>div {
display: flex;
justify-content: space-between;
align-items: center;
margin: .4rem 0;
color: #666666;
font-size: .28rem;
}
.content-ex {
width: 80%;
height: 0.5rem;
height: 0.4rem;
display: flex;
}
.content-ex>div {
width: 50%;
height: 100%;
}
.content-ex>div>p {
background-color: red;
background-color: #ffe3db;
border: .04rem solid #e0b280;
width: 0px;
height: 100%;
}
.content-ex> :nth-child(1) {
display: flex;
justify-content: flex-end;

View File

@ -10,7 +10,7 @@
<img src="../../../assets/images/user/banner.jpg" alt="" />
<div class="my-photo">
<span>
<img v-if="userData.avatar" :src="userData.avatar" />
<img v-if="userData.avatar" :src="host + userData.avatar" />
<img v-else src="../../../assets/images/user/photo.png" />
</span>
<p v-if="userData.nick_name">{{ userData.nick_name }}</p>
@ -19,7 +19,7 @@
</div>
<!-- 免费咨询卡 -->
<div class="user-receive" @click="toPage()" v-if="isUse == 0">
<img src="../../../assets/images/user/card.png" alt="" />
<img src="../../../assets/images/user/card.png" />
<div class="receive-txt">
<span class="use-btn" v-if="isReceive == 1">使</span>
<span class="receive-btn" v-if="isReceive == 0"></span>
@ -29,46 +29,36 @@
<div class="line" v-if="isReceive == 1"></div>
<ul class="student-information">
<li v-if="userData.mobile">
<span
><img src="../../../assets/images/user/icon-phone.png" alt=""
/></span>
<span><img src="../../../assets/images/user/icon-phone.png" /></span>
<p>
手机号<em>{{ userData.mobile }}</em>
</p>
</li>
<li @click="goPage('/bind')" v-else>
<span
><img src="../../../assets/images/user/icon-phone.png" alt=""
/></span>
<span><img src="../../../assets/images/user/icon-phone.png" /></span>
<p>
手机号<em>{{ userData.mobile }}</em>
手机号<em></em>
</p>
<img src="../../../assets/images/home/expert/arrow-right.png" alt="" />
<img src="../../../assets/images/home/expert/arrow-right.png" />
</li>
<li @click="goPage('/info')">
<span
><img src="../../../assets/images/user/icon-student.png" alt=""
/></span>
<span><img src="../../../assets/images/user/icon-student.png" /></span>
<p>考生信息</p>
<img src="../../../assets/images/home/expert/arrow-right.png" alt="" />
<img src="../../../assets/images/home/expert/arrow-right.png" />
</li>
</ul>
<div class="feedback" @click="goPage('/feedback')">
<span
><img src="../../../assets/images/user/icon-feedback.png" alt=""
/></span>
<span><img src="../../../assets/images/user/icon-feedback.png" /></span>
<p>意见和反馈</p>
<img src="../../../assets/images/home/expert/arrow-right.png" alt="" />
<img src="../../../assets/images/home/expert/arrow-right.png" />
</div>
<div :class="{ 'my-report': true, open: isOpen }" @click="isOpen = !isOpen">
<span
><img src="../../../assets/images/user/icon-report.png" alt=""
/></span>
<span><img src="../../../assets/images/user/icon-report.png" alt="" /></span>
<p>我的报告</p>
<img src="../../../assets/images/home/expert/arrow-right.png" alt="" />
</div>
<ul :class="{ 'report-list': true, open: isOpen }">
<li v-for="(item,index) in dataList" :key="index" @click="goPage(item.id)">
<li v-for="(item,index) in reportData" :key="index" @click="goReport(item.id)">
<p>{{item.title}}</p>
<span>{{item.done_at}}</span>
</li>
@ -91,7 +81,7 @@ export default {
centerUserData: {
mobile: "",
},
dataList:[],
reportData: [],
isScrollTop: false,
isReceive: 1, //
isUse: 0, //使
@ -128,6 +118,7 @@ export default {
this.getevaluationList()
},
methods: {
//
getevaluationList() {
let that = this
this.axios.post(this.HOME + "/api/evaluation/evaluation-list", {
@ -135,9 +126,11 @@ export default {
size: "100",
status: ""
}).then(function(res) {
that.dataList=res.data.data.list
that.reportData = res.data.data.list;
console.log(that.reportData,555)
});
},
//
toPage() {
if (this.isReceive == 1) {
@ -148,8 +141,14 @@ export default {
return false;
}
},
//
goPage(id) {
goPage(path) {
this.$router.push(path)
},
//
goReport(id) {
this.$router.push({
path: "/report",
query: {
@ -157,6 +156,7 @@ export default {
},
});
},
//
getUserData() {
let that = this;
@ -165,6 +165,7 @@ export default {
localStorage.centerUserData = JSON.stringify(res.data.data);
});
},
//
eventScrollTop() {
let scrollTop =