index.wxml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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' bindtap="howtouse">使用说明</view>
  8. <view class='city_select' style="width: 50rpx;"> </view>
  9. <view style="display: none;" class='city_select'>{{city==null?'北京市':city}}</view>
  10. <view style="display: none;" class='down'>
  11. <image src='/images/down.png'></image>
  12. </view>
  13. <view style="display: none;" class='howtouse' bindtap="howtouse">使用说明</view>
  14. </view>
  15. <view class="{{textData.name?'map_container':'map_container_big'}}">
  16. <view wx:if="{{textData}}" class='map_textdata_fast'>
  17. <text decode="true">●&nbsp;快充&nbsp;{{textData.fastfreenum==null?0:textData.fastfreenum}}/</text>
  18. <text style='color:#969696;'>{{textData.fastCharg==null?0:textData.fastCharg}}</text>
  19. </view>
  20. <view wx:if="{{textData}}" class='map_textdata_slow'>
  21. <text decode="true">●&nbsp;慢充&nbsp;{{textData.slowfreenum==null?0:textData.slowfreenum}}/</text>
  22. <text style='color:#969696;'>{{textData.slowCharg==null?0:textData.slowCharg}}</text>
  23. </view>
  24. <map class="map" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="16" show-location="true" markers="{{markers}}" bindmarkertap="makertap" bindregionchange="mapchange" polygon="{{polygon}}">
  25. <view class='map_distance'>
  26. <picker class="picker" bindchange="bindDistanceinfoChange" value="{{distanceinfoindex}}" range-key="text" range="{{distanceinfo}}">
  27. <text>距离{{distanceinfo[distanceinfoindex].text}}</text>
  28. </picker>
  29. </view>
  30. <cover-view wx:if='{{(!(!(textData.name)&&showModal&&notice.noticeTitle)) && (!showPrivacy)}}' class='map_location' bindtap='click_location_control' hover-class='map_location_hover'>
  31. <cover-image class='circle1' src='/images/circle1.png'></cover-image>
  32. </cover-view>
  33. <cover-view wx:if='{{(!(!(textData.name)&&showModal&&notice.noticeTitle)) && (!showPrivacy)}}' class='map_center'>
  34. <cover-image src='/images/map_center.png'></cover-image>
  35. </cover-view>
  36. </map>
  37. </view>
  38. <view class="map_text" hover-class='active' wx:if="{{textData}}" bindtap='seeInfo'>
  39. <view class="see_info" >查看详情 > </view>
  40. <view class="map_text_info">
  41. <view class='charging_text_title'>
  42. <view class='charging_text_title1'>
  43. <text class='bold'>{{textData.name}}</text>
  44. <text class="tag" wx:if='{{textData && textData.stationTagList && textData.stationTagList.length > 0}}'>
  45. <block wx:for="{{textData.stationTagList}}" wx:key="unique" data-index="{{index}}">
  46. <text class="tagItem">{{item}}</text>
  47. </block>
  48. </text>
  49. <text class="h1">{{textData.address}}</text>
  50. </view>
  51. </view>
  52. <view class='chargprice'>
  53. <text class='inline yellow'>{{textData.chargprice == null? '暂无电费' : textData.chargprice}}</text>
  54. <text decode="true" class='inline price'>&nbsp;{{textData.chargprice == null? '' : '元/度'}}</text>
  55. </view>
  56. <view style="width: 100%;height: 40rpx;display: flex;flex-direction: row;">
  57. <text class='inline border'>服务费:{{textData.serviceprice == null? '暂无服务费' : textData.serviceprice + ' 元/度'}}</text>
  58. <view class="parkingfee" wx:if="{{carParkingRate}}"><image src="/images/v2_rxmjcu.png" style="height:30rpx;width:30rpx"/><text class='inline'>减免停车费</text></view>
  59. </view>
  60. <!-- <text class='inline border'>停车费:{{textData.stopprice}}元/小时</text> -->
  61. </view>
  62. <view class='navigationTap' catchtap="getRoute"></view>
  63. <view class='navigation_info'>
  64. <view class='navigation'>
  65. <image src='/images/navigation.png'></image>
  66. </view>
  67. <text>{{textData.distance}}km</text>
  68. </view>
  69. </view>
  70. </view>
  71. <!-- 通知 -->
  72. <van-dialog custom-class="privacy_box"
  73. use-slot
  74. width="300"
  75. custom-class="privacy_box_modal"
  76. show-confirm-button="{{false}}"
  77. show ="{{showPrivacy}}"
  78. >
  79. <view class="privacy_box">
  80. <text class="title">个人信息保护指引</text>
  81. <text style="height:40rpx">感谢您使用派捷充电!</text>
  82. <text style="height:140rpx">为向您提供更好的充电服务,在使用我们的产品前,请您阅读并同意<text bindtap="handleOpenPrivacyContract" class="userPrivacy">《用户隐私保护指引》</text>。
  83. </text>
  84. <text style="height:150rpx">当您点击同意并开始使用产品服务时,即表示你已理解并同意该条款内容,该条款将对您产生法律约束力。如您拒绝,将无法使用相关产品服务。</text>
  85. <button class="agree" id="agree-btn" open-type="agreePrivacyAuthorization" bindagreeprivacyauthorization="handleAgreePrivacyAuthorization">同意并继续</button>
  86. <navigator class="reject" open-type="exit" target="miniProgram">不同意</navigator>
  87. </view>
  88. </van-dialog>
  89. <!-- 公告 -->
  90. <view wx:if='{{(!(textData.name)&&showModal&&notice.noticeTitle) && (!showPrivacy)}}'>
  91. <view class="modal_box">
  92. <view class="title">
  93. <image src='/images/notice.png' />
  94. </view>
  95. <view class="content_msg">
  96. <view class='content_title'>{{notice.noticeTitle}}</view>
  97. <view class='content'>
  98. <view class='modalMsg'>
  99. <rich-text nodes='{{notice.noticeContent}}'></rich-text>
  100. </view>
  101. </view>
  102. <view bindtap='Sure' class='Sure' hover-class='hover_sure'>知道了</view>
  103. </view>
  104. </view>
  105. </view>
  106. <view class='footer'>
  107. <view class='footer_1'>
  108. <image src='/images/index_selected.png'></image>
  109. <text class='selected'>首页</text>
  110. </view>
  111. <view class='footer_2' bindtap="click_scan_control_outer" wx:if='{{!userInfo.flag}}'>
  112. <image src='/images/scan.png'></image>
  113. </view>
  114. <view class='footer_3' bindtap='bindUserAvatarUrl'>
  115. <image src='/images/ucenter.png'></image>
  116. <text>我的</text>
  117. </view>
  118. </view>