maintenance.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <view class="body">
  3. <view class="content">
  4. <u-toast ref="uToast" />
  5. <view >
  6. <!-- <scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="lower" lower-threshold="100" >
  7. </scroll-view> -->
  8. <view class="paddingOder">
  9. <view class="model" v-for="(item,index) in noticeList" :key=index>
  10. <ul>
  11. <li>
  12. <view class="Number">
  13. <p style="width: 1vw; height: 1vw; background-color: red; border-radius: 50%; margin-top: 2vw; margin-right: 2vw;"></p>
  14. <p>车系:</p>
  15. <p style="margin-left: 2vw;">{{item.model_name}}</p>
  16. </view>
  17. <view class="playOder">
  18. <p style="width: 1vw; height: 1vw; background-color: grey; border-radius: 50%; margin-top: 2vw; margin-right: 2vw;"></p>
  19. <p>状态:</p>
  20. <p style="margin-left: 2vw; color: red;">{{item.status_text}}</p>
  21. </view>
  22. <view class="playOder">
  23. <p style="width: 1vw; height: 1vw; background-color: #fed904; border-radius: 50%;margin-top: 2vw; margin-right: 2vw;"></p>
  24. <p>预约时间:</p>
  25. <p style="margin-left: 2vw;">{{item.date}}</p>
  26. </view>
  27. <view class="playOder">
  28. <p style="width: 1vw; height: 1vw; background-color: grey; border-radius: 50%; margin-top: 2vw; margin-right: 2vw;"></p>
  29. <p>公司:</p>
  30. <p style="margin-left: 2vw;">{{item.shop_name}}</p>
  31. </view>
  32. </li>
  33. <!-- <li> <image style="width: 20vw; height: 20vw; margin-top: 2vw;" :src="item.imgLink"></image></li> -->
  34. </ul>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default{
  43. data(){
  44. return{
  45. trailerKeyboardShow:true,
  46. control:false,
  47. scrollTop: 0,
  48. token:'',
  49. noticeList:[],
  50. page:1,
  51. totals:'',
  52. pageSize:'',
  53. status:1
  54. }
  55. },
  56. onLoad() {
  57. this.getNoticeLists()
  58. },
  59. methods:{
  60. // lower(e){
  61. // if(this.pageSize*this.page<this.totals){
  62. // this.page+=1
  63. // this.getNoticeLists(this.page,this.status)
  64. // }
  65. // },
  66. getNoticeLists(){
  67. this.$api.getmaintReserve(res=>{
  68. if(res.code==0){
  69. this.noticeList= res.data
  70. }else{
  71. this.errorToast(res.msg)
  72. }
  73. })
  74. },
  75. errorToast(msg){
  76. this.$refs.uToast.show({
  77. title: msg,
  78. type: 'error',
  79. duration:2000
  80. })
  81. },
  82. },
  83. }
  84. </script>
  85. <style scoped lang="scss">
  86. .body{
  87. width: 100vw;
  88. height: 99vh;
  89. box-sizing: border-box;
  90. padding: 0 2vw;
  91. background-color: #fafafa ;
  92. }
  93. .paddingOder{
  94. width: 96vw;
  95. height: 93vh;
  96. background-color: #fafafa;
  97. border-radius: 8px;
  98. .model{
  99. width: 96vw;
  100. height: 28vw;
  101. box-sizing: border-box;
  102. padding: 0 3vw;
  103. background-color: white;
  104. border-radius: 20px;
  105. margin-top: 2vw;
  106. ul{
  107. display: flex;
  108. justify-content: space-between;
  109. li{
  110. .Number{
  111. font-size: 0.8rem;
  112. display: flex;
  113. margin-top: 1vw;
  114. }
  115. .playOder{
  116. display: flex;
  117. font-size: 0.75rem;
  118. margin-top: 1vw;
  119. color:#808080;
  120. }
  121. }
  122. li:nth-child(2){
  123. line-height: 20vw;
  124. color: red;
  125. }
  126. }
  127. }
  128. }
  129. </style>