index.wxml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <view class='container'>
  2. <view class="section">
  3. <view class="userAvatarUrl" bindtap="bindUserAvatarUrl">
  4. <!-- <open-data type='userAvatarUrl'></open-data> -->
  5. <image src='{{isLogin?userInfo.avatar:"/images/user.png"}}'></image>
  6. </view>
  7. <!-- <input bindtouchstart="bindInput" placeholder="搜索位置查找附近的充电桩" value="{{keywords.name}}" /> -->
  8. <!-- <input bindtouchstart="bindInput" placeholder="搜索充电桩" value="{{keywords}}" /> -->
  9. <view class='input' bindtap="bindInput">{{keywords}}</view>
  10. </view>
  11. <view class="{{textData.name?userInfo.flag?'map_container1':'map_container':'map_container_big'}}">
  12. <map class="map" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="16" show-location="true" markers="{{markers}}" bindmarkertap="makertap" bindregionchange="mapchange" polygon="{{polygon}}">
  13. <cover-view class='map_location' bindtap='click_location_control' hover-class='map_location_hover'>
  14. <cover-image src='/images/circle1.png'></cover-image>
  15. </cover-view>
  16. <cover-view class='map_scan' wx:if="{{!userInfo.flag}}" bindtap='click_scan_control' hover-class='map_scan_hover'>
  17. <cover-image src='/images/scan.png' ></cover-image>
  18. </cover-view>
  19. </map>
  20. </view>
  21. <view class="{{userInfo.flag?'map_text1':'map_text'}}" hover-class='active' wx:if="{{textData}}">
  22. <!-- <view class="map-1" bindtap="getRoute">
  23. <image src="/images/jt.png"></image>
  24. <view>路线</view>
  25. </view> -->
  26. <view class='charging_text_title'>
  27. <view class='charging'>
  28. <image src='/images/charging1.png'></image>
  29. </view>
  30. <view class='charging_text_title1'>
  31. <text class='bold'>{{textData.name}}</text>
  32. <text class="h1">{{textData.address}}</text>
  33. </view>
  34. <text class="h1 right">{{textData.distance}}km</text>
  35. </view>
  36. <view style='line-height:0;'>
  37. <text decode='true' class='inline' wx:if="{{userInfo.flag}}">电桩数:{{textData.chargPileNum}}</text>
  38. <text decode='true' class='inline' wx:if="{{!userInfo.flag}}">电桩数:{{textData.chargPileNum}}&nbsp;&nbsp;&nbsp;&nbsp;空闲数:</text>
  39. <text class='fast inline' wx:if="{{!userInfo.flag}}" decode='true'>快{{textData.fastfreenum==null?0:textData.fastfreenum}}&nbsp;&nbsp;</text>
  40. <text class='slow inline' wx:if="{{!userInfo.flag}}">慢{{textData.slowfreenum==null?0:textData.slowfreenum}}</text>
  41. </view>
  42. <text class='fast'>快桩数:{{textData.fastCharg==null?0:textData.fastCharg}}</text>
  43. <text class='slow'>慢桩数:{{textData.slowCharg==null?0:textData.slowCharg}}</text>
  44. <text class='inline' wx:if="{{userInfo.flag}}">当前故障桩:</text><text class='red inline' wx:if="{{userInfo.flag}}">{{textData.breaknum==null?0:textData.breaknum}}</text>
  45. <text wx:if="{{!userInfo.flag}}">参考电价:{{textData.chargprice}}元/度</text>
  46. <text decode='true' wx:if="{{!userInfo.flag}}">服务费:{{textData.serviceprice}}元/度&nbsp;&nbsp;&nbsp;&nbsp;停车费:{{textData.stopprice}}元/小时</text>
  47. <view class='navigation' bindtap="getRoute">
  48. <image src='/images/navigation.png'></image>
  49. </view>
  50. </view>
  51. </view>