orderDetail.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. <template>
  2. <view class="container">
  3. <!-- 顶部订单状态信息区域 -->
  4. <view class="header">
  5. <!-- 背景图片区域 -->
  6. <img src="../../static/my/headerImg.png" />
  7. <!-- 标题区域 -->
  8. <view class="header_title">订单详情</view>
  9. <!-- 返回图标区域 -->
  10. <img class="header_icon" src="../../static/index/left.png" @click="handleBack" />
  11. <view class="header_type">订单超时</view>
  12. <view class="header_info">订单已超过可支付时间,请重新下单</view>
  13. <view class="header_btn">
  14. <view class="btn_box">再次预定</view>
  15. <view class="btn_box">删除订单</view>
  16. </view>
  17. </view>
  18. <!-- 主体内容区域 -->
  19. <view class="body">
  20. <!-- 费用信息区域 -->
  21. <view class="body_box">
  22. <view class="box_title">费用信息</view>
  23. <view class="box_container">
  24. <view class="container_key">在线支付</view>
  25. <view class="container_value price">¥280</view>
  26. </view>
  27. <view class="box_container">
  28. <view class="container_key">发票报销</view>
  29. <view class="container_value">如需发票,请先与酒店确认</view>
  30. </view>
  31. </view>
  32. <!-- 民宿信息区域 -->
  33. <view class="body_box">
  34. <view class="box_info">
  35. <img src="../../static/index/banner.png" />
  36. <view class="info_msg">
  37. <view class="msg_name">民宿名称</view>
  38. <view class="msg_address">详细地址详细地址详细地址详细地址详细地址详细地址详细详细地址详细地址详细地址详</view>
  39. </view>
  40. </view>
  41. <view class="box_btn">
  42. <view class="btn_item">
  43. <img class="img" src="../../static/my/map.png" />
  44. 地图/导航
  45. </view>
  46. <view class="btn_item">
  47. <img class="img2" src="../../static/my/phone.png" />
  48. 联系商家
  49. </view>
  50. </view>
  51. </view>
  52. <!-- 房型信息和用户信息区域 -->
  53. <view class="body_box2">
  54. <view class="info_time">
  55. 7月26日
  56. <text class="gap">今天</text>
  57. <view class="time_line"></view>
  58. <view class="time_num">1晚</view>
  59. <view class="time_line"></view>
  60. <view class="gap">7月26日</view>
  61. <text>明天</text>
  62. </view>
  63. <view class="info_msg">大床房</view>
  64. <view class="info_type">
  65. <view class="type_item">包吃住型</view>
  66. <view class="type_item">包吃住型</view>
  67. <view class="type_item">包吃住型</view>
  68. </view>
  69. <view class="info_tag">
  70. <view class="tag_item">16-20㎡</view>
  71. <view class="tag_item">双人床</view>
  72. <view class="tag_item">窗户位于走廊/窗户较小</view>
  73. </view>
  74. <view class="info_box">
  75. <view class="box_key">住客姓名</view>
  76. <view class="box_value">张三</view>
  77. </view>
  78. <view class="info_box">
  79. <view class="box_key">联系电话</view>
  80. <view class="box_value">13677985689</view>
  81. </view>
  82. <view class="info_box">
  83. <view class="box_key">预计到店</view>
  84. <view class="box_value">7月26日14:00之前</view>
  85. </view>
  86. </view>
  87. <!-- 订单信息区域 -->
  88. <view class="body_box">
  89. <view class="box_title">订单信息</view>
  90. <view class="box_container">
  91. <view class="container_key">订单号</view>
  92. <view class="container_value">2626262626260660606</view>
  93. <view class="container_copy">复制</view>
  94. </view>
  95. <view class="box_container">
  96. <view class="container_key">下单时间</view>
  97. <view class="container_value">2023-06-27 15:15:15</view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </template>
  103. <script>
  104. export default {
  105. data() {
  106. return {}
  107. },
  108. methods: {
  109. handleBack() {
  110. uni.navigateBack(1)
  111. }
  112. }
  113. }
  114. </script>
  115. <style lang="scss" scoped>
  116. .container {
  117. position: relative;
  118. height: 100vh;
  119. background-color: #f2f2f2;
  120. .header {
  121. height: 480rpx;
  122. color: #fff;
  123. img {
  124. width: 100%;
  125. }
  126. .header_title {
  127. position: absolute;
  128. top: 65rpx;
  129. left: 308rpx;
  130. color: #fff;
  131. font-size: 28rpx;
  132. }
  133. .header_icon {
  134. position: absolute;
  135. top: 56rpx;
  136. left: 10rpx;
  137. width: 47rpx;
  138. height: 47rpx;
  139. }
  140. .header_type {
  141. position: absolute;
  142. top: 144rpx;
  143. left: 30rpx;
  144. font-size: 40rpx;
  145. }
  146. .header_info {
  147. position: absolute;
  148. top: 215rpx;
  149. left: 30rpx;
  150. font-size: 24rpx;
  151. }
  152. .header_btn {
  153. position: absolute;
  154. top: 280rpx;
  155. left: 30rpx;
  156. right: 30rpx;
  157. display: flex;
  158. justify-content: space-between;
  159. .btn_box {
  160. display: flex;
  161. justify-content: center;
  162. align-items: center;
  163. width: 335rpx;
  164. height: 72rpx;
  165. border-radius: 10rpx;
  166. color: #096562;
  167. font-size: 28rpx;
  168. background-color: #fff;
  169. }
  170. }
  171. }
  172. .body {
  173. position: absolute;
  174. top: 390rpx;
  175. left: 0;
  176. right: 0;
  177. box-sizing: border-box;
  178. padding: 20rpx;
  179. height: calc(100vh - 390rpx);
  180. border-radius: 20rpx 20rpx 0 0;
  181. background-color: #ebeced;
  182. overflow-y: auto;
  183. .body_box {
  184. box-sizing: border-box;
  185. padding: 0 30rpx;
  186. margin-bottom: 20rpx;
  187. display: flex;
  188. flex-direction: column;
  189. height: 240rpx;
  190. border-radius: 14rpx;
  191. background-color: #fff;
  192. .box_title {
  193. line-height: 90rpx;
  194. font-size: 28rpx;
  195. font-weight: bold;
  196. border-bottom: 1rpx solid #e5e5e5;
  197. }
  198. .box_container {
  199. display: flex;
  200. margin-top: 25rpx;
  201. font-size: 28rpx;
  202. .container_key {
  203. width: 160rpx;
  204. color: #808080;
  205. }
  206. .container_value {
  207. }
  208. .container_copy {
  209. margin-left: auto;
  210. color: #096562;
  211. }
  212. .price {
  213. color: #ff5733;
  214. }
  215. }
  216. .box_info {
  217. display: flex;
  218. margin-top: 20rpx;
  219. height: 130rpx;
  220. img {
  221. width: 100rpx;
  222. height: 100rpx;
  223. border-radius: 10rpx;
  224. }
  225. .info_msg {
  226. display: flex;
  227. flex-direction: column;
  228. justify-content: space-around;
  229. margin-top: -10rpx;
  230. margin-left: 18rpx;
  231. width: 540rpx;
  232. .msg_name {
  233. font-size: 28rpx;
  234. font-weight: bold;
  235. }
  236. .msg_address {
  237. color: #808080;
  238. font-size: 24rpx;
  239. display: -webkit-box;
  240. -webkit-box-orient: vertical;
  241. -webkit-line-clamp: 2;
  242. overflow: hidden;
  243. }
  244. }
  245. }
  246. .box_btn {
  247. display: flex;
  248. justify-content: space-around;
  249. align-items: center;
  250. height: 110rpx;
  251. .btn_item {
  252. display: flex;
  253. align-items: center;
  254. width: 200rpx;
  255. .img {
  256. margin-right: 14rpx;
  257. width: 38rpx;
  258. height: 38rpx;
  259. }
  260. .img2 {
  261. width: 66rpx;
  262. height: 66rpx;
  263. }
  264. }
  265. }
  266. }
  267. .body_box2 {
  268. display: flex;
  269. flex-direction: column;
  270. box-sizing: border-box;
  271. padding: 0 30rpx;
  272. margin-bottom: 20rpx;
  273. height: 478rpx;
  274. border-radius: 15rpx;
  275. background-color: #fff;
  276. .info_time {
  277. display: flex;
  278. align-items: center;
  279. margin-top: 20rpx;
  280. font-size: 32rpx;
  281. font-weight: bold;
  282. .time_line {
  283. width: 17rpx;
  284. height: 1rpx;
  285. background-color: #096562;
  286. }
  287. .time_num {
  288. box-sizing: border-box;
  289. padding: 0 15rpx;
  290. height: 46rpx;
  291. line-height: 46rpx;
  292. font-size: 24rpx;
  293. font-weight: 400;
  294. border-radius: 66rpx;
  295. border: 1rpx solid #096562;
  296. background-color: #f0f2f5;
  297. }
  298. .gap {
  299. margin: 0 10rpx;
  300. }
  301. text {
  302. font-size: 24rpx;
  303. font-weight: 400;
  304. }
  305. }
  306. .info_msg {
  307. margin-top: 15rpx;
  308. font-size: 28rpx;
  309. font-weight: bold;
  310. }
  311. .info_type {
  312. display: flex;
  313. flex-wrap: wrap;
  314. margin-top: 15rpx;
  315. .type_item {
  316. box-sizing: border-box;
  317. padding: 0 15rpx;
  318. margin-right: 20rpx;
  319. height: 41rpx;
  320. line-height: 41rpx;
  321. font-size: 24rpx;
  322. color: #fff;
  323. border-radius: 34rpx;
  324. background-color: #096562;
  325. }
  326. }
  327. .info_tag {
  328. display: flex;
  329. flex-wrap: wrap;
  330. margin: 18rpx 0 0;
  331. box-sizing: border-box;
  332. padding-bottom: 30rpx;
  333. color: #808080;
  334. font-size: 24rpx;
  335. border-bottom: 1rpx solid #e5e5e5;
  336. .tag_item {
  337. margin-right: 20rpx;
  338. }
  339. }
  340. .info_box {
  341. display: flex;
  342. margin-top: 23rpx;
  343. font-size: 28rpx;
  344. .box_key {
  345. width: 160rpx;
  346. color: #808080;
  347. }
  348. .box_value {
  349. }
  350. }
  351. }
  352. }
  353. }
  354. </style>