scroll-list-card-chengji.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="scroll-list-card mobile-card-box">
  3. <!-- <view>
  4. <img style="width: 100rpx;height: 100rpx;;" :src="data.pic" alt="" />
  5. </view> -->
  6. <view class="mobile-card-title">{{data.ksName}}</view>
  7. <view class="mobile-card-row">
  8. <view class="timeSpan">总分:{{data.ksScore === null ? '': data.ksScore}}</view>
  9. <view class="timeSpan">得分:{{data.userScore === null ? '' : data.userScore}}</view>
  10. </view>
  11. <view class="mobile-card-row">
  12. <view class="timeSpan">及格分:{{data.okScore=== null ? '': data.okScore}}</view>
  13. <view class="timeSpan">时间:{{data.answerStartTime === null ? '': data.answerStartTime}}</view>
  14. </view>
  15. <button class="mobile-card-btn" @click="lookShijuan(data)">查看试卷</button>
  16. <!-- <view @click="lookPaiming(data)">查看排名</view> -->
  17. </view>
  18. </template>
  19. <script setup>
  20. import {
  21. toRefs,
  22. ref,
  23. computed
  24. } from "vue";
  25. const props = defineProps({
  26. data: {
  27. type: Object,
  28. },
  29. });
  30. const Emits = defineEmits(['lookShijuan', 'lookPaiming']);
  31. const {
  32. data
  33. } = toRefs(props);
  34. function lookShijuan(data) {
  35. Emits('lookShijuan', data)
  36. }
  37. function lookPaiming(data) {
  38. Emits('lookPaiming', data)
  39. }
  40. </script>