提交 0c34dc50 authored 作者: lihuihui's avatar lihuihui

修改bug

上级 72517431
...@@ -106,7 +106,8 @@ ...@@ -106,7 +106,8 @@
<div class="tit">答案解析</div> <div class="tit">答案解析</div>
<div class="txt">正确答案:<span>{{ dItem.answerOpt.toString().replace(new RegExp(',', 'g'), '') }}</span></div> <div class="txt">正确答案:<span>{{ dItem.answerOpt.toString().replace(new RegExp(',', 'g'), '') }}</span></div>
<template v-if="requestData[item.id]"> <template v-if="requestData[item.id]">
<div class="txt" v-if="requestData[item.id][dItem.id]">您的答案:<span>{{ requestData[item.id][dItem.id].opaVal.toString().replace(new RegExp(',', 'g'), '') }}</span></div> <!-- <div class="txt" v-if="requestData[item.id][dItem.id]">您的答案:<span>{{ requestData[item.id][dItem.id].opaVal.sort() }}</span></div> -->
<div class="txt" v-if="requestData[item.id][dItem.id]">您的答案:<span>{{ sorts(requestData[item.id][dItem.id].opaVal) }}</span></div>
<div class="txt" v-else>您的答案:<span>{{ dItem.opaVal2 }}</span></div> <div class="txt" v-else>您的答案:<span>{{ dItem.opaVal2 }}</span></div>
</template> </template>
<template v-else> <template v-else>
...@@ -339,6 +340,13 @@ export default { ...@@ -339,6 +340,13 @@ export default {
} }
}, },
computed: { computed: {
sorts() {
return function(data) {
const dSort = data.slice().sort().toString().replace(new RegExp(',', 'g'), '')
// console.log(data.sort, '======').toString().replace(new RegExp(',', 'g'), '')
return dSort
}
},
isWeapp() { isWeapp() {
return this.$store.state.isWeapp return this.$store.state.isWeapp
}, },
......
...@@ -472,7 +472,7 @@ export default { ...@@ -472,7 +472,7 @@ export default {
font-size: .26rem; font-size: .26rem;
line-height: .4rem; line-height: .4rem;
padding: 0 .4rem; padding: 0 .4rem;
font-weight: bold; // font-weight: bold;
margin-bottom: .2rem; margin-bottom: .2rem;
span{ span{
width: 100%; width: 100%;
......
...@@ -663,7 +663,7 @@ export default { ...@@ -663,7 +663,7 @@ export default {
font-size: .26rem; font-size: .26rem;
line-height: .4rem; line-height: .4rem;
padding: 0 .4rem; padding: 0 .4rem;
font-weight: bold; // font-weight: bold;
margin-bottom: .2rem; margin-bottom: .2rem;
span{ span{
width: 100%; width: 100%;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论