index.wxml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. <cover-view class='map_location' bindtap='click_location_control' hover-class='map_location_hover'>
  23. <cover-image class='circle1' src='/images/circle1.png'></cover-image>
  24. </cover-view>
  25. <cover-view wx:if='{{!(!(textData.name)&&showModal&&notice.noticeTitle)}}' class='map_center'>
  26. <cover-image src='/images/map_center.png'></cover-image>
  27. </cover-view>
  28. </map>
  29. </view>
  30. <view class="map_text" hover-class='active' wx:if="{{textData}}">
  31. <view class="map_text_info">
  32. <view class='charging_text_title'>
  33. <view class='charging_text_title1'>
  34. <text class='bold'>{{textData.name}}</text>
  35. <text class="h1">{{textData.address}}</text>
  36. </view>
  37. </view>
  38. <view class='chargprice'>
  39. <text class='inline yellow'>{{textData.chargprice}}</text>
  40. <text decode="true" class='inline price'>&nbsp;元/度</text>
  41. </view>
  42. <text class='inline border'>服务费:{{textData.serviceprice}}元/度</text>
  43. <text class='inline border'>停车费:{{textData.stopprice}}元/小时</text>
  44. </view>
  45. <view class='navigation_info'>
  46. <view class='navigation' bindtap="getRoute">
  47. <image src='/images/navigation.png'></image>
  48. </view>
  49. <text>{{textData.distance}}km</text>
  50. </view>
  51. </view>
  52. </view>
  53. <view wx:if='{{!(textData.name)&&showModal&&notice.noticeTitle}}'>
  54. <view class="modal_box">
  55. <view class="title">
  56. <image src='/images/notice.png' />
  57. </view>
  58. <view class="content_msg">
  59. <view class='content_title'>{{notice.noticeTitle}}</view>
  60. <view class='content'>
  61. <view class='modalMsg'>
  62. <rich-text nodes='{{notice.noticeContent}}'></rich-text>
  63. </view>
  64. </view>
  65. <view bindtap='Sure' class='Sure' hover-class='hover_sure'>知道了</view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class='footer'>
  70. <view class='footer_1'>
  71. <image src='/images/index_selected.png'></image>
  72. <text class='selected'>首页</text>
  73. </view>
  74. <view class='footer_2' bindtap='click_scan_control'>
  75. <image src='/images/scan.png'></image>
  76. </view>
  77. <view class='footer_3' bindtap='bindUserAvatarUrl'>
  78. <image src='/images/ucenter.png'></image>
  79. <text>我的</text>
  80. </view>
  81. </view>