Browse Source

填空题修改

tanxue 6 months ago
parent
commit
4acdf3ff66
2 changed files with 8 additions and 2 deletions
  1. 7 1
      common/styles/global/components.scss
  2. 1 1
      components/question/tiankong.vue

+ 7 - 1
common/styles/global/components.scss

@@ -164,9 +164,15 @@ $titleBar-tabBar-page: calc(100vh - var(--status-bar-height));
 .ezy-tiankong-box{
 	.tiankongn-title{
 		width: 231rpx;height: 63rpx;
-		background-image: url("@/static/images/exam/panduan-title.png");@include ezy-no-repeat-cover();
+		background-image: url("@/static/images/exam/panduan-title.png");@include ezy-no-repeat-cover;
 	}
 	.tiankong-input {width: 50px;height: 32rpx;border: 1px solid #999;}
+	// .tiankong-input.showError{position: relative;}
+	.tk-input-box{display: inline-block;position: relative;font-size: 0;}
+	.tk-input-box.showError::after{
+		content: '';width: 30rpx;height: 30rpx;display: block;position: absolute;top: -12rpx;right: -6rpx;
+		background-image: url("@/static/images/exam/option-error-img.png");@include ezy-no-repeat-cover;
+	}
 }
 
 /***** 试题白色的框 *****/

+ 1 - 1
components/question/tiankong.vue

@@ -53,7 +53,7 @@
 						this.question.reply[index] && this.question.result[index].some(citem => citem === this
 							.question.reply[index].trim()) && (answer_status = 'active_right');
 						result = result.replace(regex,
-							`<view class="tk-input-box"><input class="tiankong-input ${answer_status}" style="width: 50px;margin: 0 3px" id="t_${this.question.stId}_${index}" readonly data-index="${index}" value="${this.question.reply[index]}" /></view>`
+							`<view class="tk-input-box ${answer_status}"><input class="tiankong-input ${answer_status}" style="width: 50px;margin: 0 3px" id="t_${this.question.stId}_${index}" readonly data-index="${index}" value="${this.question.reply[index]}" /></view>`
 						);
 
 					} else {