洛阳学员端
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.

72 lines
1.5 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months 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="flex-b">
  6. <view class="left_con">
  7. <view class="name">{{ item.name }}</view>
  8. <view class="price"><text></text> {{ $u.utils.priceTo(item.totalAmount) }}</view>
  9. </view>
  10. <view class="btn" @click="goSign(item)">报名</view>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. props: ['classList'],
  19. methods: {
  20. async goSign(item) {
  21. this.$store.commit('upDateSchoolCoach', {})
  22. this.$store.commit('updateSchool', {})
  23. this.$store.commit('upDateSchoolClass', item)
  24. this.$u.utils.clickSignUp()
  25. }
  26. }
  27. }
  28. </script>
  29. <style lang="scss" scoped>
  30. .tabCon {
  31. width: 100%;
  32. padding: 0 20rpx 1rpx 20rpx;
  33. .tab1 {
  34. width: 100%;
  35. .card {
  36. height: 143rpx;
  37. background: #F6F7FA;
  38. border: 1px solid #F6F7FA;
  39. border-radius: 20rpx;
  40. padding: 20rpx;
  41. margin-bottom: 20rpx;
  42. .name {
  43. font-size: 28rpx;
  44. color: #333;
  45. margin-bottom: 20rpx;
  46. font-weight: 700;
  47. }
  48. .price {
  49. font-size: 36rpx;
  50. color: $themC;
  51. font-weight: 700;
  52. text {
  53. font-size: 24rpx;
  54. font-weight: 400;
  55. }
  56. }
  57. .btn {
  58. width: 112rpx;
  59. height: 55rpx;
  60. background: $themC;
  61. border-radius: 28rpx;
  62. font-size: 24rpx;
  63. color: #fff;
  64. text-align: center;
  65. line-height: 55rpx;
  66. }
  67. }
  68. }
  69. }
  70. </style>