index-legacy.4ae11942.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. System.register(['./index-legacy.f525a5c0.js'], function (e) {
  2. 'use strict'
  3. var t, s, r, i, n
  4. return {
  5. setters: [
  6. function (e) {
  7. ;(t = e.d), (s = e.c), (r = e.bw), (i = e.a), (n = e.az)
  8. }
  9. ],
  10. execute: function () {
  11. e(
  12. 'I',
  13. t({
  14. name: 'item',
  15. props: {
  16. item: {
  17. type: Object,
  18. default: function () {
  19. return {}
  20. }
  21. }
  22. },
  23. render: function () {
  24. var e = this.item
  25. return s(
  26. 'div',
  27. {
  28. class:
  29. 'border border-[#f5f5f5] rounded-sm w-[262px] h-[302px] m-auto overflow-hidden relative hover:shadow-md transition-all'
  30. },
  31. [
  32. e.subjectName &&
  33. s(
  34. 'div',
  35. {
  36. class:
  37. 'absolute top-2 right-3 bg-black/40 text-white text-sm rounded-sm px-3 h-7 flex items-center justify-center z-10'
  38. },
  39. [e.subjectName]
  40. ),
  41. s(
  42. r,
  43. {
  44. class: 'w-full h-[175px] align-middle',
  45. fit: 'cover',
  46. src: e.backgroundPic
  47. },
  48. null
  49. ),
  50. s(
  51. 'div',
  52. { class: 'mx-2.5 py-3.5 border-b border-b-[#F2F2F2]' },
  53. [
  54. s(
  55. 'div',
  56. {
  57. class:
  58. 'text-lg leading-none font-semibold whitespace-nowrap overflow-hidden text-ellipsis'
  59. },
  60. [e.courseGroupName]
  61. ),
  62. s('div', { class: 'text-sm text-[#999] pt-2.5' }, [
  63. e.studentCount,
  64. i('人已购买')
  65. ])
  66. ]
  67. ),
  68. s(
  69. 'div',
  70. { class: 'mx-2.5 py-4 flex items-center justify-between' },
  71. [
  72. s('div', { class: 'flex items-center' }, [
  73. s(
  74. r,
  75. {
  76. class:
  77. 'w-[22px] h-[22px] align-middle rounded-full overflow-hidden mr-2',
  78. 'object-fit': 'cover',
  79. src: e.avatar || n
  80. },
  81. null
  82. ),
  83. s('span', null, [e.teacherName])
  84. ]),
  85. s(
  86. 'div',
  87. {
  88. class:
  89. 'font-semibold text-[15px] leading-5 text-[#2DC7AA]'
  90. },
  91. [i('¥'), e.coursePrice, i('/'), e.courseNum, i('课时')]
  92. )
  93. ]
  94. )
  95. ]
  96. )
  97. }
  98. })
  99. )
  100. }
  101. }
  102. })