index.wxml 5.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <view class='container'>
  2. <view class="section">
  3. <view class='input' bindtap="bindInput">
  4. <image src='/images/search.png'></image>
  5. <text>{{keywords}}</text>
  6. </view>
  7. <view class='city_select'>北京</view>
  8. <view class='down'>
  9. <image src='/images/down.png'></image>
  10. </view>
  11. </view>
  12. <view class="{{textData.name?userInfo.flag?'map_container1':'map_container':'map_container_big'}}">
  13. <map class="map" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="16" show-location="true" markers="{{markers}}" bindmarkertap="makertap" bindregionchange="mapchange" polygon="{{polygon}}">
  14. <!-- <view class='map_distance'>
  15. <picker class="picker" bindchange="bindDistanceinfoChange" value="{{distanceinfoindex}}" range-key="text" range="{{distanceinfo}}">
  16. <text>距离{{distanceinfo[distanceinfoindex].text}}</text>
  17. </picker>
  18. </view> -->
  19. <view wx:if="{{textData}}" class='map_textdata_fast'>
  20. <text decode="true">●&nbsp;快充&nbsp;{{textData.fastfreenum==null?0:textData.fastfreenum}}/</text><text style='color:#969696;'>{{textData.fastCharg==null?0:textData.fastCharg}}</text>
  21. </view>
  22. <view wx:if="{{textData}}" class='map_textdata_slow'>
  23. <text decode="true">●&nbsp;慢充&nbsp;{{textData.slowfreenum==null?0:textData.slowfreenum}}/</text><text style='color:#969696;'>{{textData.slowCharg==null?0:textData.slowCharg}}</text>
  24. </view>
  25. <cover-view class='map_location' bindtap='click_location_control' hover-class='map_location_hover'>
  26. <!-- <cover-image class="circle1_1" src='/images/circle1_1.png'></cover-image> -->
  27. <cover-image class='circle1' src='/images/circle1.png'></cover-image>
  28. </cover-view>
  29. <!-- <cover-view class='map_scan' wx:if="{{!userInfo.flag}}" bindtap='click_scan_control' hover-class='map_scan_hover'>
  30. <cover-image src='/images/scan.png' ></cover-image>
  31. </cover-view> -->
  32. </map>
  33. </view>
  34. <view class="{{userInfo.flag?'map_text1':'map_text'}}" hover-class='active' wx:if="{{textData}}">
  35. <!-- <view class="map-1" bindtap="getRoute">
  36. <image src="/images/jt.png"></image>
  37. <view>路线</view>
  38. </view> -->
  39. <view class='charging_text_title'>
  40. <view class='charging'>
  41. <image src='/images/charging1.png'></image>
  42. </view>
  43. <view class='charging_text_title1'>
  44. <text class='bold'>{{textData.name}}</text>
  45. <text class="h1">{{textData.address}}</text>
  46. </view>
  47. <text class="h1 right">{{textData.distance}}km</text>
  48. </view>
  49. <view style='line-height:0;'>
  50. <text decode='true' class='inline' wx:if="{{userInfo.flag}}">电桩数:{{textData.chargPileNum}}</text>
  51. <text decode='true' class='inline' wx:if="{{!userInfo.flag}}">电桩数:{{textData.chargPileNum}}&nbsp;&nbsp;&nbsp;&nbsp;空闲数:</text>
  52. <text class='fast inline' wx:if="{{!userInfo.flag}}" decode='true'>快{{textData.fastfreenum==null?0:textData.fastfreenum}}&nbsp;&nbsp;</text>
  53. <text class='slow inline' wx:if="{{!userInfo.flag}}">慢{{textData.slowfreenum==null?0:textData.slowfreenum}}</text>
  54. <!-- 初始,待运营,运营中,暂停营业,关闭,未运营 -->
  55. <text decode='true' class='inline' >&nbsp;&nbsp;&nbsp;&nbsp;状态:</text>
  56. <text decode='true' class='inline' wx:if="{{textData.operationState==1}}">初始</text>
  57. <text decode='true' class='inline' wx:if="{{textData.operationState==2}}">待运营</text>
  58. <text decode='true' class='inline' wx:if="{{textData.operationState==3}}">运营中</text>
  59. <text decode='true' class='inline' wx:if="{{textData.operationState==4}}">暂停营业</text>
  60. <text decode='true' class='inline' wx:if="{{textData.operationState==5}}">关闭</text>
  61. <text decode='true' class='inline' wx:if="{{textData.operationState==6}}">未运营</text>
  62. </view>
  63. <text class='fast'>快桩数:{{textData.fastCharg==null?0:textData.fastCharg}}</text>
  64. <text class='slow'>慢桩数:{{textData.slowCharg==null?0:textData.slowCharg}}</text>
  65. <text class='inline' wx:if="{{userInfo.flag}}">当前故障桩:</text><text class='red inline' wx:if="{{userInfo.flag}}">{{textData.breaknum==null?0:textData.breaknum}}</text>
  66. <text wx:if="{{!userInfo.flag}}">实时参考电费:{{textData.chargprice}}元/度</text>
  67. <!--<text decode='true' wx:if="{{!userInfo.flag}}">实时参考服务费:{{textData.serviceprice}}元/度&nbsp;&nbsp;&nbsp;&nbsp;停车费:{{textData.stopprice}}元/小时</text>-->
  68. <text decode='true' wx:if="{{!userInfo.flag}}">实时参考服务费:{{textData.serviceprice}}元/度</text>
  69. <view class='navigation' bindtap="getRoute">
  70. <image src='/images/navigation.png'></image>
  71. </view>
  72. </view>
  73. </view>
  74. <view wx:if='{{!(textData.name)&&showModal&&notice.noticeTitle}}'>
  75. <view class="modal_box">
  76. <view class="title"><image src='/images/notice.png' />公告</view>
  77. <view class='content_title'>{{notice.noticeTitle}}:</view>
  78. <view class='content'>
  79. <view class='modalMsg' ><rich-text nodes='{{notice.noticeContent}}'></rich-text></view>
  80. </view>
  81. <view bindtap='Sure' class='Sure' hover-class='hover_sure'>确定</view>
  82. </view>
  83. </view>
  84. <view class='footer'>
  85. <view class='footer_1' ><image src='/images/index.png'></image><text class='selected'>首页</text></view>
  86. <view class='footer_2' bindtap='click_scan_control'><image src='/images/scan.png'></image></view>
  87. <view class='footer_3' bindtap='bindUserAvatarUrl'><image src='/images/ucenter.png'></image><text>我的</text></view>
  88. </view>