log.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!-- 售后进行 -->
  2. <template>
  3. <view class="log-box wrap">
  4. <u-time-line>
  5. <u-time-line-item v-for="(log, index) in aftersaleLog" :key="log.id" nodeTop="4">
  6. <template v-slot:node>
  7. <view class="u-node" :style="index === 0 ? 'background: #19be6b;' : ''"><text class="u-iconfont uicon-bell-fill" style="color: #fff;font-size: 26rpx;"></text></view>
  8. </template>
  9. <template v-slot:content>
  10. <view class="u-order-title unacive u-m-b-20">{{ log.reason }}</view>
  11. <view class="u-order-desc u-m-b-10" v-show="log.content"><u-parse :html="log.content"></u-parse></view>
  12. <view class="item-img-box u-flex u-flex-wrap" v-show="log.images.length">
  13. <block v-for="(img, index) in log.images" :key="index"><image :src="img" class="log-img" mode="aspectFill"></image></block>
  14. </view>
  15. <view class="u-order-time">{{ $u.timeFormat(log.createtime, 'yyyy-mm-dd hh:MM') }}</view>
  16. </template>
  17. </u-time-line-item>
  18. </u-time-line>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. components: {},
  24. data() {
  25. return {
  26. aftersaleLog: []
  27. };
  28. },
  29. computed: {},
  30. onLoad() {
  31. this.getAftersaleDetail();
  32. },
  33. methods: {
  34. // 服务单详情
  35. getAftersaleDetail() {
  36. let that = this;
  37. that.$http('order.aftersaleDetail', {
  38. id: that.$Route.query.aftersaleId
  39. }).then(res => {
  40. if (res.code === 1) {
  41. that.aftersaleLog = res.data.logs;
  42. }
  43. });
  44. }
  45. }
  46. };
  47. </script>
  48. <style lang="scss" scoped>
  49. .wrap {
  50. padding: 24rpx 24rpx 24rpx 40rpx;
  51. background-color: #fff;
  52. }
  53. .u-node {
  54. width: 44rpx;
  55. height: 44rpx;
  56. border-radius: 100rpx;
  57. display: flex;
  58. justify-content: center;
  59. align-items: center;
  60. background: #d0d0d0;
  61. }
  62. .u-order-title {
  63. color: #333333;
  64. font-weight: bold;
  65. font-size: 32rpx;
  66. }
  67. .u-order-title.unacive {
  68. color: rgb(150, 150, 150);
  69. }
  70. .u-order-desc {
  71. color: rgb(150, 150, 150);
  72. font-size: 28rpx;
  73. margin-bottom: 6rpx;
  74. }
  75. .item-img-box {
  76. .log-img {
  77. display: block;
  78. width: 140rpx;
  79. height: 140rpx;
  80. background-color: #ccc;
  81. margin-right: 20rpx;
  82. margin-bottom: 20rpx;
  83. border-radius: 6rpx;
  84. }
  85. }
  86. .u-order-time {
  87. color: rgb(200, 200, 200);
  88. font-size: 26rpx;
  89. }
  90. </style>