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

91 lines
1.8 KiB

10 months ago
  1. <template>
  2. <view class="step2">
  3. <view class="card" v-for="(item,index) in list" :key="index" :class="{active: siteId==item.id}" @click="chooseSite(item)">
  4. <view class="leftTxt">
  5. <view class="name oneRowText">{{ item.name}}</view>
  6. <view class="adr">{{ item.address }}</view>
  7. </view>
  8. <view class="icon">
  9. <image src="@/static/images/car/btn_daohang_cli.png" mode="" v-if="siteId==item.id"></image>
  10. <image src="@/static/images/car/btn_daohang.png" mode="" v-else></image>
  11. </view>
  12. </view>
  13. <view class="poz_btn">
  14. <view class="btn_row" >
  15. <view class="btn" @click="changeStep(2)">下一步</view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. props: ['list', 'siteId'],
  23. methods: {
  24. changeStep(val) {
  25. if(!this.siteId) return this.$u.toast('请选择考场')
  26. this.$emit('changeStep', val)
  27. },
  28. chooseSite(item) {
  29. this.$emit('chooseSite', item)
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .poz_btn {
  36. position: fixed;
  37. bottom: 0;
  38. left: 0;
  39. padding: 32rpx;
  40. width: 100%;
  41. background: #F6F6F6;
  42. }
  43. .step2 {
  44. width: 100%;
  45. padding-bottom: 120rpx;
  46. .card {
  47. padding: 28rpx 36rpx;
  48. display: flex;
  49. justify-content: space-between;
  50. align-items: center;
  51. margin-bottom: 20rpx;
  52. &.active {
  53. background: rgba(25,137,250,0.1);
  54. border: 2rpx solid #1989FA;
  55. color: $themC;
  56. }
  57. .leftTxt {
  58. width: 0;
  59. flex: 1;
  60. .name {
  61. font-size: 32rpx;
  62. font-weight: 600;
  63. }
  64. .adr {
  65. font-size: 24rpx;
  66. margin-top: 8rpx;
  67. }
  68. }
  69. .icon {
  70. width: 72rpx;
  71. height: 72rpx;
  72. border-radius: 50%;
  73. overflow: hidden;
  74. }
  75. }
  76. }
  77. .btn {
  78. width: 47%;
  79. height: 72rpx;
  80. background: #1989FA;
  81. border-radius: 8rpx;
  82. font-size: 28rpx;
  83. color: #fff;
  84. text-align: center;
  85. line-height: 72rpx;
  86. margin: 0 auto;
  87. }
  88. </style>