CourseManagement.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <template>
  2. <view class="CourseManagement">
  3. <view class="Course-list">
  4. <view class="Course-list-item" v-for="(item, index) in courseListData" :key="index">
  5. <view class="Course-left">
  6. <image src="../../../static/image/course/img1.png" mode=""></image>
  7. </view>
  8. <view class="Course-right">
  9. <view class="title">
  10. <view class="title-content">
  11. {{item.title}}
  12. </view>
  13. <view class="title-money">
  14. ¥ {{item.money}}
  15. </view>
  16. </view>
  17. <view class="Course-time">
  18. <text class="Course-lesson-time">{{item.time}}</text>
  19. <text class="spacer">|</text>
  20. <text class="Course-lesson-week">{{item.times}}</text>
  21. </view>
  22. <view class="Course-btn">
  23. <view class="cancel-btn" v-show="true">
  24. 我要退款
  25. </view>
  26. <view class="submit-btn">
  27. 立即上课
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="placeholder-view"></view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. name:'CourseManagement',
  39. data() {
  40. return {
  41. courseListData:[
  42. {
  43. img:'../../../static/image/course/img1.png',
  44. title: '4-6岁幼儿兴趣班',
  45. money: '30',
  46. time:'共7课时',
  47. times: '周二、周四上课',
  48. content: '适合4岁至6岁的小朋友学习开发运动潜力',
  49. },
  50. {
  51. img:'../../../static/image/course/img2.png',
  52. title: '7-9岁幼儿兴趣班',
  53. money: '40',
  54. time:'共7课时',
  55. times: '周二、周四上课',
  56. content: '适合4岁至6岁的小朋友学习开发运动潜力',
  57. },
  58. {
  59. img:'../../../static/image/course/img3.png',
  60. title: '9-12岁幼儿兴趣班',
  61. money: '60',
  62. time:'共7课时',
  63. times: '周二、周四上课',
  64. content: '适合4岁至6岁的小朋友学习开发运动潜力',
  65. },
  66. {
  67. img:'../../../static/image/course/img4.png',
  68. title: '12-15岁幼儿兴趣班',
  69. money: '70',
  70. time:'共7课时',
  71. times: '周二、周四上课',
  72. content: '适合4岁至6岁的小朋友学习开发运动潜力',
  73. },
  74. ],
  75. }
  76. },
  77. methods: {
  78. }
  79. }
  80. </script>
  81. <style lang="scss">
  82. .placeholder-view{
  83. width: 100%;
  84. height: 100upx;
  85. }
  86. .Course-list-item{
  87. width: 100%;
  88. height: 295upx;
  89. margin: 10upx 0;
  90. padding: 20upx 15upx;
  91. background: #FFFFFF;
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. box-shadow:0px 7px 8px 0px rgba(237,237,237,0.36);
  96. }
  97. .Course-left{
  98. // width: 40%;
  99. width: 219upx;
  100. height: 219upx;
  101. margin-right: 35upx;
  102. image{
  103. width: 100%;
  104. height: 100%;
  105. }
  106. }
  107. .Course-right{
  108. width: 60%;
  109. .title{
  110. width: 100%;
  111. height: 40upx;
  112. display: flex;
  113. align-items: center;
  114. justify-content: space-between;
  115. margin-bottom: 27upx;
  116. text-overflow: ellipsis;
  117. overflow: hidden;
  118. white-space: nowrap;
  119. .title-content,.title-money{
  120. font-size:30upx;
  121. font-family:Source Han Sans CN;
  122. font-weight:400;
  123. color:rgba(72,72,72,1);
  124. }
  125. .title-content{
  126. width: 70%;
  127. text-overflow: ellipsis;
  128. overflow: hidden;
  129. white-space: nowrap;
  130. }
  131. .title-money{
  132. width: 30%;
  133. color: #FF1111;
  134. text-align: right;
  135. text-overflow: ellipsis;
  136. overflow: hidden;
  137. white-space: nowrap;
  138. }
  139. }
  140. .Course-time{
  141. width: 100%;
  142. height: 60upx;
  143. text-overflow: ellipsis;
  144. overflow: hidden;
  145. white-space: nowrap;
  146. .Course-lesson-time,.Course-lesson-week{
  147. text-align: center;
  148. font-size:26upx;
  149. font-family:Source Han Sans CN;
  150. font-weight:400;
  151. color:rgba(97,97,97,1);
  152. }
  153. .spacer{
  154. text-align: center;
  155. font-size:26upx;
  156. font-family:Source Han Sans CN;
  157. font-weight:400;
  158. color:rgba(97,97,97,1);
  159. margin: 0 25upx;
  160. }
  161. }
  162. .Course-btn{
  163. width: 100%;
  164. height: 60upx;
  165. margin-top: 35upx;
  166. display: flex;
  167. align-items: center;
  168. justify-content: flex-end;
  169. .cancel-btn{
  170. width: 177upx;
  171. height: 59upx;
  172. line-height: 57upx;
  173. font-size: 30upx;
  174. font-family: Source Han Sans CN;
  175. font-weight: 400;
  176. color: rgba(129,129,129,1);
  177. border: 1px solid #A0A0A0;
  178. text-align: center;
  179. border-radius: 30upx;
  180. margin-right: 34upx;
  181. }
  182. .submit-btn{
  183. width: 177upx;
  184. height: 59upx;
  185. line-height: 57upx;
  186. font-size: 30upx;
  187. font-family: Source Han Sans CN;
  188. font-weight: 400;
  189. color: #FFFFFF;
  190. background: #F09A21;
  191. border: 1px solid #F09A21;
  192. text-align: center;
  193. border-radius: 30upx;
  194. }
  195. }
  196. }
  197. </style>