myComplaint.vue 4.6 KB

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