question-type.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="questionBankAnswer-flex">
  3. <view class="questionBankAnswer-top-l">
  4. <view class="questionBankAnswer-tx">
  5. {{ current_timu.type == 1 ? "单选题" : current_timu.type == 2 ? "多选题" : current_timu.type == 3 ?'判断题' : current_timu.type == 4 ?'填空题' : current_timu.type == 5 ?'简答题' : '' }}
  6. </view>
  7. <view class="questionBankAnswer-dc djs" v-if="over_time && over_time.second != undefined">
  8. 倒计时:
  9. <view>
  10. <uni-countdown :show-day="false" color="#fff" background-color="#3c7bfc" border-color="#3c7bfc"
  11. :hour="over_time.hour" @timeup="timeup" :minute="over_time.minute" :second="over_time.second">
  12. </uni-countdown>
  13. </view>
  14. </view>
  15. <view class="questionBankAnswer-top">
  16. <span>{{ timu_order }}</span>
  17. /{{ total_num }}
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. over_time: {
  26. type: Object,
  27. default: function() {
  28. return {};
  29. },
  30. },
  31. current_timu: {
  32. type: Object,
  33. default: function() {
  34. return {}
  35. },
  36. },
  37. timu_order: {
  38. type: Number,
  39. default: 0
  40. },
  41. total_num: {
  42. type: Number,
  43. default: 0
  44. },
  45. },
  46. created() {
  47. console.log(this.timu_order)
  48. },
  49. methods: {
  50. timeup() {
  51. this.$emit('timeup')
  52. },
  53. }
  54. }
  55. </script>
  56. <style>
  57. </style>