学员端小程序
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.

54 lines
996 B

1 year ago
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">报名</view>
  9. </view>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. props: ['classList']
  17. }
  18. </script>
  19. <style lang="scss" scoped>
  20. .tabCon {
  21. width: 100%;
  22. .tab1 {
  23. width: 100%;
  24. .card {
  25. margin-top: 24rpx;
  26. padding: 28rpx 28rpx 28rpx 36rpx;
  27. .name {
  28. font-size: 32rpx;
  29. color: #333;
  30. margin-bottom: 36rpx;
  31. }
  32. .flex-b {
  33. .price {
  34. font-size: 44rpx;
  35. color: #ED733E;
  36. }
  37. .btn {
  38. width: 130rpx;
  39. height: 60rpx;
  40. background: #1989FA;
  41. border-radius: 8rpx;
  42. font-size: 28rpx;
  43. color: #fff;
  44. text-align: center;
  45. line-height: 60rpx;
  46. }
  47. }
  48. }
  49. }
  50. }
  51. </style>