eleCarMap.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031
  1. <view class='view'>
  2. <!-- <map longitude="{{longitude}}" latitude="{{latitude}}" markers="{{markers}}" covers="{{covers}}" show-location> -->
  3. <view class="mapBox">
  4. <map longitude="{{longitude}}" latitude="{{latitude}}" markers="{{markers}}" scale="{{scale}}" bindcallouttap="callouttap">
  5. <cover-view slot="callout">
  6. <!-- 电池包 -->
  7. <block wx:for="{{ele_chargList}}" wx:key="*this">
  8. <cover-view class="cardView {{item.active?'c_active':''}} {{item.objType}}" marker-id="{{item.id}}" >
  9. <cover-image class="imgLeft" src='/images/ele_lock.png' wx:if="{{item.ele_lock}}"></cover-image>
  10. <cover-image class="imgLeft" src='/images/ele_unlock.png' wx:if="{{item.ele_unlock}}"></cover-image>
  11. <cover-image class="imgLeft" src='/images/park_lock.png' wx:if="{{item.park_lock}}"></cover-image>
  12. <cover-image class="imgLeft" src='/images/park_unlock.png' wx:if="{{item.park_unlock}}"></cover-image>
  13. <cover-view class="infoView ">
  14. <cover-view class="topView">
  15. <cover-view class="title">{{item.title}}</cover-view>
  16. <cover-image class="power" src='/images/power.png' wx:if="{{item.objType=='ele'}}"></cover-image>
  17. </cover-view>
  18. <cover-view class="typeView">{{item.type}}</cover-view>
  19. </cover-view>
  20. </cover-view>
  21. <cover-view class="triangle"></cover-view>
  22. </block>
  23. </cover-view>
  24. </map>
  25. </view>
  26. <view class="txt">请选择可用车位和电池包</view>
  27. <button class="{{car_active?'login_button':'login_button_disable'}}" bindtap="callCar">呼叫充电车</button>
  28. </view>