洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
2.7 KiB

10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
8 months ago
9 months ago
10 months ago
9 months ago
10 months ago
5 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
  1. <template>
  2. <view class="pageBg">
  3. <view class="pad">
  4. <view class="card" v-for="(item,index) in list" :key="index" >
  5. <view class="h2">{{ item.text }}</view>
  6. <view class="con">
  7. <view class="item_row">
  8. <view class="item">
  9. <view class="val">{{ item.total }} <text>分钟</text></view>
  10. <view class="lab">已完成学时</view>
  11. </view>
  12. <view class="item">
  13. <view class="val">{{ item.time }} <text>分钟</text></view>
  14. <view class="lab">应完成学时</view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import { imgUrl } from '@/config/site.config'
  24. import { getStudentProcess } from '@/config/api.js'
  25. export default {
  26. data() {
  27. return {
  28. imgUrl: imgUrl+'carlearTimeBg.png',
  29. backgroundSize: '100% 100%',
  30. list: []
  31. }
  32. },
  33. onLoad() {
  34. this.getStudentProcessFn()
  35. },
  36. onPullDownRefresh() {
  37. this.getStudentProcessFn().then((res)=>{
  38. uni.stopPullDownRefresh()
  39. })
  40. },
  41. methods: {
  42. async getStudentProcessFn() {
  43. const {data: res} = await getStudentProcess({studentId: this.studentId})
  44. this.list = [
  45. {total: res.subjectOneTotalTime, time: res.subjectOneValidTtime, text: '科目一'},
  46. {total: res.subjectTwoTotalTime, time: res.subjectTwoValidTtime, text: '科目二'},
  47. {total: res.subjectThreeTotalTime, time: res.subjectThreeValidTtime, text: '科目三'},
  48. ]
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .pad {
  55. marginp: 20rpx 0;
  56. }
  57. .card {
  58. width: 100%;
  59. height: 224rpx;
  60. margin-bottom: 20rpx;
  61. padding: 0 20rpx;
  62. // background: url('http://192.168.1.20:81/zhili/image/20230822/ca8f14281ac9412987b23ad43bfb50a1.png') no-repeat;
  63. .h2 {
  64. height: 92rpx;
  65. line-height: 92rpx;
  66. text-align: center;
  67. // background-color: #A6E2FF;
  68. color: #333;
  69. font-size: 32rpx;
  70. font-weight: 700;
  71. border-bottom: 1rpx solid #F6F7FA;
  72. }
  73. .con {
  74. width: 100%;
  75. padding: 20rpx 0 0 0;
  76. .item_row {
  77. display: flex;
  78. width: 100%;
  79. height: 90rpx;
  80. align-items: center;
  81. .item {
  82. flex: 1;
  83. text-align: center;
  84. display: flex;
  85. flex-direction: column;
  86. &:first-child {
  87. border-right: 1rpx solid #F6F7FA;
  88. }
  89. .lab {
  90. font-size: 24rpx;
  91. color: #999;
  92. }
  93. .val {
  94. font-size: 36rpx;
  95. color: #333;
  96. font-weight: 700;
  97. margin-bottom: 6rpx;
  98. text {
  99. color: #999;
  100. font-weight: 400;
  101. font-size: 18rpx;
  102. margin-left: 10rpx;
  103. margin-top: -6rpx;
  104. }
  105. }
  106. }
  107. }
  108. }
  109. .chain {
  110. width: 28rpx;
  111. height: 100rpx;
  112. position: absolute;
  113. top: -56rpx;
  114. &.left {
  115. left: 60rpx;
  116. }
  117. &.right {
  118. right: 60rpx !important;
  119. }
  120. }
  121. }
  122. </style>