From a96ebfd6ea571b0452a018a2777af086f9034c23 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 27 六月 2024 14:13:45 +0800 Subject: [PATCH] 学前儿童修改bug --- src/components/matching/matching.vue | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/matching/matching.vue b/src/components/matching/matching.vue index f0d49c7..bcc4cc4 100644 --- a/src/components/matching/matching.vue +++ b/src/components/matching/matching.vue @@ -15,7 +15,7 @@ :key="index" ref="left" @mousedown="(e) => touchstart(e, item, index)" - :style="{ backgroundColor: primaryColor }" + :style="{ backgroundColor: primaryColor,border:'1px solid' + bordercolor }" v-html="item.label.txt" ></div> </div> @@ -25,7 +25,7 @@ v-for="(item, index) in rightArr" :key="index" ref="right" - :style="{ backgroundColor: primaryColor }" + :style="{ backgroundColor: primaryColor,border:'1px solid' + bordercolor }" v-html="item.label.txt" ></div> </div> @@ -46,11 +46,11 @@ <!-- 鎸夐挳 --> <div class="btn-bottom"> <el-button @click="submitData">鎻愪氦</el-button> - <el-button @click="saveData" :style="{ borderColor: primaryColor }" + <el-button @click="saveData" :style="{ borderColor: bordercolor }" >淇濆瓨</el-button > <el-button @click="redo">閲嶅仛</el-button> - <el-button @click="handleAnswer" :style="{ borderColor: primaryColor }" + <el-button @click="handleAnswer" :style="{ borderColor: bordercolor }" >鏌ョ湅绛旀</el-button > </div> @@ -112,8 +112,12 @@ }, primaryColor: { type: String, - default: "#0bab87", + default: "#fff", }, + bordercolor:{ + type:String, + default:'#f49a4c' + } }, watch: { rawData: { @@ -341,11 +345,13 @@ const rightIndex = this.question.options.linkValues.findIndex( (citem) => citem.oldId == item.oldId ); + answerArr.push({ left: index, right: rightIndex, }); } + console.log(this.question.userChoise,answerArr); this.isRight = this.areArraysEqual(this.question.userChoise, answerArr); this.isShowAnswer = true; }, -- Gitblit v1.9.1