混凝土运输管理微信小程序、替班
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.0 KiB

1 week ago
  1. <template>
  2. <view class="content">
  3. <view class="mt40">
  4. <view class="re-card-p32" v-for="(ele,idx) in cars">
  5. <view class="re-empty" v-if="cars.length<1">
  6. <view>暂无数据</view>
  7. </view>
  8. <view class="flex-sb">
  9. <view>
  10. <image class="re-from-car" src="/static/icons/icon11.png"></image>
  11. <span>{{ele.carNo}}</span>
  12. </view>
  13. <view class="re-card-show" v-if="ele.status && +ele.status===0">
  14. <span style="color: limegreen;">系统审核中</span>
  15. </view>
  16. <view class="re-card-show" v-if="ele.status && +ele.status===2">
  17. <span style="color: #F40000;">未通过审核</span>
  18. </view>
  19. </view>
  20. <view class="flex-sb re-card-select mt20">
  21. <view>轴数</view>
  22. <view class="flex" style="color: #9E9E9E;">
  23. <span v-if="!ele.mi">请选择</span>
  24. <view style="color: #0d0d0d;" v-if="ele.mi">{{ ele.mi }}</view>
  25. <uni-icons v-if="!ele.mi" type="down" size="28rpx" color="#9E9E9E"></uni-icons>
  26. </view>
  27. </view>
  28. <view class="flex-sb re-card-select">
  29. <view>上传证件</view>
  30. <view class="flex" style="color: #9E9E9E;" v-if="!ele.syximage" >
  31. <span>未上传</span>
  32. <uni-icons type="right" size="28rpx" color="#9E9E9E"></uni-icons>
  33. </view>
  34. <view class="flex" style="color: #0d0d0d;" v-if="ele.syximage" @click="clickCar(ele.id)">
  35. <span>查看证件信息</span>
  36. <uni-icons type="right" size="28rpx" color="#2d2d2d"></uni-icons>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. cars: []
  48. }
  49. },
  50. onShow() {
  51. this.loadCars()
  52. },
  53. methods: {
  54. clickCar(id){
  55. uni.navigateTo({ url: `/pages/base/showcar?id=${id}`})
  56. },
  57. loadCars(){
  58. uni.showLoading({})
  59. setTimeout(()=>{
  60. uni.hideLoading({})
  61. uni.showToast({ icon: "none", title: "暂无数据" })
  62. }, 1500)
  63. },
  64. }
  65. }
  66. </script>
  67. <style>
  68. page {
  69. background-color: #F5F5F5;
  70. }
  71. .re-from-car{
  72. width: 72rpx;
  73. height: 60rpx;
  74. margin: 0 16rpx -20rpx 0;
  75. }
  76. </style>