学员端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.2 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="tabCon">
  3. <view class="tab1">
  4. <view class="card" v-for="(item, index) in classList" :key="index">
  5. <view class="name">{{ item.name }}</view>
  6. <view class="flex-b">
  7. <view class="price">{{ $u.utils.priceTo(item.totalAmount) }}</view>
  8. <view class="btn" @click="goSign(item)">报名</view>
  9. </view>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. props: ['classList'],
  17. methods: {
  18. goSign(item) {
  19. this.$store.commit('upDateSchoolCoach', {})
  20. this.$store.commit('upDateSchoolClass', item)
  21. this.$goPage('/pages/indexEntry/enroll/enroll')
  22. // console.log(this.$store.state.school.schoolCoach)
  23. }
  24. }
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. .tabCon {
  29. width: 100%;
  30. .tab1 {
  31. width: 100%;
  32. .card {
  33. margin-top: 24rpx;
  34. padding: 28rpx 28rpx 28rpx 36rpx;
  35. .name {
  36. font-size: 32rpx;
  37. color: #333;
  38. margin-bottom: 36rpx;
  39. }
  40. .flex-b {
  41. .price {
  42. font-size: 44rpx;
  43. color: #ED733E;
  44. }
  45. .btn {
  46. width: 130rpx;
  47. height: 60rpx;
  48. background: #1989FA;
  49. border-radius: 8rpx;
  50. font-size: 28rpx;
  51. color: #fff;
  52. text-align: center;
  53. line-height: 60rpx;
  54. }
  55. }
  56. }
  57. }
  58. }
  59. </style>