ClassTimeTip.vue 879 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <text
  3. style="
  4. display: inline-block;
  5. color: #ff2d55;
  6. font-size: 24rpx;
  7. line-height: 30rpx;
  8. "
  9. v-if="classInfo.gradeId"
  10. >
  11. <text>{{
  12. classInfo.classStatus == 0
  13. ? "暂未开班"
  14. : classInfo.classEndTime
  15. ? `有效期至:${$method.timestampToTime(
  16. classInfo.classEndTime
  17. )},本班还剩${$method.GetRTime(classInfo.classEndTime)}天将结束学习,`
  18. : ""
  19. }}</text>
  20. 已报名人数{{ classInfo.studentNumAll || 0 }}/{{ classInfo.studentUpper }}人
  21. </text>
  22. </template>
  23. <script>
  24. export default {
  25. props: {
  26. classInfo: {
  27. type: Object,
  28. default: () => {
  29. return {};
  30. },
  31. },
  32. },
  33. };
  34. </script>
  35. <style scoped lang="scss">
  36. .redTxt {
  37. font-size: 24rpx;
  38. font-family: PingFang SC;
  39. color: #ff2d55;
  40. line-height: 30rpx;
  41. }
  42. </style>