complaintProgress.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <template>
  2. <view class="container">
  3. <!-- 头部订单信息区域 -->
  4. <view class="header">
  5. <view class="header_title">
  6. <view class="title_left">标题标题标题</view>
  7. <view class="title_right">处理中</view>
  8. </view>
  9. <view class="header_info">
  10. <view class="info_box">
  11. <view class="box_key">订单号</view>
  12. <view class="box_value">2626262626260660606</view>
  13. </view>
  14. <view class="info_box">
  15. <view class="box_key">投诉单号</view>
  16. <view class="box_value">6165165116506503063</view>
  17. </view>
  18. <view class="info_box">
  19. <view class="box_key">反馈时间</view>
  20. <view class="box_value">2023-05-25 15:15:15</view>
  21. </view>
  22. </view>
  23. </view>
  24. <!-- 进度详情区域 -->
  25. <view class="progress">
  26. <view class="progress_title">进度详情</view>
  27. <!-- 进度条区域 -->
  28. <view class="progress_body">
  29. <!-- 每一个进度区域 -->
  30. <view class="body_item" v-for="item in list" :key="item.id">
  31. <view class="item_left">
  32. <view class="left_top">{{ item.day }}</view>
  33. <view class="left_bottom">{{ item.time }}</view>
  34. <view class="left_dot"></view>
  35. </view>
  36. <view class="item_right">
  37. <view class="right_top">{{ item.title }}</view>
  38. <view class="right_bottom" v-for="(ele, index) in item.tags" :key="index">
  39. {{ ele }}
  40. </view>
  41. <!-- 图片区域 -->
  42. <view class="right_bottom" v-if="item.imgs">
  43. <view class="bottom_key">图片:</view>
  44. <view class="bottom_value">
  45. <img mode="aspectFill" v-for="(img, index2) in item.imgs" :key="index2" :src="img" @click="() => handleClickImg(item, index2)" />
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- 底部按钮区域 -->
  53. <view class="foot">
  54. <view class="btn_phone">服务热线</view>
  55. <view class="btn_finish">处理完成</view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. // 进度条列表数据
  64. list: [
  65. {
  66. id: 1,
  67. day: '08-04',
  68. time: '12:13',
  69. title: '处理完成',
  70. tags: ['您的问题已处理']
  71. },
  72. {
  73. id: 1,
  74. day: '08-04',
  75. time: '12:13',
  76. title: '服务热线',
  77. tags: ['问题跟进中,呼叫结果:已接通']
  78. },
  79. {
  80. id: 1,
  81. day: '08-04',
  82. time: '12:13',
  83. title: '问题提交成功',
  84. tags: ['标题:xxxxxxxxxxxxxxxx', '问题描述:xxxxxxxxxxxxxxxx'],
  85. imgs: [
  86. 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
  87. 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
  88. 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
  89. 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
  90. 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
  91. 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375'
  92. ]
  93. }
  94. ]
  95. }
  96. },
  97. methods: {
  98. // 点击进度条图片回调
  99. handleClickImg(item, index) {
  100. uni.previewImage({
  101. urls: item.imgs,
  102. current: index
  103. })
  104. }
  105. }
  106. }
  107. </script>
  108. <style lang="scss">
  109. .container {
  110. height: 100vh;
  111. overflow-y: auto;
  112. background-color: #f7f7f7;
  113. .header {
  114. box-sizing: border-box;
  115. padding: 0 30rpx;
  116. height: 290rpx;
  117. background-color: #fff;
  118. .header_title {
  119. display: flex;
  120. align-items: center;
  121. height: 89rpx;
  122. font-size: 28rpx;
  123. border-bottom: 1rpx solid #e5e5e5;
  124. .title_left {
  125. flex: 4;
  126. font-weight: bold;
  127. overflow: hidden;
  128. text-overflow: ellipsis;
  129. white-space: nowrap;
  130. }
  131. .title_right {
  132. flex: 1;
  133. text-align: end;
  134. color: #a6a6a6;
  135. }
  136. }
  137. .header_info {
  138. display: flex;
  139. flex-direction: column;
  140. justify-content: space-evenly;
  141. height: 200rpx;
  142. font-size: 28rpx;
  143. .info_box {
  144. display: flex;
  145. align-items: center;
  146. .box_key {
  147. width: 130rpx;
  148. color: #808080;
  149. }
  150. .box_value {
  151. color: #383838;
  152. }
  153. }
  154. }
  155. }
  156. .progress {
  157. box-sizing: border-box;
  158. padding: 0 30rpx;
  159. margin-top: 20rpx;
  160. background-color: #fff;
  161. .progress_title {
  162. display: flex;
  163. align-items: center;
  164. height: 89rpx;
  165. font-size: 28rpx;
  166. font-weight: bold;
  167. border-bottom: 1rpx solid #e5e5e5;
  168. }
  169. .progress_body {
  170. padding-top: 22rpx;
  171. padding-bottom: 47rpx;
  172. .body_item {
  173. display: flex;
  174. .item_left {
  175. position: relative;
  176. display: flex;
  177. flex-direction: column;
  178. align-items: center;
  179. padding-right: 20rpx;
  180. width: 100rpx;
  181. border-right: 1rpx dotted #a6a6a6;
  182. .left_top {
  183. font-size: 28rpx;
  184. }
  185. .left_bottom {
  186. font-size: 20rpx;
  187. }
  188. .left_dot {
  189. position: absolute;
  190. top: 18rpx;
  191. right: -8rpx;
  192. width: 16rpx;
  193. height: 16rpx;
  194. border-radius: 50%;
  195. background-color: #096562;
  196. }
  197. }
  198. .item_right {
  199. flex: 1;
  200. margin-top: -10rpx;
  201. margin-left: 30rpx;
  202. padding-bottom: 20rpx;
  203. overflow: hidden;
  204. .right_top {
  205. margin-bottom: 8rpx;
  206. font-weight: bold;
  207. font-size: 28rpx;
  208. }
  209. .right_bottom {
  210. display: flex;
  211. margin-bottom: 12rpx;
  212. font-size: 24rpx;
  213. color: #808080;
  214. .bottom_key {
  215. width: 75rpx;
  216. }
  217. .bottom_value {
  218. flex: 1;
  219. display: grid;
  220. grid-template-columns: repeat(auto-fill, 103rpx);
  221. gap: 12rpx;
  222. img {
  223. width: 103rpx;
  224. height: 122rpx;
  225. border-radius: 5rpx;
  226. }
  227. }
  228. }
  229. }
  230. }
  231. }
  232. }
  233. .foot {
  234. display: flex;
  235. justify-content: space-between;
  236. box-sizing: border-box;
  237. padding: 66rpx 30rpx;
  238. font-size: 28rpx;
  239. .btn_phone {
  240. display: flex;
  241. justify-content: center;
  242. align-items: center;
  243. width: 330rpx;
  244. height: 84rpx;
  245. color: #096562;
  246. border-radius: 22rpx;
  247. border: 1rpx solid #096562;
  248. }
  249. .btn_finish {
  250. display: flex;
  251. justify-content: center;
  252. align-items: center;
  253. width: 330rpx;
  254. height: 84rpx;
  255. color: #fff;
  256. border-radius: 22rpx;
  257. background-color: #096562;
  258. }
  259. }
  260. }
  261. </style>