activity.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="courseModel" style="margin-top: 12px">
  3. <h2 class="titles">
  4. <img :src="trainSmallBg" />
  5. <span>小班课</span>
  6. </h2>
  7. <div class="section">
  8. <el-row class="title-row">
  9. <el-col :span="12">课程类型</el-col>
  10. <el-col :span="5" :offset="1" style="text-align: right;">课程数</el-col>
  11. <el-col :span="6" style="text-align: right;">价格</el-col>
  12. </el-row>
  13. <div v-for="(item, index) in activityList" :key="index">
  14. <el-row class="option-row" @click.native="onCourseChange(item)">
  15. <el-col :span="12">
  16. <i class="check_default" :class="[item.isStatus ? 'check_active' : '', item.optionalFlag ? 'disabled' : '']"></i>
  17. <span style="display: flex; align-items: center;">
  18. <template>{{ item.categoryName }}</template>
  19. </span>
  20. </el-col>
  21. <el-col :span="6">
  22. <span style="color: #AAA; font-size: 12px">{{ item.num }}节</span>
  23. </el-col>
  24. <el-col :span="6">
  25. <span style="color: #1A1A1A">¥{{ item.actualAmount | moneyFormat }}</span>
  26. </el-col>
  27. </el-row>
  28. </div>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. export default {
  34. name: 'courseModel',
  35. props: {
  36. trainSmallBg: String,
  37. activityList: Array
  38. },
  39. methods: {
  40. onCourseChange(item) {
  41. this.$emit('onCheckItem', item)
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="less" scoped>
  47. .giveTitle {
  48. margin-top: 16px;
  49. padding-top: 8px;
  50. color: #1A1A1A;
  51. font-size: 14;
  52. padding-left: 24;
  53. }
  54. .small_point {
  55. position: absolute;
  56. left: 8px;
  57. top: 7px;
  58. width: 6px;
  59. height: 6px;
  60. background: #01C1B5;
  61. border-radius: 50%;
  62. }
  63. @import url("./signUpPayment.less");
  64. </style>