2025-06-19 17:33:18 +08:00

74 lines
4.1 KiB
Plaintext

<!--pages/vehicleMonitoring/realtime/realtime.wxml-->
<view class="container">
<map id="map-container" class="{{show ? '' : 'h100'}}" longitude="{{mapCenter.longitude}}" latitude="{{mapCenter.latitude}}" markers="{{carMarkers}}" include-points="{{carMarkers}}" scale="{{setting.scale}}" setting="{{setting}}" name="" bindmarkertap="showPopup">
</map>
<view class="reload btn" catch:tap="reloadData">
<image src="../../../images/icon_reload.png" mode="" />
</view>
<view class="navigation btn" catch:tap="navigate">
<image src="../../../images/icon_navigation.png" mode="" />
</view>
<van-popup show="{{ show }}" round custom-style="box-shadow: 0px 0px 16px 0px rgba(0,0,0,0.1);" overlay-style="display: none;" position="bottom" custom-style="height: 70%;" bind:close="onClose">
<view class="inf-container">
<view class="top" catch:tap="onClose" capture-catch:touchmove="">
<view class="line"></view>
</view>
<view class="base-inf">
<view class="row">
<view class="number-plate">{{infObj.plateNumber}}</view>
<view class="code">{{infObj.vinCode}}</view>
</view>
<view class="row">
<view class="project-name">{{infObj.projectId_dictText}}</view>
<view class="car-type">
{{infObj.vehicleType_dictText ? infObj.vehicleType_dictText : '车辆型号未知'}}
</view>
</view>
</view>
<view class="detail-inf">
<view class="sidebar">
<view class="item {{ activeIndex == index ? 'select' : '' }}" wx:for="{{ tabs }}" wx:key="index" data-index="{{index}}" data-inf="{{item}}" catch:tap="changeTab">
{{item.tabName}}
</view>
</view>
<view class="content">
<view class="row" wx:if="{{activeIndex == 0}}" wx:for="{{ tmpOptions }}" wx:key="index" data-index="{{index}}">
<view class="label">{{item.label}}</view>
<view class="val {{item.type == 'val' ? '' : item.type}}">{{item.value}}</view>
</view>
<view class="row" wx:if="{{activeIndex == 1}}" wx:for="{{ tmpOptions1 }}" wx:key="index" data-index="{{index}}">
<view class="label">{{item.label}}</view>
<view class="val {{item.type == 'val' ? '' : item.type}}">{{item.value}}</view>
</view>
<view class="row" wx:if="{{activeIndex == 2}}" wx:for="{{ tmpOptions2 }}" wx:key="index" data-index="{{index}}">
<view class="label">{{item.label}}</view>
<view class="val {{item.type == 'val' ? '' : item.type}}">{{item.value}}</view>
</view>
<view class="row" wx:if="{{activeIndex == 3}}" wx:for="{{ tmpOptions3 }}" wx:key="index" data-index="{{index}}">
<view class="label">{{item.label}}</view>
<view class="val {{item.type == 'val' ? '' : item.type}}">{{item.value}}</view>
</view>
<view class="row" wx:if="{{activeIndex > 3 && activeIndex < tabs.length - 1}}" wx:for="{{ tabs[activeIndex].options }}" wx:key="index" data-index="{{index}}">
<view class="label">{{item.label}}</view>
<view class="val {{item.type == 'val' ? '' : item.type}}">{{item.value}}</view>
</view>
<!-- 保险信息 -->
<view class="row" wx:if="{{activeIndex == tabs.length - 1}}" wx:for="{{ tmpOptions5 }}" wx:key="index" data-index="{{index}}">
<view class="label">{{item.label}}</view>
<view class="val width74" wx:if="{{item.key != 'compulsoryUrl' && item.key != 'commercialUrl'}}">{{item.value || '-'}}</view>
<view wx:else class="fileList">
<block wx:if="{{item.value}}">
<view wx:for="{{ item.value }}" wx:for-item='file' class="file">
<view class="val label" catch:tap="checkFile" data-url="{{file.url}}">{{file.label}}</view>
<!-- <view class="check" catch:tap="checkFile" data-url="{{file.url}}">查看</view> -->
</view>
</block>
<view wx:else style="text-align: right;">-</view>
</view>
</view>
</view>
</view>
</view>
</van-popup>
</view>