logs.wxml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <map id="map" longitude='{{longitude}}' latitude='{{latitude}}' scale='18' markers="{{markers}}" bindmarkertap="marker" show-location="true" data-markers="{{markers}}" controls="{{controls}}" polygons="{{polygons}}"></map>
  2. <view class="top">
  3. <van-dropdown-menu class="{{screenHeight=='xSeries' ? 'top2' : 'top1'}}">
  4. <van-dropdown-item id="menu" value="{{ area }}" options="{{ allArea }}" bind:change="change" />
  5. </van-dropdown-menu>
  6. <view class="flex">
  7. <van-dropdown-menu>
  8. <van-dropdown-item value="{{ ele }}" options="{{ allEle }}" bind:change="change2" />
  9. </van-dropdown-menu>
  10. <van-dropdown-menu>
  11. <van-dropdown-item value="{{ status }}" options="{{ allStatus }}" bind:change="change3" />
  12. </van-dropdown-menu>
  13. <van-dropdown-menu>
  14. <van-dropdown-item value="{{ day }}" options="{{ allDay }}" bind:change="change4" />
  15. </van-dropdown-menu>
  16. </view>
  17. </view>
  18. <!-- 还车点和禁停区 -->
  19. <view class="area">
  20. <view bindtap="parkShow">
  21. <image src="http://resource.weilaibike.com/yunwei/parkShow.png" style="width:48rpx;height:56rpx;"></image>
  22. <text style="color:{{parkAreaShow==true?'red':'black'}};padding-left:10rpx;">还车点</text>
  23. </view>
  24. <view bindtap="forbidShow">
  25. <image src="http://resource.weilaibike.com/yunwei/forbid.png" style="width:48rpx;height:56rpx;"></image>
  26. <text style="color:{{noParkAreaShow==true?'red':'black'}};padding-left:10rpx;">禁停区</text>
  27. </view>
  28. </view>
  29. <!-- 定位及刷新 -->
  30. <view class="iconHint">
  31. <view class="operate" bindtap="operate">
  32. <view style="height:60rpx;width:60rpx;background:#fff;border-radius:50%;" class="flexC">
  33. <image src="http://resource.weilaibike.com/yunwei/operation.png" style="width:46rpx;height:46rpx;"></image>
  34. </view>
  35. </view>
  36. <view class="flexB">
  37. <image src="http://resource.weilaibike.com/bike_yunwei/location.png" bindtap="posi"></image>
  38. <view bindtap="hintIcon" class="how">如何识别地图上的图标</view>
  39. <image src="http://resource.weilaibike.com/bike_yunwei/ref.png" bindtap="load"></image>
  40. </view>
  41. </view>
  42. <!-- 提示弹窗 -->
  43. <view class="cover" wx:if="{{hintShow}}" capture-catch:touchmove="preventdefault"></view>
  44. <view class="hintPop" wx:if="{{hintShow}}">
  45. <view class="hintCon">
  46. <view class="intr">提示说明:</view>
  47. <view class="icon">
  48. <view wx:for="{{iconList1}}" wx:key="key">
  49. <image src="{{item.icon}}"></image>
  50. <text>{{item.con}}</text>
  51. </view>
  52. </view>
  53. <view class="close" bindtap="closeHint">
  54. <image src="http://resource.weilaibike.com/common/closePop.png"></image>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 侧边栏 -->
  59. <view class="cover" wx:if="{{sideShow}}" capture-catch:touchmove="preventdefault" bindtap="closeSide"></view>
  60. <view class="side" wx:if="{{sideShow}}">
  61. <view class="record flexA">
  62. <view bindtap="modify">
  63. <image src="http://resource.weilaibike.com/yunwei/amend.png" style="width:40rpx;height:40rpx;"></image>
  64. <text>修改</text>
  65. </view>
  66. <view bindtap="reqair">
  67. <image src="http://resource.weilaibike.com/yunwei/maintain.png"></image>
  68. <text>报修</text>
  69. </view>
  70. <view bindtap="bike_detail">
  71. <image src="http://resource.weilaibike.com/yunwei/bikeDe.png" style="width:45rpx;height:45rpx;"></image>
  72. <text>详情</text>
  73. </view>
  74. </view>
  75. <view class="bikeNo flexA">
  76. <input placeholder="请输入车牌号" value="{{bikeDetail.bike_info.bike_no}}" bindinput="bindKeyInput" bindblur="bindKeyInput" placeholder-class="place" type="number"></input>
  77. <text bindtap="getBike_info">查找</text>
  78. <text bindtap="scanCode">扫描</text>
  79. </view>
  80. <view class="info" style="background:url('http://resource.weilaibike.com/bike_yunwei/sideBg.png') no-repeat;background-size:100% 100%;">
  81. <view class="infoCon">
  82. <view class="infoLeft">
  83. <view style="font-size: 30rpx;font-weight:bold;padding:10rpx 0;">车辆检测信息</view>
  84. <view style="margin-bottom:{{screenHeight=='xSeries' ? '12rpx' : '7rpx'}}">车牌号:{{bikeDetail.bike_info.bike_no}}</view>
  85. <view style="margin-bottom:{{screenHeight=='xSeries' ? '12rpx' : '7rpx'}}">当前电量:{{bikeDetail.bike_info.battery_power}}%</view>
  86. <view style="margin-bottom:{{screenHeight=='xSeries' ? '12rpx' : '7rpx'}}">车辆状态:{{bikeDetail.bike_info.tab_name}}</view>
  87. </view>
  88. <view class="infoRight">
  89. <image src="http://resource.weilaibike.com/bike_yunwei/sideRef.png" bindtap="refresh_power"></image>
  90. </view>
  91. </view>
  92. <view style="margin-bottom:{{screenHeight=='xSeries' ? '12rpx' : '7rpx'}}" class="last">{{bikeDetail.bike_info.tab_name=="中控离线"?'离线时间':'最后定位'}}:{{bikeDetail.bike_info.last_time}}</view>
  93. </view>
  94. <view class="position flexB" bindtap="bikePosition">
  95. <text>车辆位置</text>
  96. <van-icon name="arrow" color="#8A8A8A" />
  97. </view>
  98. <view class="order " bindtap="recentOrder">
  99. <view class="flexB recent">
  100. <text>最近订单</text>
  101. <van-icon name="arrow" color="#8A8A8A" size="16px" />
  102. </view>
  103. <view class="flex" style="color:#28282877;">
  104. <view wx:if="{{bikeDetail.bike_order[0].mobile}}">{{bikeDetail.bike_order[0].mobile}} </view>
  105. <view wx:if="{{bikeDetail.bike_order[0].mobile}}" style="width:287rpx;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;margin-left:15rpx;"> {{bikeDetail.bike_order[0].username}}</view>
  106. </view>
  107. <view wx:if="{{!bikeDetail.bike_order[0].mobile}}" style="color:#28282877;">暂无订单信息</view>
  108. <view>
  109. <text style="color:#28282877;margin-right:10rpx;">{{bikeDetail.bike_order[0].order_status}}</text>
  110. <text wx:if="{{bikeDetail.bike_order[0].mobile}}" style="color:#28282877;">{{bikeDetail.bike_order[0].start_use_bike_time_app}}-{{bikeDetail.bike_order[0].end_use_bike_time_app}}</text>
  111. </view>
  112. </view>
  113. <view class="directive">
  114. <view class="dire">
  115. <text style="font-size:32rpx;">车辆检测指令</text>
  116. 只开启蓝牙操控
  117. <switch checked="{{switch1Checked}}" bindchange="switch1Change" />
  118. </view>
  119. <view>
  120. <view class="flexA list" style="height:100%;">
  121. <view style="text-align:center;margin-top:10rpx;" bindtap="whistle">
  122. <image src="/img/whistle.png" style="width:58rpx;height:58rpx;"></image>
  123. <text style="margin:15rpx 0;">鸣笛</text>
  124. </view>
  125. <view style="text-align:center;margin-top:10rpx;" bindtap="unlock">
  126. <image src="/img/open-lock.png" style="width:58rpx;height:58rpx;"></image>
  127. <text style="margin:15rpx 0;">开电车锁</text>
  128. </view>
  129. <view style="text-align:center;margin-top:10rpx;" bindtap="close_lock">
  130. <image src="/img/close-lock.png" style="width:58rpx;height:58rpx;"></image>
  131. <text style="margin:15rpx 0;">关电车锁</text>
  132. </view>
  133. <view style="text-align:center;" bindtap="battery_load">
  134. <image src="/img/battery-load.png" style="width:58rpx;height:58rpx;"></image>
  135. <text style="margin:15rpx 0;">开电池锁</text>
  136. </view>
  137. <view style="text-align:center;" bindtap="online">
  138. <image src="/img/online.png" style="width:62rpx;height:60rpx;"></image>
  139. <text style="margin:15rpx 0;">上线</text>
  140. </view>
  141. <view style="text-align:center;" bindtap="more">
  142. <image src="/img/more.png" style="width:62rpx;height:60rpx;"></image>
  143. <text style="margin:15rpx 0;">更多</text>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. <view class="workBtn">
  149. <view bindtap="showPop" data-idx="1" class="shelters {{typeName==1?'changeWork':''}}">
  150. <text>工单记录</text>
  151. <text class="count flexC" wx:if="{{workCount}}">{{workCount}}</text>
  152. </view>
  153. <view bindtap="showPop" data-idx="2" class="has {{typeName==2?'changeWork':''}}">
  154. <text>报修记录</text>
  155. <text class="count flexC" wx:if="{{repairsCount}}" >{{repairsCount}}</text>
  156. </view>
  157. </view>
  158. <!-- <view class="amend flexC" bindtap="lookWork">查看工单</view> -->
  159. </view>
  160. <view class="background" wx:if="{{moreShow}}" bindtap="coverHidn" data-show="1" catchtouchmove="true"></view>
  161. <view class="more" wx:if="{{moreShow}}">
  162. <view bindtap="Offline">
  163. <image src="/img/offline.png" style="width:62rpx;height:60rpx;"></image>
  164. <text>下线</text>
  165. </view>
  166. <view bindtap="renewalPower">
  167. <image src="/img/renewalPower.png" style="width:62rpx;height:60rpx;"></image>
  168. <text>更新电量</text>
  169. </view>
  170. <view bindtap="renewalLocation">
  171. <image src="/img/renewalLocation.png" style="width:62rpx;height:60rpx;"></image>
  172. <text>更新位置</text>
  173. </view>
  174. <view bindtap="renewal">
  175. <image src="/img/renewal.png" style="width:62rpx;height:60rpx;"></image>
  176. <text>重启中控</text>
  177. </view>
  178. <view bindtap="recover">
  179. <image src="http://resource.weilaibike.com/bike_yunwei/park.png" style="width:50rpx;height:50rpx;"></image>
  180. <text>设为停车区</text>
  181. </view>
  182. </view>
  183. <!-- 工单记录 -->
  184. <view class="background" wx:if="{{workShow}}" bindtap="coverHidn" data-show="2" catchtouchmove="true"></view>
  185. <view class="work" wx:if="{{workShow}}">
  186. <view class="workTitle flexC">
  187. <text>{{bikeId}}</text>
  188. <text style="margin-left:15rpx;">工单记录</text>
  189. </view>
  190. <view class="workTab flexC">
  191. <view bindtap="workChoose" data-state="1" class="{{workState==1?'cur':''}}">待领工单</view>
  192. <view bindtap="workChoose" data-state="2" class="{{workState==2?'cur':''}}">已领工单</view>
  193. </view>
  194. <scroll-view class="wait" scroll-top='{{topNum}}' scroll-y="true" bindscrolltolower="moreWork" style="{{list.length>=2 ? 'background:#efefef':'background:#fff'}}">
  195. <view wx:for="{{list}}" wx:key="key" class="waitCon mead">
  196. <view bindtouchstart="touchS" bindtouchmove="touchM" bindtouchend="touchE" data-idx="{{index}}" style="{{item.txtStyle}}" class="content">
  197. <view style="font-size:28rpx;" class="title">
  198. <view class="left">{{item.type_name}}</view>
  199. <view class="right">{{item.planned}}</view>
  200. </view>
  201. <view class="body">
  202. <view class="left">
  203. <image style="width:90rpx;height:90rpx;" src="http://resource.weilaibike.com/yunwei/rescue.png" wx:if="{{item.type_name=='道路救援工单'}}"></image>
  204. <image style="width:80rpx;height:80rpx;" src="http://resource.weilaibike.com/yunwei/posi.png" wx:if="{{item.type_name=='车辆定位出现问题'}}"></image>
  205. <image style="width:100rpx;height:100rpx;" src="http://resource.weilaibike.com/bike_yunwei/outLi.png" wx:if="{{item.type_name=='离线工单'}}"></image>
  206. <image style="width:100rpx;height:100rpx;" src="http://resource.weilaibike.com/yunwei/fault.png" wx:if="{{item.type_name=='故障工单'}}"></image>
  207. <image style="width:90rpx;height:90rpx;" src="http://resource.weilaibike.com/yunwei/charge.png" wx:if="{{item.type_name=='充电工单'}}"></image>
  208. <image style="width:100rpx;height:100rpx;" src="http://resource.weilaibike.com/yunwei/steal.png" wx:if="{{item.type_name=='偷盗工单'}}"></image>
  209. <image style="width:90rpx;height:90rpx;" src="http://resource.weilaibike.com/yunwei/look1.png" wx:if="{{item.type_name=='查看工单'}}"></image>
  210. <image style="width:90rpx;height:90rpx;" src="http://resource.weilaibike.com/yunwei/otherWork.png" wx:if="{{item.type_name=='其他工单'}}"></image>
  211. <image style="width:100rpx;height:100rpx;" src="http://resource.weilaibike.com/yunwei/alarm1.png" wx:if="{{item.type_name=='警报工单'}}"></image>
  212. <image style="width:80rpx;height:80rpx;" src="http://resource.weilaibike.com/yunwei/leader.png" wx:if="{{item.type_name=='组长工单'}}"></image>
  213. <image style="width:100rpx;height:100rpx;" src="http://resource.weilaibike.com/yunwei/prepare.png" wx:if="{{item.type_name=='备用电池电量低报警'}}"></image>
  214. <image style="width:90rpx;height:90rpx;" src="http://resource.weilaibike.com/xiaobanma_yunwei/lowPower_xbm.png" wx:if="{{item.type_name=='断电工单'}}"></image>
  215. </view>
  216. <view class="right">
  217. <view class="reason" style="width:100%;color:#555;font-size:28rpx; white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">原因:{{item.reason?item.reason:item.type_name}}</view>
  218. <view class="reason" style="color:#999999;flex-grow:1;">来源:{{item.source}}</view>
  219. </view>
  220. </view>
  221. <view class="time">更新时间:{{item.updated_at}}</view>
  222. </view>
  223. <view class="del {{workState==1?'get':'finish'}}" data-id="{{item.id}}" bindtap="{{workState==1?'getWork':'finishWork'}}">{{workState == 1 ? '领取':'完成'}}
  224. </view>
  225. </view>
  226. <view class="no" wx:if="{{list.length == 0}}">
  227. <image src="http://resource.weilaibike.com/none.png"></image>
  228. <view>暂无相关数据~</view>
  229. </view>
  230. </scroll-view>
  231. </view>
  232. <!-- 报修记录 -->
  233. <view class="background" wx:if="{{repairsShow}}" bindtap="coverHidn" data-show="3" catchtouchmove="true"></view>
  234. <view class="work" wx:if="{{repairsShow}}">
  235. <view class="workTitle flexC">
  236. <text>{{bikeId}}</text>
  237. <text style="margin-left:15rpx;">报修记录</text>
  238. </view>
  239. <view class="workTab flexC">
  240. <view bindtap="repairsChoose" data-state="1" class="{{repairsState==1?'cur':''}}">未读</view>
  241. <view bindtap="repairsChoose" data-state="2" class="{{repairsState==2?'cur':''}}">已读</view>
  242. </view>
  243. <scroll-view class="wait" scroll-y="true" bindscrolltolower="morkRepairs" style="{{repairsList.length>=2 ? 'background:#efefef':'background:#fff'}}" scroll-top='{{topNum}}'>
  244. <view wx:for="{{repairsList}}" wx:key="key" class="waitCon mead">
  245. <view data-idx="{{index}}" style="{{item.txtStyle}}" class="content">
  246. <view style="font-size:28rpx;" class="title">
  247. <view class="left">{{item.trouble_part}}</view>
  248. <view class="right" wx:if="{{repairsState==1}}" bindtap="markRead" data-id="{{item.id}}">标为已读</view>
  249. </view>
  250. <view class="body">
  251. <view class="left">
  252. <image style="height:50rpx;width:112rpx" src="http://resource.weilaibike.com/yunwei/rep4.png" wx:if="{{item.trouble_part=='刹车'}}"></image>
  253. <image style="height:96rpx;width:96rpx" src="http://resource.weilaibike.com/yunwei/rep6.png" wx:if="{{item.trouble_part=='车胎'}}"></image>
  254. <image style="height:58rpx;width:116rpx" src="http://resource.weilaibike.com/yunwei/rep5.png" wx:if="{{item.trouble_part=='链条'}}"></image>
  255. <image style="height:66rpx;width:116rpx" src="http://resource.weilaibike.com/yunwei/rep1.png" wx:if="{{item.trouble_part=='车座'}}"></image>
  256. <image style="height:80rpx;width:60rpx" src="http://resource.weilaibike.com/yunwei/rep2.png" wx:if="{{item.trouble_part=='二维码'}}"></image>
  257. <image style="height:72rpx;width:64rpx" src="http://resource.weilaibike.com/yunwei/rep3.png" wx:if="{{item.trouble_part=='其他'}}"></image>
  258. </view>
  259. <view class="right">
  260. <view class="describe">问题描述:{{item.trouble_description}}</view>
  261. </view>
  262. </view>
  263. <view class="time">
  264. <text>创建时间:{{item.created_at}}</text>
  265. <text bindtap="phone" data-phone="{{item.users.mobile}}" hover-stop-propagation style="margin-left:40rpx;">手机号:{{item.users.mobile}}</text>
  266. </view>
  267. <!-- <view class="block"></view> -->
  268. </view>
  269. </view>
  270. <view class="no" wx:if="{{repairsList.length == 0}}">
  271. <image src="http://resource.weilaibike.com/none.png"></image>
  272. <view>暂无相关数据~</view>
  273. </view>
  274. </scroll-view>
  275. </view>
  276. <footer params="{{current}}" wx:if="{{footerShow}}" bind:scanCode="scanCode"></footer>