| | |
| | | <p |
| | | class="titleText text-fl" |
| | | v-if=" |
| | | value.stemStyle == 'Txt' && value.questionType != 'completion' |
| | | value.stemStyle == 'Txt' && value.questionType != 'completion' && value.questionType !='dropdown' |
| | | " |
| | | :id="value.id" |
| | | v-html="value.stem.stemTxt" |
| | |
| | | <span |
| | | v-if="typeof itemText == 'string'" |
| | | v-html="itemText" |
| | | class="input-txt" |
| | | ></span> |
| | | <input |
| | | v-else |
| | |
| | | v-html="value.stem.stemTxt" |
| | | v-cloak |
| | | ></p> |
| | | <!-- 下拉选择题 --> |
| | | <p class="titleText" v-if="value.questionType == 'dropdown'"> |
| | | <span |
| | | v-for="(itemText, indexText) in value.stem" |
| | | :key="indexText + 'questionType'" |
| | | > |
| | | <span |
| | | v-if="typeof itemText == 'string'" |
| | | v-html="itemText" |
| | | class="input-txt" |
| | | ></span> |
| | | <el-select |
| | | v-else |
| | | v-model="value.userAnswer" |
| | | :disabled="value.isComplete" |
| | | > |
| | | <el-option |
| | | v-for="citem in value.option" |
| | | :key="citem.index" |
| | | :label="citem.txt" |
| | | :value="citem.value" |
| | | > |
| | | |
| | | </el-option> |
| | | </el-select> |
| | | </span> |
| | | </p> |
| | | </div> |
| | | <img |
| | | :src="value.isCollect ? isHeart : heart" |
| | |
| | | watch: { |
| | | cardList: { |
| | | handler(newVal) { |
| | | // console.log('新值',newVal); |
| | | this.cardData = this.cardList; |
| | | if (newVal && newVal.length) { |
| | | this.loading = false; |
| | |
| | | this.getErrorList(); |
| | | }, |
| | | methods: { |
| | | // 获取不受保护的图片 |
| | | getPublicImage(md5, width, height) { |
| | | if(!md5) return |
| | | if(md5.includes('http')) return md5 |
| | | let src = null; |
| | | if (md5) { |
| | | src = process.env.VUE_APP_API_URL + `/file/GetPreViewImage?md5=${md5}`; |
| | | } |
| | | if (width) src += `&width=${width}`; |
| | | if (height) src += `&height=${height}`; |
| | | return src; |
| | | }, |
| | | // 数组转为字符串方法 |
| | | arrayToString(data) { |
| | | // 检查是否为数组 |
| | |
| | | } |
| | | } else if ( |
| | | citem.questionType == "singleChoice" || |
| | | citem.questionType == "judge" |
| | | citem.questionType == "judge" || |
| | | citem.questionType == 'dropdown' |
| | | ) { |
| | | if (citem.id == "63825") console.log("i", item); |
| | | citem.isRight = citem.answer == citem.userAnswer; |
| | | } else if (citem.questionType == "shortAnswer") { |
| | | // 简答 翻译 |
| | |
| | | </script> |
| | | |
| | | |
| | | <style lang="less" > |
| | | .titleText img { |
| | | max-width: 80%; |
| | | } |
| | | </style> |
| | | |
| | | <style lang="less" scoped> |
| | | .catalogName { |
| | | text-indent: 1em !important; |
| | |
| | | font-size: 16px; |
| | | line-height: 32px; |
| | | color: #000; |
| | | |
| | | .input-txt { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | align-items: center; |
| | | } |
| | | span { |
| | | display: inline-block; |
| | | font-size: 16px; |
| | | // line-height: 26px; |
| | | color: #000; |
| | | font-weight: 400; |
| | | margin-top: 6px; |