index.wxml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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'>{{city==null?'北京市':city}}</view>
  8. <view class='down'>
  9. <image src='/images/down.png'></image>
  10. </view>
  11. </view>
  12. <view class="{{textData.name?'map_container':'map_container_big'}}">
  13. <view wx:if="{{textData}}" class='map_textdata_fast'>
  14. <text decode="true">●&nbsp;快充&nbsp;{{textData.fastfreenum==null?0:textData.fastfreenum}}/</text>
  15. <text style='color:#969696;'>{{textData.fastCharg==null?0:textData.fastCharg}}</text>
  16. </view>
  17. <view wx:if="{{textData}}" class='map_textdata_slow'>
  18. <text decode="true">●&nbsp;慢充&nbsp;{{textData.slowfreenum==null?0:textData.slowfreenum}}/</text>
  19. <text style='color:#969696;'>{{textData.slowCharg==null?0:textData.slowCharg}}</text>
  20. </view>
  21. <map class="map" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="16" show-location="true" markers="{{markers}}" bindmarkertap="makertap" bindregionchange="mapchange" polygon="{{polygon}}">
  22. <view class='map_distance'>
  23. <picker class="picker" bindchange="bindDistanceinfoChange" value="{{distanceinfoindex}}" range-key="text" range="{{distanceinfo}}">
  24. <text>距离{{distanceinfo[distanceinfoindex].text}}</text>
  25. </picker>
  26. </view>
  27. <cover-view class='map_location' bindtap='click_location_control' hover-class='map_location_hover'>
  28. <cover-image class='circle1' src='/images/circle1.png'></cover-image>
  29. </cover-view>
  30. <cover-view wx:if='{{!(!(textData.name)&&showModal&&notice.noticeTitle)}}' class='map_center'>
  31. <cover-image src='/images/map_center.png'></cover-image>
  32. </cover-view>
  33. </map>
  34. </view>
  35. <view class="map_text" hover-class='active' wx:if="{{textData}}" bindtap='seeInfo'>
  36. <view class="see_info" >查看详情 > </view>
  37. <view class="map_text_info">
  38. <view class='charging_text_title'>
  39. <view class='charging_text_title1'>
  40. <text class='bold'>{{textData.name}}</text>
  41. <text class="h1">{{textData.address}}</text>
  42. </view>
  43. </view>
  44. <view class='chargprice'>
  45. <text class='inline yellow'>{{textData.chargprice == null? '暂无电费' : textData.chargprice}}</text>
  46. <text decode="true" class='inline price'>&nbsp;{{textData.chargprice == null? '' : '元/度'}}</text>
  47. </view>
  48. <text class='inline border'>服务费:{{textData.serviceprice == null? '暂无服务费' : textData.serviceprice + ' 元/度'}}</text>
  49. <!-- <text class='inline border'>停车费:{{textData.stopprice}}元/小时</text> -->
  50. </view>
  51. <view class='navigation_info'>
  52. <view class='navigation' bindtap="getRoute">
  53. <image src='/images/navigation.png'></image>
  54. </view>
  55. <text>{{textData.distance}}km</text>
  56. </view>
  57. </view>
  58. </view>
  59. <view wx:if='{{!(textData.name)&&showModal&&notice.noticeTitle}}'>
  60. <view class="modal_box">
  61. <view class="title">
  62. <image src='/images/notice.png' />
  63. </view>
  64. <view class="content_msg">
  65. <view class='content_title'>{{notice.noticeTitle}}</view>
  66. <view class='content'>
  67. <view class='modalMsg'>
  68. <rich-text nodes='{{notice.noticeContent}}'></rich-text>
  69. </view>
  70. </view>
  71. <view bindtap='Sure' class='Sure' hover-class='hover_sure'>知道了</view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class='footer'>
  76. <view class='footer_1'>
  77. <image src='/images/index_selected.png'></image>
  78. <text class='selected'>首页</text>
  79. </view>
  80. <view class='footer_2' bindtap='click_scan_control' wx:if='{{!userInfo.flag}}'>
  81. <image src='/images/scan.png'></image>
  82. </view>
  83. <view class='footer_3' bindtap='bindUserAvatarUrl'>
  84. <image src='/images/ucenter.png'></image>
  85. <text>我的</text>
  86. </view>
  87. </view>