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

84 lines
1.8 KiB

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