index.wxml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. <view class="top" bindtouchstart="touchStart" bindtouchend="touchEnd">
  2. <!-- <van-dropdown-menu class="menu" style="top:{{screenHeight=='xSeries' ? '71rpx' : '29rpx'}};background:#000;"> -->
  3. <van-dropdown-menu class="menu">
  4. <van-dropdown-item value="{{ value1 }}" options="{{ option1 }}" bind:change="change" />
  5. </van-dropdown-menu>
  6. <van-tabs active="{{ active }}" bind:change="onChange" animated duration="0.1" color="#64EAE0">
  7. <van-tab title="全部管理">
  8. <view class="view">
  9. <view class="view1" bindtap="screen1" data-index="1">
  10. <view class="view2">
  11. <view>
  12. <text>总用户数:</text>
  13. <text>{{user.totalUser}}</text>
  14. </view>
  15. <view>
  16. <text>今日新增: </text>
  17. <text>{{user.todayAddUser}}</text>
  18. </view>
  19. </view>
  20. <view class="view2">
  21. <view>
  22. <text>有效户数: </text>
  23. <text> {{user.cardUser}}</text>
  24. </view>
  25. <view>
  26. <text>今日活跃: </text>
  27. <text>{{user.todayActiveUser}}</text>
  28. </view>
  29. </view>
  30. <view class="view2 ">
  31. <view>
  32. <text>押金户数:</text>
  33. <text> {{user.depositUser}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="view1" style="background-image:url('http://resource.weilaibike.com/bike_yunwei/bikeBg.png')" bindtap="screen1" data-index="2">
  38. <view class="view2">
  39. <view>
  40. <text>总车辆数:</text>
  41. <text> {{bike.total_bikes}}</text>
  42. </view>
  43. <view>
  44. <text>今日使用: </text>
  45. <text>{{bike.today_use_total_bikes}}</text>
  46. </view>
  47. </view>
  48. <view class="view2">
  49. <view>
  50. <text>上线车辆:</text>
  51. <text>{{bike.put_total_bikes}}</text>
  52. </view>
  53. <view>
  54. <text>在线车辆: </text>
  55. <text>{{bike.line_total_bikes}}</text>
  56. </view>
  57. </view>
  58. <view class="view2">
  59. <view>
  60. <text>故障车辆:</text>
  61. <text>{{bike.trouble_total_bikes}}</text>
  62. </view>
  63. <view>
  64. <text>低电量: </text>
  65. <text>{{bike.low_battery_total_bikes}}</text>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="view1" style="background-image:url('http://resource.weilaibike.com/bike_yunwei/orderBg.png')" bindtap="screen1" data-index="{{3}}">
  70. <view class="view2">
  71. <view>
  72. <text>订单总数:</text>
  73. <text> {{order.order_total}}</text>
  74. </view>
  75. <view>
  76. <text>今日新增: </text>
  77. <text>{{order.today_add_order}}</text>
  78. </view>
  79. </view>
  80. <view class="view2">
  81. <view>
  82. <text>骑行中:</text>
  83. <text> {{order.riding_order}}</text>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="view1" style="background-image:url('http://resource.weilaibike.com/bike_yunwei/workBg.png')" bindtap="screen1" data-index="4">
  88. <view class="view2">
  89. <view>
  90. <text>全部工单:</text>
  91. <text> {{work_order.planned_meet_num+work_order.planned_worked_num+work_order.planned_work_num+work_order.planned_over_num}}</text>
  92. </view>
  93. <view>
  94. <text>待认领: </text>
  95. <text>{{work_order.planned_meet_num}}</text>
  96. </view>
  97. </view>
  98. <view class="view2">
  99. <view>
  100. <text>处理中:</text>
  101. <text> {{work_order.planned_work_num}}</text>
  102. </view>
  103. <view>
  104. <text>已完成: </text>
  105. <text>{{work_order.planned_over_num}}</text>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="view1" style="background-image:url('http://resource.weilaibike.com/bike_yunwei/incomeBg.png')" bindtap="skipNext">
  110. <view class="view2">
  111. <view>
  112. <text>总收益:</text>
  113. <text>{{orderProfit.totalProfit}}</text>
  114. </view>
  115. <view>
  116. <text>今日收益:</text>
  117. <text>{{orderProfit.todayProfit}}</text>
  118. </view>
  119. </view>
  120. <view class="view2">
  121. <view>
  122. <text>总押金:</text>
  123. <text>{{orderProfit.depositTotal}}</text>
  124. </view>
  125. <view>
  126. <text>今日押金:</text>
  127. <text>{{orderProfit.depositToday}}</text>
  128. </view>
  129. </view>
  130. <view class="view2">
  131. <view>
  132. <text>本月收益:</text>
  133. <text>{{orderProfit.monthProfit}}</text>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </van-tab>
  139. <van-tab title="用户管理">
  140. <view class="user">
  141. <!-- <view class="user_top" wx:if="{{active==1}}" style="top:{{screenHeight=='xSeries' ? '195rpx' : '203rpx'}}"> -->
  142. <view class="user_top" wx:if="{{active==1}}">
  143. <!-- <view class="top">
  144. <view class="view_a" bindtap="users" data-url="">
  145. <text>{{user.totalUser}}</text>
  146. <text>总用户数</text>
  147. </view>
  148. <view class="view_a" bindtap="users" data-url="is_deposit=1">
  149. <text>{{user.depositUser}}</text>
  150. <text>押金用户</text>
  151. </view>
  152. <view class="view_a" bindtap="users" data-url="today_add_user=1=1">
  153. <text>{{user.todayAddUser}}</text>
  154. <text>新增用户</text>
  155. </view>
  156. </view> -->
  157. <view class="count">
  158. <view>
  159. <view class="flex">
  160. <image src="http://resource.weilaibike.com/bike_yunwei/user1.png"></image>
  161. <text>总用户数</text>
  162. </view>
  163. <view style="font-size:60rpx;color:#2a2a2a;margin-left:54rpx;">{{user.totalUser}}</view>
  164. </view>
  165. <view class="flexB">
  166. <view style="margin-top:20rpx;">
  167. <view class="flex">
  168. <image src="http://resource.weilaibike.com/bike_yunwei/user2.png"></image>
  169. <text>新增用户</text>
  170. </view>
  171. <view style="font-size:30rpx;color:#2a2a2a;margin-top:15rpx;margin-left:64rpx;">{{user.todayAddUser}}</view>
  172. </view>
  173. <view>
  174. <view class="flex">
  175. <image src="http://resource.weilaibike.com/bike_yunwei/user3.png"></image>
  176. <text>押金用户</text>
  177. </view>
  178. <view style="font-size:30rpx;color:#2a2a2a;margin-top:15rpx;margin-left:64rpx;">{{user.depositUser}}</view>
  179. </view>
  180. </view>
  181. </view>
  182. </view>
  183. <!-- <view class="list" style="padding:367rpx 0 120rpx 0;"> -->
  184. <view class="list" style="padding-bottom:130rpx;">
  185. <!-- <view class="list" style="padding-top:{{screenHeight=='xSeries' ? '124rpx' : '370rpx'}}"> -->
  186. <view wx:for="{{userList}}" class="view_list" bindtap="detail" data-id="{{item.id}}" wx:key="key">
  187. <view class="left">
  188. <text style="font-size:28rpx;">手机号:{{item.mobile}}</text>
  189. <view>
  190. <text style="width:250rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">姓名:{{item.username}}</text>
  191. <text>余额:{{item.wallet_money}}元</text>
  192. </view>
  193. <text>校区:{{item.area}}</text>
  194. </view>
  195. <view class="right {{item.is_deposit == 0 ?'state4':'state1'}}">
  196. <text>{{item.is_deposit == 0 ?'非押金用户':'押金用户'}}</text>
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. <view class="noData" wx:if="{{userList.length == 0 && active ==1}}">
  202. <image src="http://resource.weilaibike.com/none.png"></image>
  203. <view>暂无相关数据~</view>
  204. </view>
  205. </van-tab>
  206. <van-tab title="车辆管理">
  207. <view class="car">
  208. <view class="car_top" wx:if="{{active==2}}" style="top:{{screenHeight=='xSeries' ? '195rpx' : '203rpx'}}">
  209. <view class="top">
  210. <view class="top1">
  211. <view class="view_a" bindtap="localscreen" data-name="">
  212. <text>{{bike.total_bikes}}</text>
  213. <text>总车辆数</text>
  214. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  215. </view>
  216. <view class="view_a" bindtap="localscreen" data-name="put_status=1">
  217. <text>{{bike.put_total_bikes}}</text>
  218. <text>上线车辆</text>
  219. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  220. </view>
  221. <view class="view_a" bindtap="localscreen" data-name="is_link=1">
  222. <text>{{bike.line_total_bikes}}</text>
  223. <text>在线车辆</text>
  224. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  225. </view>
  226. <view bindtap="localscreen" data-name="is_trouble=1" class="view_a">
  227. <text>{{bike.trouble_total_bikes}}</text>
  228. <text>故障车辆</text>
  229. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  230. </view>
  231. <view bindtap="localscreen" data-name="today_use=1" class="view_a">
  232. <text>{{bike.today_use_total_bikes}}</text>
  233. <text>今日使用</text>
  234. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  235. </view>
  236. <view bindtap="localscreen" data-name="is_low_battery_power=0" class="view_a">
  237. <text>{{bike.low_battery_total_bikes}}</text>
  238. <text>低电量</text>
  239. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  240. </view>
  241. <view bindtap="localscreen" data-name="is_riding=1" class="view_a">
  242. <text>{{bike.riding_total_bikes}}</text>
  243. <text>骑行中</text>
  244. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  245. </view>
  246. <view bindtap="localscreen" data-name="is_riding1=0" class="view_a">
  247. <text>{{bike.not_riding_total_bikes}}</text>
  248. <text>未使用</text>
  249. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  250. </view>
  251. </view>
  252. </view>
  253. </view>
  254. <view class="list" style="padding:260rpx 0 130rpx 0;">
  255. <!-- <view class="list" style="padding-top:{{screenHeight=='xSeries' ? '252rpx' : '260rpx'}}"> -->
  256. <view wx:for="{{bikeList}}" class="view_list" bindtap="bike_detail" data-id="{{item.id}}" data-bike_no="{{item.bike_no}}" style="padding:15rpx 0;" wx:key="key">
  257. <view class="left">
  258. <view>
  259. <text>{{item.bike_no}}</text>
  260. <text style="color:#FE5722;margin-left:37rpx;">{{item.battery_power}}%</text>
  261. <text style="padding-left:20rpx;color:#FE5722;">{{item.is_riding == 0 ? '未骑行':'骑行中'}}</text>
  262. </view>
  263. <text>{{item.not_use_time}}</text>
  264. </view>
  265. <view class="right">
  266. <view>
  267. <image src="http://resource.weilaibike.com/bike.png"></image>
  268. </view>
  269. <view class="view2" wx:if="{{item.tab_name=='未骑行'}}" style="background: linear-gradient(163deg, #68e9ce 0%, #18d5b9 100%);">
  270. <text>{{item.tab_name}}</text>
  271. </view>
  272. <view class="view2" wx:if="{{item.tab_name=='中控离线'}}" style="background: linear-gradient(163deg, #ff6477 0%, #ff7a69 100%);">
  273. <text>{{item.tab_name}}</text>
  274. </view>
  275. <view class="view2" wx:if="{{item.tab_name=='未投放'}}" style="background: linear-gradient(163deg, #41b8fd 0%, #0ee7fe 100%);">
  276. <text>{{item.tab_name}}</text>
  277. </view>
  278. <view class="view2" wx:if="{{item.tab_name=='低电量'}}" style="background: linear-gradient(163deg, #ff8b66 0%, #fe5722 100%);">
  279. <text>{{item.tab_name}}</text>
  280. </view>
  281. <view class="view2" wx:if="{{item.tab_name=='骑行中'}}" style="background: linear-gradient(163deg, #FF8CC7 0%, #F232A3 100%);">
  282. <text>{{item.tab_name}}</text>
  283. </view>
  284. <view class="view2" wx:if="{{item.tab_name=='不在停车区'}}" style="background: linear-gradient(163deg, #9382f4 0%, #a297fb 100%);">
  285. <text>{{item.tab_name}}</text>
  286. </view>
  287. <view class="view2" wx:if="{{item.tab_name=='故障'}}" style="background: linear-gradient(163deg, #ff6477 0%, #ff7a69 100%);">
  288. <text>{{item.tab_name}}</text>
  289. </view>
  290. <view class="view2" wx:if="{{item.tab_name=='故障下线'}}" style="background: linear-gradient(163deg, #FF9854 0%, #FFC573 100%);">
  291. <text>{{item.tab_name}}</text>
  292. </view>
  293. </view>
  294. </view>
  295. </view>
  296. </view>
  297. <view class="noData" wx:if="{{bikeList.length == 0 && active ==2}}">
  298. <image src="http://resource.weilaibike.com/none.png"></image>
  299. <view>暂无相关数据~</view>
  300. </view>
  301. </van-tab>
  302. <van-tab title="订单管理">
  303. <view class="user">
  304. <!-- <view class="user_top" wx:if="{{active==3}}" style="top:{{screenHeight=='xSeries' ? '195rpx' : '203rpx'}}"> -->
  305. <view class="user_top" wx:if="{{active==3}}">
  306. <view class="count">
  307. <view>
  308. <view class="flex">
  309. <image src="http://resource.weilaibike.com/bike_yunwei/order1.png"></image>
  310. <text>今日总收入</text>
  311. </view>
  312. <view style="font-size:60rpx;color:#2a2a2a;margin-left:54rpx;">{{order.today_add_money}}</view>
  313. </view>
  314. <view class="flexB">
  315. <view style="margin-top:20rpx;">
  316. <view class="flex">
  317. <image src="http://resource.weilaibike.com/bike_yunwei/order2.png"></image>
  318. <text>今日订单</text>
  319. </view>
  320. <view style="font-size:30rpx;color:#2a2a2a;margin-top:15rpx;margin-left:64rpx;">{{order.today_add_order}}</view>
  321. </view>
  322. <view>
  323. <view class="flex">
  324. <image src="http://resource.weilaibike.com/bike_yunwei/order3.png"></image>
  325. <text>进行中订单</text>
  326. </view>
  327. <view style="font-size:30rpx;color:#2a2a2a;margin-top:15rpx;margin-left:64rpx;">{{order.riding_order}}</view>
  328. </view>
  329. </view>
  330. </view>
  331. </view>
  332. <!-- <view class="list" style="padding:367rpx 0 120rpx 0;"> -->
  333. <!-- 注释 -->
  334. <view class="list" style="padding-bottom:150rpx;">
  335. <!-- <view class="list" style="padding-top:{{screenHeight=='xSeries' ? '124rpx' : '370rpx'}}"> -->
  336. <!-- <view class="cut" wx:if="{{active==3}}">
  337. <text class="{{curPage ==1 ? 'cur':''}}" bindtap="choose" data-idx="1">普通订单</text>
  338. <text class="{{curPage ==2 ? 'cur':''}}" bindtap="choose" data-idx="2">日租订单</text>
  339. </view> -->
  340. <view class="list_view" wx:for="{{orderList}}" bindtap="orderDetail" data-id="{{item.id}}" wx:key="key">
  341. <view style="font-size:28rpx;font-family:PingFang SC;color:rgba(77,77,77,1);">车辆编号:{{item.bike_no}}</view>
  342. <view class="userName">
  343. <text>用户:</text>
  344. <text class="name">{{item.nickname}}</text>
  345. <text catchtap="phoneCall" data-phone="{{item.mobile}}" hover-stop-propagation>{{item.mobile}}(点击可拨打)</text>
  346. </view>
  347. <view style="font-size:26rpx;">时间:{{item.start_use_bike_time}}——{{item.end_use_bike_time}}</view>
  348. <view wx:if="{{item.orders_status=='骑行中'}}" style="background: linear-gradient(163deg, #68e9ce 0%, #18d5b9 100%);" class="state">
  349. <text>{{item.orders_status}}</text>
  350. </view>
  351. <view wx:if="{{item.orders_status=='订单关闭'}}" style="background: linear-gradient(163deg, #c0c0c0 0%, #808080 100%);" class="state">
  352. <text>{{item.orders_status}}</text>
  353. </view>
  354. <view wx:if="{{item.orders_status=='已完成'}}" style="background: linear-gradient(163deg, #41b8fd 0%, #0ee7fe 100%);" class="state">
  355. <text>{{item.orders_status}}</text>
  356. </view>
  357. <view wx:if="{{item.orders_status=='待支付'}}" style="background: linear-gradient(163deg,rgba(255, 139, 102, 1) 0%,rgba(254, 87, 34, 1) 100%);" class="state">
  358. <text>{{item.orders_status}}</text>
  359. </view>
  360. <view wx:if="{{item.orders_status=='临时停车'}}" style="background: linear-gradient(163deg, #9382f4 0%, #a297fb 100%);" class="state">
  361. <text>{{item.orders_status}}</text>
  362. </view>
  363. <view wx:if="{{item.orders_status=='租车中'}}" style="background: linear-gradient(163deg, #3648f5 0%, #a297fb 100%);" class="state">
  364. <text>{{item.orders_status}}</text>
  365. </view>
  366. <view wx:if="{{item.orders_status=='租车结束,待支付'}}" style="background: linear-gradient(163deg, #32f955 0%, #a297fb 100%);">
  367. <text>{{item.orders_status}}</text>
  368. </view>
  369. </view>
  370. </view>
  371. </view>
  372. <view class="noData" wx:if="{{orderList.length == 0 && active ==3}}">
  373. <image src="http://resource.weilaibike.com/none.png"></image>
  374. <view>暂无相关数据~</view>
  375. </view>
  376. </van-tab>
  377. <van-tab title="工单管理">
  378. <view class="car">
  379. <view class="car_top" wx:if="{{active==4}}" style="top:{{screenHeight=='xSeries' ? '195rpx' : '203rpx'}}">
  380. <view class="top">
  381. <view class="top1">
  382. <view class="view_a" bindtap="localscreen" data-name="type=7">
  383. <text>{{work_order.headman_num}}</text>
  384. <text>组长工单</text>
  385. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  386. </view>
  387. <view class="view_a" bindtap="localscreen" data-name="planned=2">
  388. <text>{{work_order.planned_work_num}}</text>
  389. <text>处理中工单</text>
  390. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  391. </view>
  392. <view class="view_a" bindtap="localscreen" data-name="planned=1">
  393. <text>{{work_order.planned_meet_num}}</text>
  394. <text>未认领工单</text>
  395. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  396. </view>
  397. <view bindtap="localscreen" data-name="type=8" class="view_a">
  398. <text>{{work_order.trouble_num}}</text>
  399. <text>故障工单</text>
  400. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  401. </view>
  402. <view bindtap="localscreen" data-name="type=5" class="view_a">
  403. <text>{{work_order.alert_num}}</text>
  404. <text>警报工单</text>
  405. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  406. </view>
  407. <view bindtap="localscreen" data-name="type=6" class="view_a">
  408. <text>{{work_order.steal_num}}</text>
  409. <text>偷盗工单</text>
  410. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  411. </view>
  412. <view bindtap="localscreen" data-name="type=9" class="view_a">
  413. <text>{{work_order.help_num}}</text>
  414. <text>道路救援</text>
  415. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  416. </view>
  417. <view bindtap="localscreen" data-name="type=1" class="view_a">
  418. <text>{{work_order.charge_num}}</text>
  419. <text>换电工单</text>
  420. <image src="http://resource.weilaibike.com/bike_yunwei/triangle.png"></image>
  421. </view>
  422. </view>
  423. </view>
  424. </view>
  425. <view class="list" style="padding:260rpx 0 150rpx 0;">
  426. <!-- <view class="list" style="padding-top:{{screenHeight=='xSeries' ? '239rpx' : '260rpx'}}"> -->
  427. <view wx:for="{{work_orderList}}" bindtap="wordDetail" data-id="{{item.id}}" class="list_child {{item.planned=='已完成'?'active':''}}" wx:key="key">
  428. <text style="font-size:28rpx;font-family:PingFang SC;font-weight:600;color:rgba(40,40,40,1);padding:20rpx 0rpx;">{{item.type_name}}</text>
  429. <view class="flex work">
  430. <view>
  431. <view>当前负责人:{{item.worker}}</view>
  432. <view>车辆编号:{{item.bike_no}}</view>
  433. <view style="font-family:PingFang SC;color:rgba(77,77,77,1);">创建时间:{{item.created_at}}</view>
  434. </view>
  435. <view style="margin-left:27rpx;">
  436. <view>
  437. 进度:
  438. <text wx:if="{{item.planned=='已完成'}}" class="status1 status">{{item.planned}}</text>
  439. <text wx:if="{{item.planned=='待接单'}}" class="status2 status">{{item.planned}}</text>
  440. <text wx:if="{{item.planned=='处理中'}}" class="status3 status">{{item.planned}}</text>
  441. <text wx:if="{{item.planned=='已处理'}}" class="status4 status">{{item.planned}}</text>
  442. </view>
  443. <view style="padding-top:10rpx;">来源:{{item.source}}</view>
  444. </view>
  445. </view>
  446. <view class="view2" wx:if="{{item.type_name=='充电工单'}}" style="background: linear-gradient(163deg, #68e9ce 0%, #18d5b9 100%);">
  447. <text>{{item.type_name}}</text>
  448. </view>
  449. <view class="view2" wx:if="{{item.type_name=='断电工单'}}" style="background: linear-gradient(163deg, #ff6477 0%, #ff7a69 100%);">
  450. <text>{{item.type_name}}</text>
  451. </view>
  452. <view class="view2" wx:if="{{item.type_name=='组长工单'}}" style="background: linear-gradient(163deg, #41b8fd 0%, #0ee7fe 100%);">
  453. <text>{{item.type_name}}</text>
  454. </view>
  455. <view class="view2" wx:if="{{item.type_name=='偷盗工单'}}" style="background: linear-gradient(163deg, #ff8b66 0%, #fe5722 100%);">
  456. <text>{{item.type_name}}</text>
  457. </view>
  458. <view class="view2" wx:if="{{item.type_name=='离线工单'}}" style="background: linear-gradient(163deg, #FF8CC7 0%, #F232A3 100%);">
  459. <text>{{item.type_name}}</text>
  460. </view>
  461. <view class="view2" wx:if="{{item.type_name=='救援工单'}}" style="background: linear-gradient(163deg, #9382f4 0%, #a297fb 100%);">
  462. <text>{{item.type_name}}</text>
  463. </view>
  464. <view class="view2" wx:if="{{item.type_name=='断电工单'}}" style="background: linear-gradient(163deg, #ff6477 0%, #ff7a69 100%);">
  465. <text>{{item.type_name}}</text>
  466. </view>
  467. <view class="view2" wx:if="{{item.type_name=='警报工单'}}" style="background: linear-gradient(163deg, #FF9854 0%, #FFC573 100%);">
  468. <text>{{item.type_name}}</text>
  469. </view>
  470. <view class="view2" wx:if="{{item.type_name=='故障工单'}}" style="background: linear-gradient(163deg, #D684DD 0%, #F7A7EC 100%);">
  471. <text>{{item.type_name}}</text>
  472. </view>
  473. <view class="view2" wx:if="{{item.type_name=='其他工单'}}" style="background: linear-gradient(163deg, #47DDA8 0%, #61F79C 100%);">
  474. <text>{{item.type_name}}</text>
  475. </view>
  476. <view class="view2" wx:if="{{item.type_name=='查看工单'}}" style="background: linear-gradient(163deg, #88B9E1 0%, #004FB6 100%);">
  477. <text>{{item.type_name}}</text>
  478. </view>
  479. </view>
  480. </view>
  481. </view>
  482. <view class="noData" wx:if="{{work_orderList.length == 0 && active ==4}}">
  483. <image src="http://resource.weilaibike.com/none.png"></image>
  484. <view>暂无相关数据~</view>
  485. </view>
  486. </van-tab>
  487. </van-tabs>
  488. <footer params="{{current}}" bind:scanCode="scanCode"></footer>
  489. </view>