index.wxml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <!-- 引用隐私授权 -->
  2. <privacy-popup bind:agree="agree" bind:disagree="disagree" id="Agree" ></privacy-popup>
  3. <view class="background1" wx:if="{{mid!=''&& midbolear==''}}" catchtouchmove="true"></view>
  4. <view class="bottom1" bindtap="{{footer.child!=undefined ? 'chooseSezi' :'' }}" style="background-image:url({{footer.surface}})" wx:if="{{footer!=undefined}}"></view>
  5. <view class="arrow_down" wx:if="{{chooseSize}}" animation='{{animationData1}}' bindtap='hideModal' style="bottom:{{arrowDown*2}}rpx">
  6. <image src="/img/arrow_down.png"></image>
  7. </view>
  8. <view class='maskLayer' wx:if="{{chooseSize}}" bindtap='hideModal'></view>
  9. <view class='choose' wx:if="{{chooseSize && footer.child!=undefined}}" animation='{{animationData1}}'>
  10. <block wx:for="{{footer.child}}" wx:key="index">
  11. <image src="{{item.surface}}" style="width:{{item.extra==50? '340rpx' : '690rpx'}};height:176rpx;margin:{{item.extra==50 ? '' : '7rpx auto'}};" bindtap="swiper" data-index="{{index}}" data-type="{{item.type}}" data-name="{{item.name}}" data-detail="{{item.detail}}" data-id="{{item.id}}" class="{{item.extra==50 ? item.class:''}}" wx:if="{{item.type!='wxTencentAdvertisement'}}"></image>
  12. <view wx:if="{{item.type=='wxTencentAdvertisement'}}" style="width:690rpx;margin:7rpx auto;">
  13. <ad unit-id="adunit-7186e97a5c9d0fa8" style="width:100%;" class="bottomAd"></ad>
  14. </view>
  15. </block>
  16. </view>
  17. <view class="image1" wx:if="{{mid!=''&& midbolear==''}}" catchtouchmove="true">
  18. <swiper class="center_swiper" interval="5000" current="{{center_currentSwiper}}" bindchange="center_swiperChange">
  19. <swiper-item wx:for="{{mid}}" bindtap="swiper" data-index="{{index}}" data-type="{{item.type}}" data-name="{{item.name}}" data-detail="{{item.detail}}" data-id="{{item.id}}" wx:key="key">
  20. <image src="{{item.surface}}"></image>
  21. </swiper-item>
  22. </swiper>
  23. <image src="http://resource.weilaigo.l4j.cn/over.png" class="over" style="width:60rpx;height:60rpx;" bindtap="guanbi" class="guanbi"></image>
  24. <view class="dots">
  25. <block wx:for="{{mid}}" wx:key="key">
  26. <view class="dot{{index == center_currentSwiper ? ' active' : ''}}"></view>
  27. </block>
  28. </view>
  29. </view>
  30. <view class="inaver _30f2b4d" style="background:white;color:black;">
  31. <view class="left _30f2b4d" catchtap="mine">
  32. <image class="icon _30f2b4d" src="http://resource.weilaigo.l4j.cn/mine.png"></image>
  33. </view>
  34. <view class="tabbar_top">
  35. <view bindtap="tabbar_top" data-index="0">
  36. <text>电单车</text>
  37. <text wx:if="{{tabbar_index==0}}"></text>
  38. </view>
  39. <view bindtap="tabbar_top" data-index="1">
  40. <text>还车点</text>
  41. <text wx:if="{{tabbar_index==1}}"></text>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 广告位轮播 -->
  46. <!-- <view class="Swiper" wx:if="{{!show && !stopShow && ads!=''}}" style="top:{{screenHeight=='xSeries' ? '190rpx' : '108rpx'}}"> -->
  47. <view class="Swiper" wx:if="{{!show && !stopShow && ads!=''}}" style="top:108rpx;">
  48. <swiper class="swiper" autoplay="true" interval="5000" current="{{currentSwiper}}" bindchange="swiperChange">
  49. <swiper-item wx:for="{{ads}}" wx:key="key">
  50. <image src="{{item.surface}}" style="width:100%;height:100%;" bindtap="swiper" data-index="{{index}}" data-type="{{item.type}}" data-name="{{item.name}}" data-detail="{{item.detail}}" data-id="{{item.id}}" wx:if="{{item.type!='wxTencentAdvertisement'}}"></image>
  51. <ad unit-id="{{item.detail}}" wx:if="{{item.type=='wxTencentAdvertisement'}}"></ad>
  52. </swiper-item>
  53. </swiper>
  54. <view class="dots">
  55. <block wx:for="{{ads}}" wx:key="key">
  56. <view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
  57. </block>
  58. </view>
  59. </view>
  60. <view class="inform" wx:if="{{!stopShow && notice!=''}}" style="top:{{ads!='' ? screenHeight=='xSeries' ? '286rpx' : '286rpx' : screenHeight=='xSeries' ? '129rpx' : '90rpx'}}" bindtap="tap_notice" data-id="{{notice.id}}">
  61. <view class="inform-img">
  62. <image src="http://resource.weilaigo.l4j.cn/notice.png" class="inform-image" style="width:48rpx;height:48rpx;padding-left:20rpx;"></image>
  63. </view>
  64. <view class='marquee' style='width:{{marqueeWidth}}rpx;'>
  65. <view class='marqueeTitle' style="width:{{length}}rpx;transform:translateX( {{marqueeDistance}}rpx);font-size: {{size}}rpx;">{{notice.description}}</view>
  66. </view>
  67. <image src="http://resource.weilaigo.l4j.cn/you.png" style="width:48rpx;height:48rpx;"></image>
  68. </view>
  69. <view class="index">
  70. <!-- 地图 -->
  71. <map id="map" longitude='{{longitude}}' latitude='{{latitude}}' scale='{{zoom}}' markers="{{markers}}" bindmarkertap="{{stopP ? 'stop_marker' : 'marker'}}" show-location="true" data-markers="{{markers}}" bindtap="map" controls="{{controls}}" polygons="{{polygons}}"></map>
  72. <!-- 导航到停车点 -->
  73. <!-- <view class="stopModel" style="top:{{screenHeight=='xSeries' ? '178rpx' : '108rpx'}}" wx:if="{{stopShow}}"> -->
  74. <view class="stopModel" style="top:108rpx;" wx:if="{{stopShow && stop_type==2}}">
  75. <view>
  76. <text>{{stop_info.name}}</text>
  77. </view>
  78. <view bindtap="navgiate">
  79. <image src="http://resource.weilaigo.l4j.cn/gohear.png" style="width:80rpx;height:80rpx"></image>
  80. </view>
  81. </view>
  82. <view class="stopModel" style="top:108rpx;" wx:if="{{stop_type==1 && stopShow}}">
  83. <view>
  84. <text style="color:red;">{{stop_info.name}}</text>
  85. </view>
  86. <view class="ban-stop">
  87. <image src="http://resource.weilaigo.l4j.cn/ban-stop.png" style="width:48rpx;height:55rpx"></image>
  88. <text>禁停区</text>
  89. </view>
  90. </view>
  91. <!-- 响铃寻车 -->
  92. <!-- <view class="upCon flexB" wx:if="{{show}}" style="top:{{screenHeight=='xSeries' ? '138rpx' : '108rpx'}}"> -->
  93. <view class="upCon flexB" wx:if="{{show}}" style="top:108rpx;">
  94. <view class="left">
  95. <view class="number">车牌号:
  96. <text style="font-weight:600;">{{bike.bike_no}}</text>
  97. </view>
  98. <view class="flexB">
  99. <view class="flexB">
  100. <image src="http://resource.weilaigo.l4j.cn/cell.png" class="cell"></image>
  101. <view class="residue">剩余电量{{bike.battery_power}}%</view>
  102. </view>
  103. <view class="cost" wx:if="{{!setting.start}}">{{per_money}}元{{setting.per_minute}}分钟</view>
  104. <view class="cost" wx:if="{{setting.start}}">{{per_money}}元{{setting.starting_price_time}}分钟</view>
  105. </view>
  106. </view>
  107. <view class="right flexB">
  108. <view class="left1" bindtap="lookCar" data-id="{{bike.bike_no}}" data-box_no="{{bike.box_no}}" style="height:66rpx;">
  109. <image src="http://resource.weilaigo.l4j.cn/bell.png" class="bell"></image>
  110. </view>
  111. <view class="right1" bindtap="use" data-id="{{bike.bike_no}}" style="height:66rpx;">
  112. <view class=" useBike" style="font-size:26rpx;">立即用车</view>
  113. </view>
  114. </view>
  115. </view>
  116. <!-- 地图下部分 -->
  117. <!-- 四个图标 -->
  118. <view class="circle5 circle" bindtap="search" style="top:{{screenHeight=='xSeries' ? '470rpx' : '400rpx'}}">
  119. <image src="/img/chazhaoP.png" class="iconImg" style="width:156rpx;height:56rpx;"></image>
  120. </view>
  121. <view class="circle1 circle" bindtap="help">
  122. <image src="/img/icon1.png" class="iconImg"></image>
  123. </view>
  124. <view class="circle2 circle" bindtap="stop1">
  125. <image src="{{stopP ? 'http://resource.weilaigo.l4j.cn/stoptrue.png' : 'http://resource.weilaigo.l4j.cn/icon2.png'}}" class="iconImg"></image>
  126. </view>
  127. <view class="circle3 circle" bindtap="posi">
  128. <image src="http://resource.weilaigo.l4j.cn/icon3.png" class="iconImg"></image>
  129. </view>
  130. <view class="circle4 circle" bindtap="refresh">
  131. <image src="http://resource.weilaigo.l4j.cn/icon4.png" class="iconImg"></image>
  132. </view>
  133. <!-- 如何用车 -->
  134. <view class="intro" bindtap="usage">
  135. <view class="introCon">
  136. <view>计</view>
  137. <view>价</view>
  138. <view>规</view>
  139. <view>则</view>
  140. </view>
  141. <image src="http://resource.weilaigo.l4j.cn/introBg.png" class="introBg"></image>
  142. </view>
  143. <!-- 扫码开锁 -->
  144. <view class="unlocking flexC" bindtap="sweep_code">
  145. <image src="http://resource.weilaigo.l4j.cn/btn.png" class="sweep"></image>
  146. </view>
  147. </view>
  148. <view class="backposi" wx:if="{{background}}"></view>
  149. <view class="authName" wx:if="{{realname}}" style="top:{{screenHeight=='xSeries' ? '34%' : '32%'}} ">
  150. <view class="realname ">
  151. <image src="http://resource.weilaigo.l4j.cn/xiaobanma/auth2.png" class="auth"></image>
  152. <view class="text1">实名认证</view>
  153. <view class="text2">实名信息认证,骑行更放心!</view>
  154. <view bindtap="authentication" class="view">
  155. <view>去认证</view>
  156. </view>
  157. </view>
  158. <image src="http://resource.weilaigo.l4j.cn/over.png" style="width:60rpx;height:60rpx;" class="over" bindtap="over" wx:if="{{over}}"></image>
  159. </view>
  160. <!-- <image src="http://resource.weilaigo.l4j.cn/over.png" class="over"style="width:60rpx;height:60rpx;" bindtap="over" wx:if="{{over}}"></image> -->
  161. <!-- <image src="http://resource.weilaigo.l4j.cn/xiaobanma/Nodeposit.png" style="width:334rpx;height:291rpx;top:{{screenHeight=='xSeries'?'24.5%' : '16.5%'}}" wx:if="{{deposit}}" class="depositimg"></image> -->
  162. <view class="deposit" wx:if="{{deposit}}" style="top:{{screenHeight=='xSeries' ? '35%' : '28%'}};">
  163. <image src="http://resource.weilaigo.l4j.cn/xiaobanma/Nodeposit.png" class="depositBg"></image>
  164. <view class="text1">缴纳押金</view>
  165. <view class="text2">缴纳用车押金后方可扫码用车</view>
  166. <view bindtap="deposit" class="view flexC">
  167. <view>现在就去</view>
  168. </view>
  169. <view class="text4" bindtap="think">再想想看</view>
  170. </view>
  171. <view class="scanCon" wx:if="{{scanfail}}" style="top:{{screenHeight=='xSeries' ? '29.7%' : '22.7%'}}">
  172. <view class="scanfail flexC">
  173. <image src="http://resource.weilaigo.l4j.cn/xiaobanma/scanBg.png" class="tu1"></image>
  174. <view class="text1">扫码失败</view>
  175. <view class="text2">扫不出吗 换个方式试试</view>
  176. <view class="text3" bindtap="gocode">使用车牌号开锁</view>
  177. <view class="view">
  178. <view class="view1" style="border-right:1rpx solid #f4f4f4;color:#999999;" bindtap="sweepcode">
  179. <view>重新扫码</view>
  180. </view>
  181. <view class="view1" style="color:#18D4B8;" bindtap="gocode">
  182. <view>去试试看</view>
  183. </view>
  184. </view>
  185. </view>
  186. <image src="http://resource.weilaigo.l4j.cn/over.png" style="width:60rpx;height:60rpx;" class="over1" bindtap="over" wx:if="{{over1}}"></image>
  187. </view>
  188. <view class="popCover" wx:if="{{versions}}"></view>
  189. <view class="verPop" wx:if="{{versions}}">
  190. <view class="title">提示</view>
  191. <view class="verHint">您当前微信版本过低,请更新微信!</view>
  192. <navigator open-type="exit" target="miniProgram" hover-class="none">
  193. <view class="sure">确定</view>
  194. </navigator>
  195. </view>
  196. <view class="topay" wx:if="{{is_pay_order!=false}}">
  197. <view class="text1">有订单尚未支付,请先完成</view>
  198. <view class="text2" style="margin-bottom:44rpx;">未支付的订单。</view>
  199. <view class="view">
  200. <view class="view1" style="border-right:1rpx solid #f4f4f4;color:#999999;" bindtap="cancel">
  201. <view>下次吧</view>
  202. </view>
  203. <view class="view1" style="color:#18D4B8;" bindtap="go_pay">
  204. <view>去支付</view>
  205. </view>
  206. </view>
  207. </view>
  208. <view class="location topay" wx:if="{{location}}">
  209. <view class="text1">请确认是否已开启</view>
  210. <view class="text2" style="margin-bottom:44rpx;">位置权限</view>
  211. <view class="view">
  212. <view class="view1" style="border-right:1rpx solid #f4f4f4;color:#999999;" bindtap="go_setting">
  213. <view>去设置</view>
  214. </view>
  215. <view class="view1" style="color:#18D4B8;" bindtap="open">
  216. <view>已开启</view>
  217. </view>
  218. </view>
  219. </view>
  220. <view class="abnormal topay" wx:if="{{abnormal}}">
  221. <view class="text1">提示</view>
  222. <view class="text2">账号异常,暂不能使用!</view>
  223. <view class="view1" style="color:#18D4B8;" bindtap="kefu">
  224. <view>联系客服</view>
  225. </view>
  226. </view>