123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839 |
- <template>
- <view class="bg">
- <view style="overflow: hidden;"></view>
- <view class="scale_name">测测你的智力有多高?</view>
- <view class="test_time">测试时间:{{ time }}</view>
- <view class="role_medal">测试结果</view>
- <view class="chart_wrap">
- <view class="situation">
- <view class="situation_title">测评得分</view>
- <view class="situation_score">分数:<text>{{ totalScore.totalScore }}</text>(满分60)</view>
- <view class="situation_conclusion">结论:</view>
- <image class="situation_role"
- :src="`https://test.jue-ming.com:8849/api/show?filePath=./webo/RuiWen/${roleInfo[totalScore.totalScoreDesc]}.png`"
- mode="widthFix">
- </image>
- </view>
- <view class="radar_wrap">
- <leiDa2 :options="options" />
- </view>
- <view class="my_table">
- <view class="t-head">
- <view width="50%">维度</view>
- <view>得分</view>
- <view>满分</view>
- </view>
- <view class="t-body" v-for="(item, index) in scoreList">
- <view>{{ indicator[index].name }}</view>
- <view>{{ item }}</view>
- <view style="border-right: 0;">45</view>
- </view>
- </view>
- </view>
- <view class="rgtd_box">
- <view class="rgtd_box_title"><text>总评</text></view>
- <view class="rgtd_box_wrap">
- <view style="overflow: hidden;"></view>
- <!-- <view v-for="(item, index) in resultObj">
- <template v-if="index > 0"> -->
- <!-- <view class="dimension_name"><text>{{item.name}}</text></view> -->
- <view class="dimension_title">
- 得分
- </view>
- <view class="dimension_content dc1">
- <text>{{ totalScore.totalScore }}</text>
- </view>
- <view class="dimension_title">
- 总评结论
- </view>
- <view class="dimension_content dc1">
- <text>{{ totalScore.totalScoreDesc }}</text>
- </view>
- <view class="dimension_title">
- 总评说明
- </view>
- <view class="dimension_content">
- <text>{{ totalScore.totalScoreUnscramble }}</text>
- </view>
- </view>
- </view>
- <view class="rgtd_box" v-for="item in dimensions">
- <view class="rgtd_box_title"><text>{{ item.name }}</text></view>
- <view class="rgtd_box_wrap">
- <view style="overflow: hidden;"></view>
- <!-- <view v-for="(item, index) in resultObj">
- <template v-if="index > 0"> -->
- <!-- <view class="dimension_name"><text>{{item.name}}</text></view> -->
- <view class="dimension_title">
- 得分
- </view>
- <view class="dimension_content dc1">
- <text>{{ item.score }}</text>
- </view>
- <view class="dimension_title">
- 维度结论
- </view>
- <view class="dimension_content dc1">
- <text>{{ item.conclusion }}</text>
- </view>
- <view class="dimension_title">
- 维度说明
- </view>
- <view class="dimension_content">
- {{ item.Describe }}
- </view>
- <view class="dimension_title">
- 维度解释
- </view>
- <view class="dimension_content">
- {{ item.unscramble }}
- </view>
- </view>
- </view>
- <view class="report_desc">
- <view class="desc_title">报告阅读说明</view>
- <view class="desc_txt">谢谢您的参与,阅读本报告时,请注意以下内容:</view>
- <view style="display: flex;">
- <view class="list_mark">·</view>
- <view class="desc_txt">本结果仅供参考,不可作为临床诊断的依据;</view>
- </view>
- <view style="display: flex;">
- <view class="list_mark">·</view>
- <view class="desc_txt">如对报告有不理解的地方,建议咨询专业人员;</view>
- </view>
- <view style="display: flex;">
- <view class="list_mark">·</view>
- <view class="desc_txt">如结果与你自己或他人的感受有出入,可回忆在测试时是否有事情影响到你,或自己回答时是否有所顾虑。</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- getRecordById
- } from "@/api/index.js";
- import {
- photoUrl
- } from "@/common/config.js"
- const photoUrls = `${photoUrl}api/show?filePath=./webo`
- import {
- getTestTime
- } from "@/utils/util.js"
- import leiDa2 from "@/components/mpvueEcharts/leiDa2.vue"
- import options from "./echartsData.js";
- export default {
- components: {
- leiDa2
- },
- data() {
- return {
- photoUrl: photoUrl,
- isChecked: true,
- isShake: false,
- scaleDetail: {},
- questionList: [],
- currentQuestion: {},
- currentAnswerList: [],
- currentIndex: 0,
- userAnswerList: [],
- resultId: '',
- isLoading: false,
- isDisbale: false,
- resultObj: [],
- resultId: '',
- scoreNum: 0,
- maxScore: 450,
- minScore: 0,
- keywords: '',
- characteristic: '', // 特点
- time: '',
- indicator: [],
- scoreList: [],
- totalScore: {},
- dimensions: [],
- roleInfo: {
- '智力水平低下': 'role1',
- '智力水平中下': 'role2',
- '智力水平低下': 'role3',
- '智力水平中等': 'role4',
- '智力水平优秀': 'role5'
- },
- options: options
- }
- },
- onLoad(options) {
- if (options && options.resultId) {
- this.resultId = options.resultId
- this.getScaleTestResults(this.resultId);
- }
- },
- computed: {
- percentage() {
- return ((this.scoreNum / this.maxScore) * 627) + 'rpx'
- }
- },
- methods: {
- getScaleTestResults(id) {
- let _this = this;
- _this.$request
- .get({
- url: `${getRecordById}?id=${id}`,
- loadingTip: "加载中...",
- data: {},
- })
- .then(
- (res) => {
- if (res.code == 200) {
- let testResult = JSON.parse(res.data?.userRecordEntity?.testResult);
- console.log(testResult)
- this.time = getTestTime(res.data.userRecordEntity.testDate);
- this.indicator = testResult.chartModule.chartBody.indicator;
- this.scoreList = testResult.chartModule.chartBody.groupData[0].value;
- this.totalScore = testResult.totalScore[0];
- this.dimensions = testResult.dimensions;
- this.options.radar.indicator = this.indicator;
- this.options.series[0].data[1].value = this.scoreList;
- } else if (res.code == 401) {} else {
- (res) => {
- console.log("世界上绝对绝对绝对绝对绝对的", res);
- }
- }
- })
- },
- getAdvantage(str) {
- let tempArr = str.split("——");
- let title = tempArr[0].split(".")
- let advant = {
- title: title[1],
- content: tempArr[1]
- }
- return advant
- },
- getTips(str) {
- let temp = str.split(':');
- return `${temp[0]}是指${temp[1]}`
- }
- }
- }
- </script>
- <style lang="less" scoped>
- .bg {
- width: 100%;
- background: #5F7CFF;
- position: relative;
- padding-bottom: 100rpx;
- }
- .scale_name {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: bold;
- font-size: 42rpx;
- color: #FFFFFF;
- margin: 20rpx 0 0 32rpx;
- }
- .test_time {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 28rpx;
- color: #ffffff;
- margin-left: 32rpx;
- }
- .role_medal {
- width: 205rpx;
- line-height: 53rpx;
- background: #FFFFFF;
- border-radius: 27rpx;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 32rpx;
- color: #333333;
- text-align: center;
- position: absolute;
- top: 36rpx;
- right: 25rpx;
- }
- .role_wrap {
- position: relative;
- }
- .role_char {
- width: 714rpx;
- height: 156rpx;
- display: flex;
- justify-content: space-around;
- align-items: center;
- position: absolute;
- left: 18rpx;
- bottom: 0;
- }
- .char_item {
- width: 30%;
- font-family: 'ZhankuKuaiLeTi';
- font-weight: 800;
- font-size: 36rpx;
- color: #333333;
- line-height: 52rpx;
- text-align: center;
- }
- .shadow_img {
- display: block;
- width: 170rpx;
- position: absolute;
- left: 50%;
- bottom: -6rpx;
- transform: translateX(-50%);
- }
- .role_name {
- text-align: center;
- margin: 202rpx 0 0 0;
- }
- .role_name image {
- width: 550rpx;
- }
- .temp_type {
- width: 714rpx;
- margin: 0 auto;
- }
- .carton {
- width: 718rpx;
- margin: 0 16rpx;
- }
- .score_percentage {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 627rpx;
- height: 20rpx;
- background: #FFFFFF;
- border-radius: 10rpx;
- border-radius: 14rpx;
- margin: 14rpx 0 8rpx 20rpx;
- position: relative;
- z-index: 3;
- overflow-x: hidden;
- }
- .process_bar {
- width: 0rpx;
- height: 16rpx;
- background: #FF1E00;
- border-radius: 8rpx;
- box-shadow: 0rpx 0rpx 4rpx 2rpx #FFC600;
- position: absolute;
- top: 3rpx;
- left: 4rpx;
- }
- .rgtd_box {
- box-sizing: border-box;
- width: 712rpx;
- min-height: 700rpx;
- padding: 24rpx;
- margin: 0 auto 124rpx;
- position: relative;
- z-index: 0;
- background: rgba(100, 177, 249, 0.8);
- border-radius: 58rpx;
- }
- .rgtd_box_title {
- width: 701rpx;
- height: 97rpx;
- background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/RuiWen/title_bg.png) no-repeat center;
- background-size: 400rpx 88rpx;
- position: absolute;
- left: 0;
- top: -20rpx;
- z-index: 2;
- text-align: center;
- }
- .rgtd_box_title text {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 44rpx;
- color: #FFFEFE;
- margin-top: 20rpx;
- line-height: 97rpx;
- }
- .dimension_name {
- width: 465rpx;
- height: 79rpx;
- padding-top: 2rpx;
- background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/MarriageQuality/dimension_name.png) no-repeat;
- background-size: cover;
- margin: 60rpx auto 0;
- text-align: center;
- }
- .dimension_name text {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: bold;
- font-size: 44rpx;
- color: #FFFEFE;
- }
- .dimension_title {
- box-sizing: border-box;
- width: 100%;
- background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/MarriageQuality/list_style_bg.png) no-repeat 16rpx center;
- background-size: 19rpx auto;
- padding: 26rpx 0 0 44rpx;
- font-family: Alibaba PuHuiTi 2.0;
- font-weight: normal;
- font-size: 32rpx;
- color: #333333;
- }
- .dt1 {
- margin-top: 78rpx;
- }
- .dimension_content {
- box-sizing: border-box;
- width: 598rpx;
- min-height: 91rpx;
- padding: 30rpx 32rpx;
- background: #FFFFFF;
- border-radius: 18rpx;
- margin: 20rpx auto;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 28rpx;
- color: #333333;
- line-height: 50rpx;
- text-align: justify;
- }
- .dimension_explain {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 20rpx;
- color: #D3987E;
- line-height: 24rpx;
- margin-top: 10rpx;
- }
- .dc1 {
- width: 598rpx;
- line-height: 1;
- background: #FFFFFF;
- box-shadow: 0rpx 7rpx 8rpx 0rpx rgba(4, 129, 200, 0.13);
- border-radius: 35rpx;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 32rpx;
- color: #007FFF;
- text-align: center;
- }
- .rgtd_box_wrap {
- box-sizing: border-box;
- width: 668rpx;
- min-height: 700rpx;
- background: #E4F8FD;
- border-radius: 45rpx;
- margin: 0 auto;
- position: relative;
- z-index: 1;
- padding-top: 46rpx;
- }
- .rgtd_box_content {
- box-sizing: border-box;
- width: 674rpx;
- min-height: 390rpx;
- padding: 28rpx 47rpx;
- background: #FFF9FA;
- border-radius: 18rpx;
- margin: 0 auto;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 32rpx;
- color: #333333;
- line-height: 50rpx;
- letter-spacing: 2rpx;
- }
- .rgtd_text {
- width: 181rpx;
- margin: 6rpx 0 0 39rpx;
- }
- .emo_img {
- width: 112rpx;
- margin-right: 7rpx;
- }
- .rgtg_content {
- box-sizing: border-box;
- width: 714rpx;
- padding: 40rpx;
- background: #FFFFFF;
- border-radius: 35rpx;
- margin: 0 auto;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 28rpx;
- color: #333333;
- line-height: 1.8;
- letter-spacing: 2rpx;
- }
- .mrmj_content {
- display: flex;
- flex-wrap: wrap;
- min-height: 255rpx;
- }
- .star_img {
- width: 92rpx;
- margin-right: 43rpx;
- }
- .mrmj_content .mr_name {
- height: 44rpx;
- padding: 0 34rpx;
- margin: 4rpx 10rpx;
- background: #E4FFD3;
- border-radius: 22rpx;
- border: 1px solid #66C666;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 28rpx;
- color: #0B7000;
- line-height: 44rpx;
- text-align: center;
- }
- .mr_pic_box {
- width: 100%;
- }
- .mr_pic {
- width: 316rpx;
- margin: 5rpx 8rpx;
- }
- .advantage_title {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: bold;
- font-size: 32rpx;
- color: #333333;
- margin: 25rpx 5rpx 8rpx;
- }
- .advantage_content {
- box-sizing: border-box;
- width: 632rpx;
- background: #E4FFD3;
- border-radius: 22rpx;
- border: 1px solid #66C666;
- padding: 28rpx;
- margin: 0 auto;
- }
- .ad_item_title {
- display: flex;
- align-items: center;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: bold;
- font-size: 32rpx;
- color: #156300;
- }
- .love_role {
- width: 571rpx;
- margin: 0 auto;
- }
- .single_star {
- width: 32rpx;
- margin: 0 8rpx 4rpx 0;
- }
- .heart_img {
- width: 93rpx;
- margin-right: 16rpx;
- }
- .lover_type_title {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: bold;
- font-size: 32rpx;
- color: #333333;
- line-height: 43rpx;
- }
- .love_decode {
- box-sizing: border-box;
- width: 632rpx;
- padding: 39rpx 30rpx;
- background: #FFE8FD;
- border-radius: 22rpx;
- border: 1px solid #FF59F1;
- margin: 0 auto;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 28rpx;
- color: #333333;
- }
- .result_box {
- width: 702rpx;
- min-height: 807rpx;
- background: #ffffff;
- box-shadow: 0rpx 3rpx 24rpx 0rpx rgba(126, 77, 0, 0.13);
- border-radius: 26rpx;
- margin: 168rpx auto 0;
- position: relative;
- }
- .pad_box {
- width: 100%;
- height: 200rpx;
- border-radius: 26rpx;
- overflow: hidden;
- }
- .title_img {
- height: 60rpx;
- margin: 37rpx 0 0 96rpx;
- }
- .result_box_r {
- box-sizing: border-box;
- width: 702rpx;
- min-height: 453rpx;
- margin: -188rpx auto 0;
- background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/MarriageQuality/result_bg_r.png) no-repeat top;
- background-size: 100% auto;
- border-radius: 33rpx;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 32rpx;
- color: #555555;
- line-height: 50rpx;
- position: relative;
- z-index: 2;
- }
- .r_content {
- width: 600rpx;
- min-height: 307rpx;
- background: #FFE1E1;
- border-radius: 20rpx;
- border: 1px solid #FF6666;
- margin: 20rpx auto 0;
- padding: 30rpx;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 32rpx;
- color: #333333;
- line-height: 50rpx;
- display: flex;
- align-items: flex-start;
- }
- .report_desc {
- padding: 0 38rpx;
- letter-spacing: 1px;
- }
- .desc_title {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 28rpx;
- color: #333333;
- line-height: 46rpx;
- }
- .stext {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 20rpx;
- color: #333333;
- line-height: 30rpx;
- }
- .desc_txt {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 20rpx;
- color: #333333;
- line-height: 30rpx;
- }
- .list_mark {
- line-height: 0.7;
- font-size: 36rpx;
- color: #333333;
- font-weight: 600;
- margin-right: 5rpx;
- }
- .analysis_title {
- width: 362rpx;
- position: absolute;
- top: -30rpx;
- left: 50%;
- transform: translateX(-50%);
- }
- .paperclip {
- width: 55rpx;
- position: absolute;
- top: -40rpx;
- left: 38rpx;
- }
- .score_title {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 32rpx;
- color: #333333;
- line-height: 24rpx;
- margin: 0 0 0 5rpx;
- }
- .score_num {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: bold;
- font-size: 93rpx;
- color: #FF1E00;
- text-align: center;
- margin-top: 20rpx;
- line-height: 1.2;
- }
- .score_explain {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 24rpx;
- color: #999999;
- line-height: 34rpx;
- text-align: center;
- }
- .chart_wrap {
- width: 702rpx;
- min-height: 1053rpx;
- background: #FFFFFF;
- border-radius: 16rpx;
- margin: 30rpx auto 100rpx;
- padding-bottom: 30rpx;
- }
- .my_table {
- width: 634rpx;
- line-height: 52rpx;
- margin: 0 auto;
- text-align: center;
- border: 0;
- }
- .my_table {}
- .my_table .t-head {
- width: 634rpx;
- height: 52rpx;
- background: #2394FC;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-size: 28rpx;
- color: #FEFEFE;
- }
- .my_table .t-head,
- .my_table .t-body {
- display: flex;
- }
- .my_table .t-head view,
- .my_table .t-body view {
- flex: 1;
- }
- .my_table .t-body view {
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 20rpx;
- color: #333333;
- line-height: 50rpx;
- border-right: 1px solid #E6EFF5;
- border-bottom: 1px solid #E6EFF5;
- }
- .my_table .t-body:nth-child(2n+1) {
- background: #EFF7FF;
- }
- .situation {
- width: 100%;
- min-height: 111rpx;
- background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/RuiWen/situation_bg.png) no-repeat;
- background-size: 100% auto;
- overflow: hidden;
- font-family: 'Alibaba PuHuiTi 2.0';
- font-weight: normal;
- font-size: 32rpx;
- color: #333333;
- }
- .situation_title {
- margin: 24rpx 0 0 26rpx;
- }
- .situation_score {
- font-size: 24rpx;
- margin: 17rpx 0 30rpx 52rpx;
- text {
- font-size: 32rpx;
- color: #FF1E00;
- font-weight: 600;
- }
- }
- .situation_conclusion {
- font-size: 24rpx;
- margin-left: 52rpx;
- }
- .situation_role {
- width: 628rpx;
- height: auto;
- margin-left: 52rpx;
- }
- .radar_wrap {
- width: 100%;
- margin: 26rpx 0;
- }
- .container {
- width: 630rpx !important;
- height: 576rpx !important;
- /* padding: 0 !important; */
- background: #F7F9FA;
- border-radius: 27rpx;
- margin: 0 auto;
- }
- </style>
|