changeSchedule.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view class="content">
  3. <view class="itemBg" v-for="(item,index) in itemData">
  4. <view class="leftView">
  5. <view class="redCircle"></view>
  6. <view class="grayLine"v-if="index < itemData.length-1"></view>
  7. </view>
  8. <view class="rightView">
  9. <!-- "bizType"操作类型 1提交申请 2修改申请 3平台处理 4撤销申请 -->
  10. <view class="name"v-if="item.bizType==1">提交申请</view>
  11. <view class="name"v-if="item.bizType==2">修改申请</view>
  12. <view class="name"v-if="item.bizType==3">平台处理</view>
  13. <view class="name"v-if="item.bizType==4">撤销申请</view>
  14. <view class="contents">{{item.contents}}</view>
  15. <view class="time">{{item.createTime}}</view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. itemData:[],
  25. id:'',
  26. }
  27. },
  28. onLoad(opt) {
  29. this.id = opt.id
  30. this.getData();
  31. },
  32. methods: {
  33. getData() {
  34. uni.showLoading({
  35. title: '加载中'
  36. })
  37. let url = 'worldKeepCar/orderChangeShop/scheduleDetails',
  38. params = {
  39. id: this.id,
  40. }
  41. this.$http(url, params, 'GET').then(res => {
  42. uni.hideLoading()
  43. this.itemData = res.data
  44. })
  45. }
  46. }
  47. }
  48. </script>
  49. <style>
  50. .content {
  51. background-color: #FFFFFF;
  52. min-height: 100vh;
  53. padding: 30rpx 0;
  54. }
  55. .itemBg {
  56. background-color: #FFFFFF;
  57. display: flex;
  58. }
  59. .leftView{
  60. width: 40rpx;
  61. padding: 0 20rpx;
  62. display:flex;
  63. flex-direction:column;
  64. align-items:center;
  65. }
  66. .redCircle{
  67. width: 22rpx;
  68. height: 22rpx;
  69. border-radius: 11rpx;
  70. background: #FF2400;
  71. }
  72. .grayLine{
  73. width: 2px;
  74. height: 90%;
  75. background: #F4F5F7;
  76. }
  77. .rightView{
  78. padding: 0 20rpx 60rpx;
  79. }
  80. .name{
  81. color: #333333;
  82. font-size: 28rpx;
  83. font-weight: bold;
  84. }
  85. .contents{
  86. color: #333333;
  87. font-size: 24rpx;
  88. padding: 10rpx 0;
  89. }
  90. .time{
  91. color: #999999;
  92. font-size: 22rpx;
  93. }
  94. </style>