index.wxml 12 KB

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