index.axml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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"><text class="iconfont icon-cha"></text></view>
  13. </view>
  14. <!-- 屏幕中间广告弹框 -->
  15. <view class="ad-frame" a:if="{{adFrame==true}}">
  16. <view class="ad-frame-content">
  17. <swiper autoplay='true' vertical='true' class="frame-middle">
  18. <swiper-item a:for="{{mid}}" a:key='index' class="frame-middle">
  19. <image src="{{item.surface}}"></image>
  20. </swiper-item>
  21. </swiper>
  22. </view>
  23. <view class="ad-frame-close" onTap="closeAdframe"><text class="iconfont icon-cha"></text></view>
  24. </view>
  25. <!-- 有未支付订单,进行中的订单 违章记录 -->
  26. <view class="no-pay-order" a:if="{{is_pay_order!==false}}" onTap="go_pay">
  27. <text class="iconfont icon-wenhao"></text>
  28. <text>您有未支付订单</text>
  29. <text class="iconfont icon-iconfontjiantou2"></text>
  30. </view>
  31. <view class="no-pay-order" a:if="{{is_ride_order!==false}}" style="background-color:var(--globleColor)"
  32. onTap="goUseBike">
  33. <text class="iconfont icon-wenhao"></text>
  34. <text>您有一个正在骑行的订单</text>
  35. <text class="iconfont icon-iconfontjiantou2"></text>
  36. </view>
  37. <view class="no-pay-order" a:if="{{is_punishment!==false}}" style="background-color:#f56464"
  38. onTap="havePunishment">
  39. <text class="iconfont icon-wenhao"></text>
  40. <text>您有一条违章记录</text>
  41. <text class="iconfont icon-iconfontjiantou2"></text>
  42. </view>
  43. <!-- 未开启位置 -->
  44. <view class="pay-frame" a:if="{{background==true}}">
  45. <view class="topay" a:if="{{location}}">
  46. <view class="text1">请确认是否已开启</view>
  47. <view class="text2" style="margin-bottom:44rpx;">位置权限</view>
  48. <view class="view">
  49. <view class="view1" style="border-right:1rpx solid #f4f4f4;color:#999999; " onTap="open">
  50. <view>已开启</view>
  51. </view>
  52. <view class="view1" style="color:#18D4B8;" onTap="go_setting">
  53. <view>去设置</view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 轮播图 -->
  59. <view class="ad-swiper" a:if="{{ads!=[]}}">
  60. <swiper class="ad-swiper-list" indicator-dots='true' indicator-color='var(--globleColor)' autoplay='true'
  61. interval="5000" current="{{currentSwiper}}" bindchange="swiperChange">
  62. <swiper-item a:for="{{ads}}" a:key="key" class="ad-swiper-item">
  63. <image src="{{item.surface}}" style="width:100%;height:100%;" onTap="swiper" data-index="{{index}}"
  64. data-type="{{item.type}}" data-name="{{item.name}}" data-detail="{{item.detail}}" data-id="{{item.id}}"
  65. a:if="{{item.type!='wxTencentAdvertisement'}}"></image>
  66. </swiper-item>
  67. </swiper>
  68. </view>
  69. <!-- 地图 -->
  70. <map name="map" id="map" show-location="true" longitude='{{longitude}}' latitude='{{latitude}}' scale='{{zoom}}'
  71. markers="{{markers}}" data-markers="{{markers}}" controls="{{controls}}" polygon="{{polygons}}">
  72. </map>
  73. <view class="map-icon">
  74. <view class="kefu" onTap="findPark">
  75. <image src="../../img/park.png"></image>
  76. </view>
  77. <view class="kefu" onTap="kefu">
  78. <image src="../../img/kefu.png"></image>
  79. </view>
  80. <view class="kefu" onTap="posi">
  81. <image src="../../img/position.png"></image>
  82. </view>
  83. </view>
  84. <!-- 底部按钮 -->
  85. <view class="bottom-bt" catchtouchmove='ture'>
  86. <view class="tab">
  87. <view class="tab-item" a:for="{{cardBottom}}" a:key='key' onTap="skipPage" data-id="{{item}}" >
  88. <text class="iconfont {{item.icon}}"></text>
  89. <view>{{item.name}}</view>
  90. </view>
  91. </view>
  92. <view class="scan" onTap="sweepCode"><text class="iconfont scanicon icon-17-saoma"></text><text>扫码用车</text>
  93. </view>
  94. </view>
  95. </view>