index.wxml 3.2 KB

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