ClassTimeTip.vue 850 B

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