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 1.8KB

před 2 roky
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <view class="">
  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>
  13. </template>
  14. <script lang="ts" setup>
  15. import { reactive } from "vue";
  16. import {request} from "@/utils/network/request.js";
  17. import {stringToJson} from "@/utils/network/encryption.js";
  18. import { onLoad} from "@dcloudio/uni-app";
  19. import {getCarMsg} from "@/utils/network/api.js";
  20. import {getItem} from "@/utils/storage";
  21. const state = reactive({
  22. })
  23. onLoad((option : any) => {
  24. queryCarMsg();
  25. })
  26. const queryCarMsg = () => {
  27. const options = {
  28. type: 2,
  29. data: {
  30. // "openId":getItem('openId')
  31. },
  32. method: "POST",
  33. showLoading: true,
  34. };
  35. //调用方式
  36. request(getCarMsg, options).then((res) => {
  37. const data = stringToJson(res.bizContent)
  38. console.log("车辆管理信息查询",data);
  39. })
  40. .catch((err) => {
  41. });
  42. }
  43. </script>
  44. <style scoped>
  45. .cars .car-item {
  46. display: flex;
  47. align-items: center;
  48. padding: 36rpx 0;
  49. }
  50. .cars .car-item .btn-unbind {
  51. border: 1px solid #00B38B;
  52. border-radius: 30rpx;
  53. height: 60rpx;
  54. box-sizing: border-box;
  55. line-height: 60rpx;
  56. font-size: 24rpx;
  57. padding: 0 20rpx;
  58. background: rgba(0, 179, 139, .1);
  59. color: #00B38B;
  60. }
  61. .cars .car-pic {
  62. width: 120rpx;
  63. height: 120rpx;
  64. margin-right: 12rpx;
  65. }
  66. .cars .car-info {
  67. display: flex;
  68. flex-direction: column;
  69. flex: 1;
  70. color: #999;
  71. font-size: 22rpx;
  72. }
  73. .cars .car-no {
  74. font-size: 30rpx;
  75. color: #333;
  76. }
  77. .cars .card-no {
  78. margin-top: 14rpx;
  79. }
  80. </style>