mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 03:56:44 +08:00
【fix】 修复在 结果页面 , 答案项 DISC 未按顺序排列, 特殊情况下, DISC 答案项缺失
This commit is contained in:
@@ -6,11 +6,14 @@
|
|||||||
<van-col span="24" class="text-center">DISC性格分析结果</van-col>
|
<van-col span="24" class="text-center">DISC性格分析结果</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
<template v-for="(value,key,index) in answerList">
|
<template v-for="(value,key,index) in answerList">
|
||||||
<van-row class="h40">
|
<van-row class="h40" :key="key">
|
||||||
<van-col span="12"> <span class="circular mr10" :class="'circular'+index%4" ></span> {{key}}</van-col>
|
<van-col span="12">
|
||||||
|
<span class="circular mr10" :class="'circular'+index%4" ></span>
|
||||||
|
{{key}}
|
||||||
|
</van-col>
|
||||||
<van-col span="12" class="text-right">{{value}}</van-col>
|
<van-col span="12" class="text-right">{{value}}</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
<van-divider />
|
<van-divider :key="key" />
|
||||||
</template>
|
</template>
|
||||||
<!-- <van-row class="h40">
|
<!-- <van-row class="h40">
|
||||||
<van-col span="12"> <span class="circular mr10"></span> title</van-col>
|
<van-col span="12"> <span class="circular mr10"></span> title</van-col>
|
||||||
@@ -38,17 +41,18 @@ export default {
|
|||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
init() {
|
init() {
|
||||||
// let tmp = {
|
let answerList = {
|
||||||
// "D" : 5,
|
"D" : 0,
|
||||||
// "I" : 6,
|
"I" : 0,
|
||||||
// "S" : 1,
|
"S" : 0,
|
||||||
// "C" : 8,
|
"C" : 0,
|
||||||
// }
|
}
|
||||||
|
Object.assign(answerList,JSON.parse(localStorage["DISC-answerList"]))
|
||||||
// localStorage.answerList = JSON.stringify(tmp)
|
// localStorage.answerList = JSON.stringify(tmp)
|
||||||
if(this.$route.query.token){
|
if(this.$route.query.token){
|
||||||
localStorage.token = this.$route.query.token;
|
localStorage.token = this.$route.query.token;
|
||||||
}
|
}
|
||||||
this.answerList = JSON.parse(localStorage["DISC-answerList"])
|
this.answerList = answerList
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
Reference in New Issue
Block a user