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

61 lines
1.2 KiB

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="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. async goSign(item) {
  19. this.$store.commit('upDateSchoolCoach', {})
  20. this.$store.commit('upDateSchoolClass', item)
  21. this.$u.utils.clickSignUp()
  22. }
  23. }
  24. }
  25. </script>
  26. <style lang="scss" scoped>
  27. .tabCon {
  28. width: 100%;
  29. .tab1 {
  30. width: 100%;
  31. .card {
  32. margin-top: 24rpx;
  33. padding: 28rpx 28rpx 28rpx 36rpx;
  34. .name {
  35. font-size: 32rpx;
  36. color: #333;
  37. margin-bottom: 36rpx;
  38. }
  39. .flex-b {
  40. .price {
  41. font-size: 44rpx;
  42. color: #ED733E;
  43. }
  44. .btn {
  45. width: 130rpx;
  46. height: 60rpx;
  47. background: #1989FA;
  48. border-radius: 8rpx;
  49. font-size: 28rpx;
  50. color: #fff;
  51. text-align: center;
  52. line-height: 60rpx;
  53. }
  54. }
  55. }
  56. }
  57. }
  58. </style>