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.

reportLossCard.vue 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <view class="reportLossCard">
  3. <view class="card_item">
  4. <image :src="`${$imgUrl}equipmentService/card3.png`" mode="aspectFill"></image>
  5. <text>ETC卡挂失/解除挂失</text>
  6. <view class="circle" @click="active=1">
  7. <view :class="active==1?'circle2':''">
  8. </view>
  9. </view>
  10. </view>
  11. <view class="card_item" :class="active==2">
  12. <image :src="`${$imgUrl}equipmentService/card1.png`" mode="aspectFill"></image>
  13. <text>OBU设备挂失/解除挂失</text>
  14. <view class="circle" @click="active=2">
  15. <view :class="active==2?'circle2':''">
  16. </view>
  17. </view>
  18. </view>
  19. <view class="card_item" :class="active==3">
  20. <image :src="`${$imgUrl}equipmentService/card2.png`" mode="aspectFill"></image>
  21. <text>卡签组合挂失/解除挂失</text>
  22. <view class="circle" @click="active=3">
  23. <view :class="active==3?'circle2':''">
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script setup lang="ts">
  30. import {
  31. ref
  32. } from "vue";
  33. let active = ref(1)
  34. </script>
  35. <style>
  36. page {
  37. width: 100%;
  38. height: 100%;
  39. }
  40. </style>
  41. <style lang="scss" scoped>
  42. .reportLossCard {
  43. height: 100%;
  44. background-color: #EEF7F7;
  45. padding: 30rpx;
  46. .card_item {
  47. margin-bottom: 30rpx;
  48. background-color: #fff;
  49. height: 150rpx;
  50. border-radius: 20rpx;
  51. display: flex;
  52. justify-items: center;
  53. align-items: center;
  54. padding: 20rpx;
  55. text {
  56. font-size: 32rpx;
  57. font-family: Noto Sans S Chinese;
  58. font-weight: 400;
  59. color: #333333;
  60. line-height: 58rpx;
  61. flex: 1;
  62. margin-left: 20rpx;
  63. }
  64. image {
  65. width: 100rpx;
  66. height: 90rpx;
  67. }
  68. .circle {
  69. width: 50rpx;
  70. height: 50rpx;
  71. border: 2rpx solid #00B38A;
  72. border-radius: 50rpx;
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. }
  77. .circle2 {
  78. width: 40rpx;
  79. height: 40rpx;
  80. border-radius: 40rpx;
  81. background-color: #00B38A;
  82. }
  83. }
  84. }
  85. </style>