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.
30 lines
1.3 KiB
30 lines
1.3 KiB
<!-- package/pointsStatus/pointsStatus.wxml -->
|
|
<view wx:if="{{image}}" class="image-box">
|
|
<image src="{{imgUrl + image}}" class="image"></image>
|
|
<view wx:for="{{setedPoints}}">
|
|
<image
|
|
src="/images/circle.png"
|
|
id="{{'point' + item.pointId}}"
|
|
data-id="{{item.pointId}}"
|
|
data-show="{{item.show}}"
|
|
class="point"
|
|
style="left:calc({{(item.position.relativeX * 100) + '%'}} - 3px); top:calc({{(item.position.relativeY * 100) + '%'}} - 3px)"
|
|
bind:tap="calcTooltip"
|
|
></image>
|
|
<view
|
|
wx:if="{{item.show}}"
|
|
class="tooltip"
|
|
style="left:calc({{(item.position.relativeX * 100) + '%'}} - {{item.sub}}px); top:calc({{(item.position.relativeY * 100) + '%'}} + 10px);"
|
|
>
|
|
<view>设备编号:{{item.pointInfo.equipmentNo || '--'}}</view>
|
|
<view>设备型号:{{item.pointInfo.equipmentModel || '--'}}</view>
|
|
<view>设备状态:{{item.status}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<van-empty wx:else image="/images/function.svg" description="暂无布设图" />
|
|
<view class="describe-box">
|
|
<image class="icon" src="../../images/title_icon.svg"></image>
|
|
<view class="title">简介:</view>
|
|
<view class="content">{{describe || '--'}}</view>
|
|
</view>
|