123456789101112131415161718192021222324252627282930313233343536373839 |
- <template>
- <uni-popup ref="popupRef" background-color="#fff" >
- <view class="question-score-answer-admin">
- <view>本体得分: <text>{{data.score}}分</text></view>
- <view>您的答案:<text>{{data.reply}}</text></view>
- <view>正确答案: <text>{{data.result}}</text></view>
- <view>答案解析:
- <rich-text :nodes="data.answer"></rich-text>
- </view>
- </view>
- </uni-popup>
- </template>
- <script setup>
- import {ref,reactive} from "vue";
- const popupRef = ref('popupRef');
- const data = reactive({
- score: 0,
- reply: '',
- result: '',
- answer: '',
- })
-
- function showPopup(options) {
- console.log('options',options)
- data.score = options.score;
- data.reply = options.reply;
- data.result = options.result;
- data.answer = options.answer;
-
- popupRef.value.open('bottom')
- }
-
- defineExpose({showPopup})
- </script>
- <style>
- </style>
|