任一存 2 år sedan
förälder
incheckning
5956de4fee
1 ändrade filer med 11 tillägg och 2 borttagningar
  1. 11 2
      src/views/QuestionJudge.vue

+ 11 - 2
src/views/QuestionJudge.vue

@@ -104,8 +104,11 @@
         重新答题
       </button>
       <button
-        v-if="questionInfo?.descText"
+        v-if="!isDescInline"
         class="watch-desc"
+        :class="{
+          disabled: !questionInfo?.descText
+        }"
         @click="onClickWatchDesc"
       >
         答案解析
@@ -173,7 +176,9 @@ export default {
           this.$refs['question-pending']?.selectedIdxList,
           this.questionInfo.badgeTypeCode,
         )
-        this.isShowDesc = true
+        if (this.isDescInline) {
+          this.isShowDesc = true
+        }
       }
     },
     onClickWatchDesc() {
@@ -325,6 +330,10 @@ export default {
       font-family: LiSu-Regular, LiSu;
       font-weight: 400;
       color: #8F4831;
+      &.disabled {
+        opacity: 0.5;
+        pointer-events: none;
+      }
     }
   }
   > button.return-question {