Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

vehicle-information.vue 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <view >
  3. <view class="car-item">
  4. <image :src="`${$imgUrl}user/icon-car.png`" class="car-pic"></image>
  5. <view class="car-info">
  6. <view class="car-no"><text class="no">贵ZSC122</text><text class="color">蓝色</text></view>
  7. <view class="card-no">卡号:52011328220202006876</view>
  8. <view class="card-no">签号:5202192509222195</view>
  9. </view>
  10. <view class="btn-unbind">解除绑定</view>
  11. </view>
  12. <view class="car-item">
  13. <image :src="`${$imgUrl}user/icon-car.png`" class="car-pic"></image>
  14. <view class="car-info">
  15. <view class="car-no"><text class="no">贵ZSC122</text><text class="color">蓝色</text></view>
  16. <view class="card-no">卡号:52011328220202006876</view>
  17. <view class="card-no">签号:5202192509222195</view>
  18. </view>
  19. <view class="btn-unbind">解除绑定</view>
  20. </view>
  21. <view class="car-item">
  22. <image :src="`${$imgUrl}user/icon-car.png`" class="car-pic"></image>
  23. <view class="car-info">
  24. <view class="car-no"><text class="no">贵ZSC122</text><text class="color">蓝色</text></view>
  25. <view class="card-no">卡号:52011328220202006876</view>
  26. <view class="card-no">签号:5202192509222195</view>
  27. </view>
  28. <view class="btn-unbind">解除绑定</view>
  29. </view>
  30. </view>
  31. </template>
  32. <script lang="ts" setup>
  33. import { reactive } from "vue";
  34. import {request} from "@/utils/network/request.js";
  35. import {stringToJson} from "@/utils/network/encryption.js";
  36. import { onLoad} from "@dcloudio/uni-app";
  37. import {getCarMsg} from "@/utils/network/api.js";
  38. import {getItem} from "@/utils/storage";
  39. const state = reactive({
  40. })
  41. onLoad((option : any) => {
  42. queryCarMsg();
  43. })
  44. const queryCarMsg = () => {
  45. const options = {
  46. type: 2,
  47. data: {
  48. // "openId":getItem('openId')
  49. },
  50. method: "POST",
  51. showLoading: true,
  52. };
  53. //调用方式
  54. request(getCarMsg, options).then((res) => {
  55. const data = stringToJson(res.bizContent)
  56. console.log("车辆管理信息查询",data);
  57. })
  58. .catch((err) => {
  59. });
  60. }
  61. </script>
  62. <style scoped>
  63. .car-item {
  64. display: flex;
  65. align-items: center;
  66. padding: 36rpx 0;
  67. width: 95%;
  68. margin:0 auto;
  69. background:#f6f6f6;
  70. border-radius: 16rpx;
  71. padding: 20rpx;
  72. box-sizing: border-box;
  73. margin-top:30rpx;
  74. }
  75. .car-item .btn-unbind {
  76. border: 1px solid #00B38B;
  77. border-radius: 30rpx;
  78. height: 60rpx;
  79. box-sizing: border-box;
  80. line-height: 60rpx;
  81. font-size: 24rpx;
  82. padding: 0 20rpx;
  83. background: rgba(0, 179, 139, .1);
  84. color: #00B38B;
  85. }
  86. .car-pic {
  87. width: 120rpx;
  88. height: 120rpx;
  89. margin-right: 12rpx;
  90. }
  91. .car-info {
  92. display: flex;
  93. flex-direction: column;
  94. flex: 1;
  95. color: #999;
  96. font-size: 22rpx;
  97. }
  98. .car-no {
  99. font-size: 30rpx;
  100. color: #333;
  101. }
  102. .card-no {
  103. margin-top: 14rpx;
  104. }
  105. </style>