1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <template>
- <view class="">
- <view class="car-item">
- <image :src="`${$imgUrl}user/icon-car.png`" class="car-pic"></image>
- <view class="car-info">
- <view class="car-no"><text class="no">贵ZSC122</text><text class="color">蓝色</text></view>
- <view class="card-no">卡号:52011328220202006876</view>
- <view class="card-no">签号:5202192509222195</view>
- </view>
- <view class="btn-unbind">解除绑定</view>
- </view>
- </view>
- </template>
-
- <script lang="ts" setup>
- import { reactive } from "vue";
- import {request} from "@/utils/network/request.js";
- import {stringToJson} from "@/utils/network/encryption.js";
- import { onLoad} from "@dcloudio/uni-app";
- import {getCarMsg} from "@/utils/network/api.js";
- import {getItem} from "@/utils/storage";
- const state = reactive({
-
- })
- onLoad((option : any) => {
- queryCarMsg();
- })
- const queryCarMsg = () => {
- const options = {
- type: 2,
- data: {
- // "openId":getItem('openId')
- },
- method: "POST",
- showLoading: true,
- };
- //调用方式
- request(getCarMsg, options).then((res) => {
- const data = stringToJson(res.bizContent)
- console.log("车辆管理信息查询",data);
-
- })
- .catch((err) => {
- });
- }
- </script>
-
- <style scoped>
- .cars .car-item {
- display: flex;
- align-items: center;
- padding: 36rpx 0;
- }
-
- .cars .car-item .btn-unbind {
- border: 1px solid #00B38B;
- border-radius: 30rpx;
- height: 60rpx;
- box-sizing: border-box;
- line-height: 60rpx;
- font-size: 24rpx;
- padding: 0 20rpx;
- background: rgba(0, 179, 139, .1);
- color: #00B38B;
- }
- .cars .car-pic {
- width: 120rpx;
- height: 120rpx;
- margin-right: 12rpx;
- }
- .cars .car-info {
- display: flex;
- flex-direction: column;
- flex: 1;
- color: #999;
- font-size: 22rpx;
- }
- .cars .car-no {
- font-size: 30rpx;
- color: #333;
- }
-
- .cars .card-no {
- margin-top: 14rpx;
- }
- </style>
|