scoreAndAnswerAdmin.vue 983 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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">正确答案:<text>{{data.result}}</text></view>
  7. <view class="ndda-row">您的答案:<text>{{data.reply}}</text></view>
  8. <view class="dajx-row">答案解析:
  9. <rich-text :nodes="data.answer"></rich-text>
  10. </view>
  11. </view>
  12. </uni-popup>
  13. </template>
  14. <script setup>
  15. import {ref,reactive} from "vue";
  16. const popupRef = ref('popupRef');
  17. const data = reactive({
  18. score: 0,
  19. reply: '',
  20. result: '',
  21. answer: '',
  22. })
  23. function showPopup(options) {
  24. console.log('options',options)
  25. data.score = options.score;
  26. data.reply = options.reply;
  27. data.result = options.result;
  28. data.answer = options.answer;
  29. popupRef.value.open('bottom')
  30. }
  31. defineExpose({showPopup})
  32. </script>
  33. <style>
  34. </style>