myComplaint.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <template>
  2. <view class="container">
  3. <!-- 投诉列表区域 -->
  4. <view class="body">
  5. <!-- 每一个投诉订单区域 -->
  6. <view class="box" v-for="item in list" :key="item.id" @click="handleGoPage(item)">
  7. <!-- 标题区域 -->
  8. <view class="box_header">
  9. <view class="header_left">{{ item.title }}</view>
  10. <view class="header_right">{{ item.type }}</view>
  11. </view>
  12. <!-- 信息区域 -->
  13. <view class="box_info">
  14. <img mode="aspectFill" :src="item.imgUrl" />
  15. <view class="info_center">
  16. <view class="center_name">{{ item.name }}</view>
  17. <view class="center_time">{{ item.time }}</view>
  18. <view class="center_tags">{{ item.count }}间 {{ item.roomType }}</view>
  19. <view class="center_price">¥{{ item.price }}</view>
  20. </view>
  21. <view class="info_right">{{ item.status }}</view>
  22. </view>
  23. <!-- 反馈时间区域 -->
  24. <view class="box_time">
  25. <view class="time_left">反馈时间</view>
  26. <view class="time_right">{{ item.time2 }}</view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="noData" v-if="list.length === 0">
  31. <img lazy-load :lazy-load-margin="0" src="../../static/images/noData.png" />
  32. 暂无数据
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. // 投诉列表区域
  41. list: [
  42. // {
  43. // id: 1,
  44. // title: '标题',
  45. // type: '处理中',
  46. // imgUrl: 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
  47. // name: '开心民宿',
  48. // time: '2023-07-26 - 2023-07-27',
  49. // status: '支付超时',
  50. // price: 666,
  51. // time2: '2023-08-15 15:15:15',
  52. // count: 1,
  53. // roomType: '双人标间'
  54. // },
  55. // {
  56. // id: 2,
  57. // title: '我要投诉',
  58. // type: '已处理',
  59. // imgUrl: 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
  60. // name: '快乐民宿',
  61. // time: '2023-07-26 - 2023-07-27',
  62. // status: '支付超时',
  63. // price: 888,
  64. // time2: '2023-08-15 15:15:15',
  65. // count: 1,
  66. // roomType: '单人标间'
  67. // },
  68. // {
  69. // id: 3,
  70. // title: '投诉',
  71. // type: '处理中',
  72. // imgUrl: 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
  73. // name: '健康民宿',
  74. // time: '2023-07-26 - 2023-07-27',
  75. // status: '支付超时',
  76. // price: 1288,
  77. // time2: '2023-08-15 15:15:15',
  78. // count: 1,
  79. // roomType: '双人标间'
  80. // },
  81. // {
  82. // id: 4,
  83. // title: '投诉投诉投诉投诉',
  84. // type: '投诉',
  85. // imgUrl: 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
  86. // name: '木叶村',
  87. // time: '2023-07-26 - 2023-07-27',
  88. // status: '支付超时',
  89. // price: 8888,
  90. // time2: '2023-08-15 15:15:15',
  91. // count: 1,
  92. // roomType: '火影标间'
  93. // }
  94. ]
  95. }
  96. },
  97. methods: {
  98. // 点击每一个投诉订单的回调
  99. handleGoPage(item) {
  100. uni.navigateTo({
  101. url: `/pages/complaintProgress/complaintProgress`
  102. })
  103. }
  104. }
  105. }
  106. </script>
  107. <style lang="scss">
  108. .container {
  109. box-sizing: border-box;
  110. padding: 20rpx;
  111. height: 100vh;
  112. overflow-y: auto;
  113. background-color: #f7f7f7;
  114. .body {
  115. .box {
  116. box-sizing: border-box;
  117. padding: 0 20rpx 0 30rpx;
  118. margin-bottom: 20rpx;
  119. width: 710rpx;
  120. height: 390rpx;
  121. border-radius: 15rpx;
  122. background-color: #fff;
  123. .box_header {
  124. display: flex;
  125. justify-content: space-between;
  126. align-items: center;
  127. height: 98rpx;
  128. border-bottom: 1rpx solid #e6e6e6;
  129. .header_left {
  130. flex: 4;
  131. font-size: 32rpx;
  132. font-weight: bold;
  133. overflow: hidden;
  134. text-overflow: ellipsis;
  135. white-space: nowrap;
  136. }
  137. .header_right {
  138. flex: 1;
  139. font-size: 28rpx;
  140. color: #808080;
  141. text-align: end;
  142. }
  143. }
  144. .box_info {
  145. display: flex;
  146. margin: 34rpx 0 27rpx 0;
  147. height: 143rpx;
  148. img {
  149. width: 143rpx;
  150. height: 143rpx;
  151. border-radius: 9rpx;
  152. }
  153. .info_center {
  154. flex: 1;
  155. display: flex;
  156. flex-direction: column;
  157. justify-content: space-between;
  158. margin-top: -5rpx;
  159. margin-left: 17rpx;
  160. height: 150rpx;
  161. color: #808080;
  162. font-size: 24rpx;
  163. overflow: hidden;
  164. .center_name {
  165. font-size: 28rpx;
  166. font-weight: bold;
  167. color: #000;
  168. overflow: hidden;
  169. text-overflow: ellipsis;
  170. white-space: nowrap;
  171. }
  172. .center_time {
  173. }
  174. .center_tags {
  175. }
  176. .center_price {
  177. }
  178. }
  179. .info_right {
  180. width: 185rpx;
  181. text-align: end;
  182. font-size: 24rpx;
  183. color: #808080;
  184. }
  185. }
  186. .box_time {
  187. display: flex;
  188. align-items: center;
  189. height: 58rpx;
  190. font-size: 24rpx;
  191. border-radius: 9rpx;
  192. background-color: #f2f2f2;
  193. .time_left {
  194. margin: 0 20rpx;
  195. }
  196. .time_right {
  197. color: #808080;
  198. }
  199. }
  200. }
  201. }
  202. .noData {
  203. display: flex;
  204. flex-direction: column;
  205. justify-content: center;
  206. align-items: center;
  207. padding-bottom: 20rpx;
  208. img {
  209. margin-top: 160rpx;
  210. width: 600rpx;
  211. height: 600rpx;
  212. }
  213. }
  214. }
  215. </style>