scoreAndAnswerJianda.vue 947 B

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