index.axml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <view class="index">
  2. <!-- 开锁失败弹框 -->
  3. <view class="open-err" a:if="{{scanCodeErr==true}}">
  4. <view class="err-content">
  5. <image src="../../img/fail.png" class="err-image"></image>
  6. <view class="err-text">无效码,请核对车码</view>
  7. <view class="err-button">
  8. <view class="err-left" onTap="goInputCode">去输码</view>
  9. <view class="err-right" onTap="saoMa">继续扫码</view>
  10. </view>
  11. </view>
  12. <view class="err-cha" onTap="cancelErrFrame">
  13. <text class="iconfont icon-cha"></text></view>
  14. </view>
  15. <!-- 屏幕中间广告弹框 -->
  16. <view class="ad-frame" a:if="{{adFrame==true}}">
  17. <view class="ad-frame-content">
  18. <swiper autoplay='true' vertical='true' class="frame-middle">
  19. <swiper-item a:for="{{mid}}" a:key='index' class="frame-middle">
  20. <image a:if="{{item.type!=='wxTencentAdvertisement'}}" src="{{item.surface}}" mode="aspectFit" onTap="swiper" data-index="{{index}}" data-type="{{item.type}}"
  21. data-name="{{item.name}}" data-detail="{{item.detail}}" data-id="{{item.id}}"></image>
  22. </swiper-item>
  23. </swiper>
  24. </view>
  25. <view class="ad-frame-close" onTap="closeAdframe">
  26. <text class="iconfont icon-cha"></text></view>
  27. </view>
  28. <!-- 有未支付订单,进行中的订单 违章记录 -->
  29. <view class="no-pay-order" a:if="{{is_pay_order!==false}}" onTap="go_pay">
  30. <text class="iconfont icon-wenhao"></text>
  31. <text>您有未支付订单</text>
  32. <text class="iconfont icon-iconfontjiantou2"></text>
  33. </view>
  34. <view class="no-pay-order" a:if="{{is_ride_order!==false}}" style="background-color:var(--globleColor)" onTap="goUseBike">
  35. <text class="iconfont icon-wenhao"></text>
  36. <text>您有一个正在骑行的订单</text>
  37. <text class="iconfont icon-iconfontjiantou2"></text>
  38. </view>
  39. <view class="no-pay-order" a:if="{{is_punishment!==false}}" style="background-color:#f56464" onTap="havePunishment">
  40. <text class="iconfont icon-wenhao"></text>
  41. <text>您有一条违章记录</text>
  42. <text class="iconfont icon-iconfontjiantou2"></text>
  43. </view>
  44. <!-- 未开启位置 -->
  45. <view class="pay-frame" a:if="{{background==true}}">
  46. <view class="topay" a:if="{{location}}">
  47. <view class="text1">请确认是否已开启</view>
  48. <view class="text2" style="margin-bottom:44rpx;">位置权限</view>
  49. <view class="view">
  50. <view class="view1" style="border-right:1rpx solid #f4f4f4;color:#999999; " onTap="open">
  51. <view>已开启</view>
  52. </view>
  53. <view class="view1" style="color:#18D4B8;" onTap="go_setting">
  54. <view>去设置</view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <!-- 轮播图 -->
  60. <view class="ad-swiper" a:if="{{ads!=[]}}">
  61. <swiper class="ad-swiper-list" indicator-dots='true' indicator-color='var(--globleColor)' autoplay='true' interval="5000"
  62. current="{{currentSwiper}}" onTap="swiperChange">
  63. <swiper-item a:for="{{ads}}" a:key="key" class="ad-swiper-item">
  64. <image mode="widthFix" src="{{item.surface}}" style="width:100%;height:100%;" onTap="swiper" data-index="{{index}}"
  65. data-type="{{item.type}}" data-name="{{item.name}}" data-detail="{{item.detail}}" data-id="{{item.id}}" a:if="{{item.type!=='wxTencentAdvertisement'}}"></image>
  66. </swiper-item>
  67. </swiper>
  68. </view>
  69. <!-- 通知公告 -->
  70. <!-- a:if="{{notice.id}}" -->
  71. <view class="inform" style="top:{{ads.length>0? '250rpx' : '30rpx'}}" onTap="tap_notice" a:if="{{notice.id}}" data-id="{{notice.id}}">
  72. <view class="inform-img">
  73. <image src="../../img/notice.png" class="inform-image" style="width:48rpx;height:48rpx;padding-left:20rpx;">
  74. </image>
  75. </view>
  76. <view class='marquee' style='width:{{marqueeWidth}}rpx;'>
  77. <view class='marqueeTitle' style="width:{{length}}rpx;transform:translateX( {{marqueeDistance}}rpx);font-size: {{size}}rpx;">
  78. {{notice.description}}
  79. </view>
  80. </view>
  81. <image src="../../img/more.png" style="width:48rpx;height:48rpx;"></image>
  82. </view>
  83. <!-- 地图 -->
  84. <map name="map" id="map" show-location="true" longitude='{{longitude}}' latitude='{{latitude}}' scale='{{zoom}}' markers="{{markers}}"
  85. data-markers="{{markers}}" controls="{{controls}}" polygon="{{polygons}}">
  86. </map>
  87. <view class="map-icon">
  88. <view class="kefu" onTap="findPark">
  89. <image src="../../img/park.png"></image>
  90. </view>
  91. <!--<view class="kefu" onTap="kefu"><image src="../../img/kefu.png"></image></view> -->
  92. <view class="kefu" onTap="posi">
  93. <image src="../../img/position.png"></image>
  94. </view>
  95. </view>
  96. <!-- 底部按钮 -->
  97. <view class="bottom-bt" catchtouchmove='ture'>
  98. <view class="tab">
  99. <view class="tab-item" onTap="kefu">
  100. <text class="iconfont icon-kefu"></text>
  101. <view>在线客服</view>
  102. </view>
  103. <view class="tab-item" a:for="{{cardBottom}}" a:key='key' onTap="skipPage" data-id="{{item}}">
  104. <text class="iconfont {{item.icon}}"></text>
  105. <view>{{item.name}}</view>
  106. </view>
  107. </view>
  108. <view class="scan" onTap="sweepCode">
  109. <text class="iconfont scanicon icon-17-saoma"></text>
  110. <text>扫码用车</text>
  111. </view>
  112. </view>
  113. </view>