appraiseDetail.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <template>
  2. <view class="container">
  3. <!-- 评价信息区域 -->
  4. <view class="header">
  5. <!-- 用户信息区域 -->
  6. <view class="header_info">
  7. <img mode="aspectFill" src="https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375" />
  8. <view class="info_msg">
  9. <view class="msg_name">张三</view>
  10. <view class="msg_star">
  11. <uni-rate readonly activeColor="#FFC300" :size="16" :value="4" />
  12. </view>
  13. </view>
  14. <view class="info_time">2023/07/25</view>
  15. </view>
  16. <!-- 入住时间区域 -->
  17. <view class="header_time">2023-07入住,2023-08-01发表 | 大床房</view>
  18. <!-- 评价内容区域 -->
  19. <view class="header_content">评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容的丰富的丰富</view>
  20. <!-- 图片列表区域 -->
  21. <view class="header_img">
  22. <img mode="aspectFill" src="https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375" />
  23. <img mode="aspectFill" src="https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375" />
  24. <img mode="aspectFill" src="https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375" />
  25. <img mode="aspectFill" src="https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375" />
  26. </view>
  27. </view>
  28. <!-- 民宿信息区域 -->
  29. <view class="hotel">
  30. <img mode="aspectFill" src="https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375" />
  31. <view class="hotel_info">
  32. <view class="info_name">民宿名称</view>
  33. <view class="info_star">
  34. <uni-rate readonly activeColor="#FFC300" :size="12" :value="4" />
  35. <view class="star_num">4.0</view>
  36. </view>
  37. <view class="info_tags">
  38. <view class="tag_item">双溪镇</view>
  39. <view class="tag_item">包吃住型</view>
  40. </view>
  41. </view>
  42. </view>
  43. <!-- 评论回复区域 -->
  44. <view class="reply">
  45. <!-- 评论总条数区域 -->
  46. <view class="reply_title">
  47. <img src="../../static/index/comment.png" />
  48. 评论(24)
  49. </view>
  50. <!-- 评论列表区域 -->
  51. <view class="reply_box">
  52. <!-- 每一条评论区域 -->
  53. <view class="box_item">
  54. <!-- 用户区域 -->
  55. <view class="item_user">
  56. <img mode="aspectFill" src="https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375" />
  57. <view class="user_info">
  58. <view class="info_top">张三</view>
  59. <view class="info_bottom">2023/05/25</view>
  60. </view>
  61. </view>
  62. <!-- 评价内容区域 -->
  63. <view class="item_content">评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容的丰富的丰富</view>
  64. </view>
  65. <view class="box_item">
  66. <!-- 用户区域 -->
  67. <view class="item_user">
  68. <img mode="aspectFill" src="https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375" />
  69. <view class="user_info">
  70. <view class="info_top">商家</view>
  71. <view class="info_bottom">2023/05/25</view>
  72. </view>
  73. </view>
  74. <!-- 评价内容区域 -->
  75. <view class="item_content">
  76. <text class="content_key">回复张三:</text>
  77. 评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容的丰富的丰富
  78. </view>
  79. </view>
  80. </view>
  81. <!-- 输入框区域 -->
  82. <view class="reply_input">
  83. <input type="text" placeholder="说点什么吧..." />
  84. </view>
  85. </view>
  86. </view>
  87. </template>
  88. <script>
  89. export default {
  90. data() {
  91. return {
  92. // 评价详情信息
  93. info: {}
  94. }
  95. },
  96. onLoad(options) {
  97. // this.info = JSON.parse(decodeURIComponent(options.info))
  98. // console.log(this.info)
  99. }
  100. }
  101. </script>
  102. <style lang="scss" scoped>
  103. .container {
  104. display: flex;
  105. flex-direction: column;
  106. min-height: 100vh;
  107. background-color: #f2f3f5;
  108. .header {
  109. margin-top: 1rpx;
  110. padding: 0 20rpx;
  111. background-color: #fff;
  112. .header_info {
  113. display: flex;
  114. align-items: center;
  115. height: 115rpx;
  116. img {
  117. width: 70rpx;
  118. height: 70rpx;
  119. border-radius: 50%;
  120. }
  121. .info_msg {
  122. margin-left: 18rpx;
  123. .msg_name {
  124. font-size: 28rpx;
  125. }
  126. .msg_star {
  127. margin-left: -5rpx;
  128. margin-top: 5rpx;
  129. }
  130. }
  131. .info_time {
  132. margin-top: 25rpx;
  133. margin-left: auto;
  134. color: #a6a6a6;
  135. font-size: 24rpx;
  136. }
  137. }
  138. .header_time {
  139. color: #a6a6a6;
  140. font-size: 24rpx;
  141. }
  142. .header_content {
  143. margin-top: 18rpx;
  144. font-size: 24rpx;
  145. }
  146. .header_img {
  147. display: grid;
  148. grid-template-columns: 1fr 1fr 1fr;
  149. grid-auto-rows: auto;
  150. padding: 20rpx 20rpx 40rpx;
  151. gap: 10rpx;
  152. img {
  153. width: 216rpx;
  154. height: 216rpx;
  155. border-radius: 20rpx;
  156. }
  157. }
  158. }
  159. .hotel {
  160. display: flex;
  161. align-items: center;
  162. margin-top: 20rpx;
  163. height: 160rpx;
  164. background-color: #fff;
  165. img {
  166. margin-left: 20rpx;
  167. width: 120rpx;
  168. height: 120rpx;
  169. border-radius: 7rpx;
  170. }
  171. .hotel_info {
  172. display: flex;
  173. flex-direction: column;
  174. justify-content: space-between;
  175. margin-left: 20rpx;
  176. height: 120rpx;
  177. .info_name {
  178. font-size: 32rpx;
  179. }
  180. .info_star {
  181. display: flex;
  182. align-items: center;
  183. .star_num {
  184. margin-left: 10rpx;
  185. color: #ffc300;
  186. font-size: 24rpx;
  187. }
  188. }
  189. .info_tags {
  190. display: flex;
  191. color: #a6a6a6;
  192. font-size: 24rpx;
  193. .tag_item {
  194. margin-right: 20rpx;
  195. }
  196. }
  197. }
  198. }
  199. .reply {
  200. margin-top: 20rpx;
  201. background-color: #fff;
  202. .reply_title {
  203. display: flex;
  204. justify-content: flex-end;
  205. align-items: center;
  206. padding-right: 35rpx;
  207. height: 90rpx;
  208. font-size: 24rpx;
  209. border-bottom: 1rpx solid #e6e6e6;
  210. img {
  211. margin-right: 12rpx;
  212. width: 25rpx;
  213. height: 21rpx;
  214. }
  215. }
  216. .reply_box {
  217. padding: 0 20rpx 30rpx;
  218. .box_item {
  219. margin-bottom: 10rpx;
  220. .item_user {
  221. display: flex;
  222. align-items: center;
  223. height: 120rpx;
  224. img {
  225. width: 70rpx;
  226. height: 70rpx;
  227. border-radius: 50%;
  228. }
  229. .user_info {
  230. display: flex;
  231. flex-direction: column;
  232. justify-content: space-between;
  233. margin-left: 18rpx;
  234. height: 70rpx;
  235. .info_top {
  236. font-size: 28rpx;
  237. }
  238. .info_bottom {
  239. color: #a6a6a6;
  240. font-size: 24rpx;
  241. }
  242. }
  243. }
  244. .item_content {
  245. font-size: 24rpx;
  246. .content_key {
  247. color: #808080;
  248. }
  249. }
  250. }
  251. }
  252. .reply_input {
  253. display: flex;
  254. align-items: center;
  255. box-sizing: border-box;
  256. padding: 0 33rpx;
  257. margin: 54rpx auto;
  258. width: 710rpx;
  259. height: 78rpx;
  260. font-size: 24rpx;
  261. border-radius: 44rpx;
  262. background-color: #e6e6e6;
  263. input {
  264. width: 100%;
  265. }
  266. }
  267. }
  268. }
  269. </style>