bikeInfo.wxml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <view class="bikeInfo">
  2. <!-- 修改 报修 详情 -->
  3. <!-- <view class="repairs">
  4. <view class="record flexA">
  5. <view bindtap="modify">
  6. <image src="http://resource.bike.hanyiyun.com/yunwei/amend.png" style="width:40rpx;height:40rpx;"></image>
  7. <text>修改</text>
  8. </view>
  9. <view bindtap="reqair">
  10. <image src="http://resource.bike.hanyiyun.com/yunwei/maintain.png"></image>
  11. <text>报修</text>
  12. </view>
  13. <view bindtap="bike_detail">
  14. <image src="http://resource.bike.hanyiyun.com/yunwei/bikeDe.png" style="width:45rpx;height:45rpx;"></image>
  15. <text>详情</text>
  16. </view>
  17. </view>
  18. </view> -->
  19. <!-- 输入车牌号 -->
  20. <view class="bikeNo" style="margin-top:20rpx;">
  21. <view class="inp flexC">
  22. <input placeholder="请输入车牌号" value="{{bikeDetail.bike_info.bike_no}}" bindinput="bindKeyInput" bindblur="bindKeyInput" type="number" placeholder-class="place"></input>
  23. <view bindtap="scanCode">扫描</view>
  24. </view>
  25. <view class="query flexC" bindtap="getBike_info">查询</view>
  26. </view>
  27. <!-- 车辆位置 -->
  28. <!-- <view class="position flexB" bindtap="bikePosition">
  29. <text>车辆位置</text>
  30. <van-icon name="arrow" color="#8A8A8A" />
  31. </view> -->
  32. <!-- 最近订单 -->
  33. <!-- <view class="order " bindtap="recentOrder">
  34. <view class="flexB recent">
  35. <text>最近订单</text>
  36. <van-icon name="arrow" color="#8A8A8A" size="16px" />
  37. </view>
  38. <view class="flex" style="color:#28282877; ">
  39. <view wx:if="{{bikeDetail.bike_order[0].mobile}}">{{bikeDetail.bike_order[0].mobile}} </view>
  40. <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>
  41. </view>
  42. <view wx:if="{{!bikeDetail.bike_order[0].mobile}}" style="color:#28282877;">暂无订单信息</view>
  43. <view style="margin-top:10rpx;">
  44. <text style="color:#28282877;margin-right:10rpx;">{{bikeDetail.bike_order[0].order_status}}</text>
  45. <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>
  46. </view>
  47. </view> -->
  48. <!-- 车辆检测信息 -->
  49. <view class="info">
  50. <view class="title flexB">
  51. <text>车辆检测信息</text>
  52. <view class="flexC">
  53. <image src="http://resource.bike.hanyiyun.com/yunwei/ref.png" bindtap="refresh_power" style="margin-right:15rpx;"></image>
  54. <image src="http://resource.bike.hanyiyun.com/yunwei/bikeDe.png" style="width:45rpx;height:45rpx;" bindtap="skipDetail"></image>
  55. </view>
  56. </view>
  57. <view class="model" wx:if="{{bikeBolear}}">
  58. <text>当前输入编号车辆</text>
  59. <text wx:for="{{bikesArr}}" bindtap="getBike" data-bike="{{item}}">
  60. {{item}}
  61. </text>
  62. </view>
  63. <view class="beijing" wx:if="{{bikeBolear}}" bindtap="bikesHidden" catchtouchmove="return"></view>
  64. <view class="infoCon">
  65. <view>
  66. <text>车牌号:</text>
  67. <text>{{bikeDetail.bike_info.bike_no}}</text>
  68. </view>
  69. <view>
  70. <text>当前电量:</text>
  71. <text>{{bikeDetail.bike_info.battery_power}}%</text>
  72. </view>
  73. <view>
  74. <text>车辆状态:</text>
  75. <text>{{bikeDetail.bike_info.tab_name}}</text>
  76. </view>
  77. <view>
  78. <text>{{bikeDetail.bike_info.tab_name=="中控离线"?'离线时间':'最后定位'}}:</text>
  79. <text>{{bikeDetail.bike_info.last_time}}</text>
  80. </view>
  81. </view>
  82. </view>
  83. <!-- 车辆检测指令 -->
  84. <view class="directive">
  85. <view class="title flexB">
  86. <text>车辆检测指令</text>
  87. <view class="flexC">
  88. <text style="margin-right:15rpx;font-size:26rpx;">只开启蓝牙操控</text>
  89. <van-switch checked="{{ switch1Checked }}" size="19px" bindchange="switch1Change" active-color="#18D5B9" inactive-color="#ff0000" />
  90. </view>
  91. </view>
  92. <view class="instruct">
  93. <view class="flexCC" wx:for="{{iconList}}" bindtap="operate" data-id="{{item.id}}" wx:key="index">
  94. <image src="{{item.imgUrl}}"></image>
  95. <text>{{item.text}}</text>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="background" wx:if="{{moreShow}}" bindtap="coverHidn" data-show="1" catchtouchmove="true"></view>
  100. <view class="more" wx:if="{{moreShow}}" wx:key="index" catchtouchmove="true">
  101. <view wx:for="{{moreList}}" class="flexCC moreIcon" bindtap="moreOperat" data-id="{{item.id}}" wx:key="index">
  102. <image src="{{item.imgUrl}}"></image>
  103. <text style="margin-top:20rpx;">{{item.text}}</text>
  104. </view>
  105. </view>
  106. <!-- 工单 报修记录 -->
  107. <!-- <view class="workBtn">
  108. <view bindtap="showPop" data-idx="1" class="shelters {{typeName==1?'changeWork':''}}">
  109. <text>工单记录</text>
  110. <text class="count flexC" wx:if="{{workCount}}">{{workCount}}</text>
  111. </view>
  112. <view bindtap="showPop" data-idx="2" class="has {{typeName==2?'changeWork':''}}">
  113. <text>报修记录</text>
  114. <text class="count flexC" wx:if="{{repairsCount}}" >{{repairsCount}}</text>
  115. </view>
  116. </view> -->
  117. <!-- 工单记录 -->
  118. <view class="background" wx:if="{{workShow}}" bindtap="coverHidn" data-show="2" catchtouchmove="true"></view>
  119. <view class="work" wx:if="{{workShow}}" catchtouchmove="true">
  120. <view class="workTitle flexC">
  121. <text>{{bike_no}}</text>
  122. <text style="margin-left:15rpx;">工单记录</text>
  123. </view>
  124. <view class="workTab flexC">
  125. <view bindtap="workChoose" data-state="1" class="{{workState==1?'cur':''}}">待领工单</view>
  126. <view bindtap="workChoose" data-state="2" class="{{workState==2?'cur':''}}">已领工单</view>
  127. </view>
  128. <scroll-view class="wait" scroll-top='{{topNum}}' scroll-y="true" bindscrolltolower="moreWork" style="{{list.length>=2 ? 'background:#efefef':'background:#fff'}}">
  129. <view wx:for="{{list}}" wx:key="key" class="waitCon mead">
  130. <view bindtouchstart="touchS" bindtouchmove="touchM" bindtouchend="touchE" data-idx="{{index}}" style="{{item.txtStyle}}" class="content">
  131. <view style="font-size:28rpx;" class="title">
  132. <view class="left">{{item.type_name}}</view>
  133. <view class="right">{{item.planned}}</view>
  134. </view>
  135. <view class="body">
  136. <view class="left">
  137. <image style="width:90rpx;height:90rpx;" src="http://resource.bike.hanyiyun.com/yunwei/rescue.png" wx:if="{{item.type_name=='道路救援工单'}}"></image>
  138. <image style="width:80rpx;height:80rpx;" src="http://resource.bike.hanyiyun.com/yunwei/posi.png" wx:if="{{item.type_name=='车辆定位出现问题'}}"></image>
  139. <image style="width:100rpx;height:100rpx;" src="http://resource.bike.hanyiyun.com/bike_yunwei/outLi.png" wx:if="{{item.type_name=='离线工单'}}"></image>
  140. <image style="width:100rpx;height:100rpx;" src="http://resource.bike.hanyiyun.com/yunwei/fault.png" wx:if="{{item.type_name=='故障工单'}}"></image>
  141. <image style="width:90rpx;height:90rpx;" src="http://resource.bike.hanyiyun.com/yunwei/charge.png" wx:if="{{item.type_name=='充电工单'}}"></image>
  142. <image style="width:100rpx;height:100rpx;" src="http://resource.bike.hanyiyun.com/yunwei/steal.png" wx:if="{{item.type_name=='偷盗工单'}}"></image>
  143. <image style="width:90rpx;height:90rpx;" src="http://resource.bike.hanyiyun.com/yunwei/look1.png" wx:if="{{item.type_name=='查看工单'}}"></image>
  144. <image style="width:90rpx;height:90rpx;" src="http://resource.bike.hanyiyun.com/yunwei/otherWork.png" wx:if="{{item.type_name=='其他工单'}}"></image>
  145. <image style="width:100rpx;height:100rpx;" src="http://resource.bike.hanyiyun.com/yunwei/alarm1.png" wx:if="{{item.type_name=='警报工单'}}"></image>
  146. <image style="width:80rpx;height:80rpx;" src="http://resource.bike.hanyiyun.com/yunwei/leader.png" wx:if="{{item.type_name=='组长工单'}}"></image>
  147. <image style="width:100rpx;height:100rpx;" src="http://resource.bike.hanyiyun.com/yunwei/prepare.png" wx:if="{{item.type_name=='备用电池电量低报警'}}"></image>
  148. <image style="width:90rpx;height:90rpx;" src="http://resource.bike.hanyiyun.com/xiaobanma_yunwei/lowPower_xbm.png" wx:if="{{item.type_name=='断电工单'}}"></image>
  149. </view>
  150. <view class="right">
  151. <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>
  152. <view class="reason" style="color:#999999;flex-grow:1;">来源:{{item.source}}</view>
  153. </view>
  154. </view>
  155. <view class="time">创建时间:{{item.created_at}}</view>
  156. </view>
  157. <view class="del {{workState==1?'get':'finish'}}" data-id="{{item.id}}" bindtap="{{workState==1?'getWork':'finishWork'}}">{{workState == 1 ? '领取':'完成'}}
  158. </view>
  159. </view>
  160. <view class="no" wx:if="{{list.length == 0}}">
  161. <image src="http://resource.bike.hanyiyun.com/none.png"></image>
  162. <view>暂无相关数据~</view>
  163. </view>
  164. </scroll-view>
  165. </view>
  166. <!-- 报修记录 -->
  167. <view class="background" wx:if="{{repairsShow}}" bindtap="coverHidn" data-show="3" catchtouchmove="true"></view>
  168. <view class="work" wx:if="{{repairsShow}}" catchtouchmove="true">
  169. <view class="workTitle flexC">
  170. <text>{{bike_no}}</text>
  171. <text style="margin-left:15rpx;">报修记录</text>
  172. </view>
  173. <view class="workTab flexC">
  174. <view bindtap="repairsChoose" data-state="1" class="{{repairsState==1?'cur':''}}">未读</view>
  175. <view bindtap="repairsChoose" data-state="2" class="{{repairsState==2?'cur':''}}">已读</view>
  176. </view>
  177. <scroll-view class="wait" scroll-y="true" bindscrolltolower="morkRepairs" style="{{repairsList.length>=2 ? 'background:#efefef':'background:#fff'}}" scroll-top='{{topNum}}'>
  178. <view wx:for="{{repairsList}}" wx:key="key" class="waitCon mead">
  179. <view data-idx="{{index}}" style="{{item.txtStyle}}" class="content">
  180. <view style="font-size:28rpx;" class="title">
  181. <view class="left">{{item.trouble_part}}</view>
  182. <view class="right" wx:if="{{repairsState==1}}" bindtap="markRead" data-id="{{item.id}}">标为已读</view>
  183. </view>
  184. <view class="body">
  185. <view class="left">
  186. <image style="height:50rpx;width:112rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep4.png" wx:if="{{item.trouble_part=='刹车'}}"></image>
  187. <image style="height:96rpx;width:96rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep6.png" wx:if="{{item.trouble_part=='车胎'}}"></image>
  188. <image style="height:58rpx;width:116rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep5.png" wx:if="{{item.trouble_part=='链条'}}"></image>
  189. <image style="height:66rpx;width:116rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep1.png" wx:if="{{item.trouble_part=='车座'}}"></image>
  190. <image style="height:80rpx;width:60rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep2.png" wx:if="{{item.trouble_part=='二维码'}}"></image>
  191. <image style="height:72rpx;width:64rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep3.png" wx:if="{{item.trouble_part=='其他'}}"></image>
  192. </view>
  193. <view class="right">
  194. <view class="describe">问题描述:{{item.trouble_description}}</view>
  195. </view>
  196. </view>
  197. <view class="time">
  198. <text>创建时间:{{item.created_at}}</text>
  199. <text bindtap="phone" data-phone="{{item.users.mobile}}" hover-stop-propagation style="margin-left:40rpx;">手机号:{{item.users.mobile}}</text>
  200. </view>
  201. <!-- <view class="block"></view> -->
  202. </view>
  203. </view>
  204. <view class="no" wx:if="{{repairsList.length == 0}}">
  205. <image src="http://resource.bike.hanyiyun.com/none.png"></image>
  206. <view>暂无相关数据~</view>
  207. </view>
  208. </scroll-view>
  209. </view>
  210. </view>