scoreAndAnswerAdmin.vue 863 B

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