工行这里学车报名流程h5
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.

110 lines
2.1 KiB

1 year ago
1 year ago
  1. <template>
  2. <view class="ul" v-if="listData.length">
  3. <view class="li" v-for="(item,index) in listData" :key="index" @click="goDetail(item)">
  4. <view class="cover">
  5. <image :src="item.iconUrl" mode=""></image>
  6. </view>
  7. <view class="borderLine">
  8. <view class="centerInfo">
  9. <view class="name">{{item.schoolName}}</view>
  10. <view class="star">
  11. <u-rate :count="5" v-model="item.starLevel" active-color="#F5682D" disabled></u-rate>
  12. <view class="starText">
  13. {{item.starLevel}}
  14. </view>
  15. </view>
  16. <view class="district">上城区</view>
  17. </view>
  18. <view class="rightCon">
  19. <view class="btn">查看班型</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. props: ['listData'],
  28. data() {
  29. return {}
  30. },
  31. methods: {
  32. goDetail(item) {
  33. this.$store.commit('upDateTrainingSchoolId', item)
  34. this.$goPage('/pages/schoolDetails/details')
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .ul {
  41. width: 100%;
  42. .li {
  43. width: 100%;
  44. display: flex;
  45. padding: 20rpx 0 0 0;
  46. .cover {
  47. width: 204rpx;
  48. height: 140rpx;
  49. border-radius: 14rpx;
  50. overflow: hidden;
  51. flex-shrink: 0;
  52. image {
  53. display: block;
  54. width: 100%;
  55. height: 100%;
  56. }
  57. }
  58. .borderLine {
  59. flex: 1;
  60. width: 0;
  61. padding-bottom: 44rpx;
  62. border-bottom: 1rpx solid #E8E9EC;
  63. display: flex;
  64. }
  65. .centerInfo {
  66. width: 0;
  67. flex: 1;
  68. padding: 0 0 0 20rpx;
  69. .name {
  70. font-size: 32rpx;
  71. color: #333;
  72. font-weight: 600;
  73. }
  74. .star {
  75. display: flex;
  76. align-items: center;
  77. margin: 10rpx 0 14rpx 0;
  78. .starText {
  79. font-size: 24rpx;
  80. color: #F88F36;
  81. }
  82. }
  83. .district {
  84. font-size: 24rpx;
  85. color: #333;
  86. }
  87. }
  88. .rightCon {
  89. padding-top: 36rpx;
  90. .btn {
  91. width: 144rpx;
  92. height: 56rpx;
  93. background: linear-gradient(180deg, #3593FB 0%, #53D3E5 100%);
  94. border-radius: 36rpx;
  95. font-size: 28rpx;
  96. color: #fff;
  97. line-height: 56rpx;
  98. text-align: center;
  99. }
  100. }
  101. }
  102. }
  103. </style>