lineRecord.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <!-- <text>上下线记录</text> -->
  3. <view class="out">
  4. <view class="bike-list" v-for="(item , index) in lineRecord" :key='index'>
  5. <view class="work-list-left">
  6. <view class="work-title">
  7. {{item.name}}
  8. </view>
  9. <view class="">
  10. 原因:{{item.reason}}
  11. </view>
  12. <view class="">
  13. 时间:{{item.created_at}}
  14. </view>
  15. <view class="">
  16. 姓名:{{item.username}} {{item.mobile}}
  17. </view>
  18. <view class="noData noOrder" v-if="lineRecord.length==0 " >
  19. <image src="http://resource.weilaibike.com/none.png"></image>
  20. <view style="color: black;">暂无相关数据~</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. var app= getApp()
  28. export default{
  29. data(){
  30. return{
  31. lineRecord:[],
  32. page:1,
  33. bike_id:'',
  34. }
  35. },
  36. onLoad(options) {
  37. uni.showLoading({
  38. title: '加载中...',
  39. })
  40. this.bike_id=options.id
  41. var data = {
  42. bike_id:options.id
  43. }
  44. app.request('bike/bikeOnLineLog',data,'POST').then(res=>{
  45. uni.hideLoading();
  46. console.log(res)
  47. this.lineRecord=res.data.data
  48. })
  49. }
  50. }
  51. </script>
  52. <style>
  53. @import url("/static/css/base.css");
  54. .out{
  55. padding: 30rpx 40rpx;
  56. }
  57. .bike-list {
  58. padding: 20rpx 40rpx;
  59. display: flex;
  60. background: rgba(255, 255, 255, 1);
  61. border-radius: 10rpx;
  62. /* height: 54px; */
  63. color: #000000;
  64. position: relative;
  65. margin-top: 30rpx;
  66. font-size: 28rpx;
  67. box-shadow: 0px 0px 13rpx 0px rgba(216, 216, 216, 1);
  68. }
  69. .work-list-left {
  70. flex: 0 0 60%;
  71. font-size: 24rpx;
  72. line-height: 50rpx;
  73. }
  74. .work-title {
  75. font-weight: 800;
  76. width: 100%;
  77. color: #000000;
  78. /* height: 30rpx; */
  79. }
  80. </style>