scoreAndAnswerAdminTiankong.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <uni-popup ref="popupRef" background-color="#fff" >
  3. <view class="phone-question-answer-box">
  4. <view class="phone-line-title">答案解析</view>
  5. <view class="btdf-row">本题得分:<text>{{data.score}}</text>分</view>
  6. <view class="zqda-row">正确答案:
  7. <view v-for="(item,index) in data.result">{{`填空${index+1}`}} : {{item}}</view>
  8. </view>
  9. <view class="ndda-row">您的答案:
  10. <view v-for="(item,index) in data.reply"> {{`填空${index+1}`}}: {{item}}</view>
  11. </view>
  12. <view class="dajx-row">答案解析:
  13. <rich-text :nodes="data.answer"></rich-text>
  14. </view>
  15. </view>
  16. </uni-popup>
  17. </template>
  18. <script setup>
  19. import {ref,reactive} from "vue";
  20. const popupRef = ref('popupRef');
  21. const data = reactive({
  22. score: 0,
  23. reply: '',
  24. result: '',
  25. answer: '',
  26. })
  27. function showPopup(options) {
  28. console.log('options',options)
  29. data.score = options.score;
  30. data.reply = options.reply;
  31. data.result = options.result;
  32. data.answer = options.answer;
  33. popupRef.value.open('bottom')
  34. }
  35. defineExpose({showPopup})
  36. </script>
  37. <style>
  38. </style>