exam.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view class="container">
  3. <!-- 返回按钮 -->
  4. <back text="评测详情"></back>
  5. <!-- 单个详情 -->
  6. <view class="detail-item">
  7. <view class="flex" style="width: 100%;height: 90rpx;">
  8. <view class="flex" style="margin: -30rpx 0 0 10rpx;">
  9. <view class="index" :style="{backgroundColor: singleDetail.examInfo.progress === 'finish'? '#23b46c': '#4169E1' }">
  10. </view>
  11. <view class="name">{{singleDetail.examInfo.name}}</view>
  12. </view>
  13. <view :class="singleDetail.examInfo.progress === 'finish'?'t-icon t-icon-yiwancheng1':'t-icon t-icon-jinhangzhong'" style="margin-left: auto; width: 90rpx; height: 90rpx;"></view>
  14. </view>
  15. <!-- 正文 -->
  16. <view class="content-box">
  17. <view style="display:flex;flex-direction: column;padding: 0 30rpx;">
  18. <view class="flex" style="margin-bottom: 15rpx;">
  19. <view class="block-tag-box">
  20. <view class="block-tag">{{singleDetail.examInfo.subjects[0].name}}</view>
  21. </view>
  22. <view class="block-tag-box" style="margin-left: 20rpx;">
  23. <view class="block-tag">{{singleDetail.examInfo.examType.name}}</view>
  24. </view>
  25. </view>
  26. <view class="flex">
  27. <view class="subtitle">布置老师:</view>
  28. <view class="subtitle-info" style="margin-left: 10rpx;">{{singleDetail.examInfo.creatorId}}</view>
  29. <view class="subtitle" style="margin-left: 20rpx;">截止时间:</view>
  30. <view class="subtitle-info" style="margin-left: 10rpx;">
  31. {{$timestampToTime(singleDetail.examInfo.endTime)}}</view>
  32. </view>
  33. </view>
  34. <view class="content-detail-box">
  35. <view class="title-box" :style="{backgroundColor: singleDetail.examInfo.progress === 'finish'? '#23b46c': '#4169E1' }">
  36. <view class="content-subtitle">{{singleDetail.examInfo.papers[0].name}}</view>
  37. </view>
  38. <view class="content-detail"></view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import {
  46. mapState,
  47. mapMutations
  48. } from 'vuex'
  49. export default {
  50. computed: {
  51. ...mapState('m_children', ['singleDetail'])
  52. },
  53. data(){
  54. return{
  55. };
  56. },
  57. onLoad() {
  58. },
  59. methods:{
  60. }
  61. }
  62. </script>
  63. <style lang="scss">
  64. @import '@/subpkg/common/detailpage.scss';
  65. </style>