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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 navBar from "./components/nav-bar.vue"
  31. import {
  32. ref
  33. } from "vue";
  34. let active = ref(1)
  35. </script>
  36. <style>
  37. page {
  38. width: 100%;
  39. height: 100%;
  40. }
  41. </style>
  42. <style lang="scss" scoped>
  43. .reportLossCard {
  44. height: 100%;
  45. background-color: #EEF7F7;
  46. padding: 30rpx;
  47. .card_item {
  48. margin-bottom: 30rpx ;
  49. background-color: #fff;
  50. height: 150rpx;
  51. border-radius: 20rpx;
  52. display: flex;
  53. justify-items: center;
  54. align-items: center;
  55. padding: 20rpx;
  56. text {
  57. font-size: 32rpx;
  58. font-family: Noto Sans S Chinese;
  59. font-weight: 400;
  60. color: #333333;
  61. line-height: 58rpx;
  62. flex: 1;
  63. margin-left: 20rpx;
  64. }
  65. image {
  66. width: 100rpx;
  67. height: 90rpx;
  68. }
  69. .circle {
  70. width: 50rpx;
  71. height: 50rpx;
  72. border: 2rpx solid #00B38A;
  73. border-radius: 50rpx;
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. }
  78. .circle2 {
  79. width: 40rpx;
  80. height: 40rpx;
  81. border-radius: 40rpx;
  82. background-color: #00B38A;
  83. }
  84. }
  85. }
  86. </style>