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

71 lines
1.4 KiB

10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 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('upDateSchoolClass', item)
  23. this.$u.utils.clickSignUp()
  24. }
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .tabCon {
  30. width: 100%;
  31. padding: 0 20rpx 1rpx 20rpx;
  32. .tab1 {
  33. width: 100%;
  34. .card {
  35. height: 143rpx;
  36. background: #F6F7FA;
  37. border: 1px solid #F6F7FA;
  38. border-radius: 20rpx;
  39. padding: 20rpx;
  40. margin-bottom: 20rpx;
  41. .name {
  42. font-size: 28rpx;
  43. color: #333;
  44. margin-bottom: 20rpx;
  45. font-weight: 700;
  46. }
  47. .price {
  48. font-size: 36rpx;
  49. color: $themC;
  50. font-weight: 700;
  51. text {
  52. font-size: 24rpx;
  53. font-weight: 400;
  54. }
  55. }
  56. .btn {
  57. width: 112rpx;
  58. height: 55rpx;
  59. background: $themC;
  60. border-radius: 28rpx;
  61. font-size: 24rpx;
  62. color: #fff;
  63. text-align: center;
  64. line-height: 55rpx;
  65. }
  66. }
  67. }
  68. }
  69. </style>