orderDetails.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <template>
  2. <view class="order-detail">
  3. <topNavBar title="订单详情" />
  4. <view class="order-state padding-sm dflex-b w-full">
  5. <view class="state-left">
  6. <view class="state-info">等待商家接单</view>
  7. <view class="order-code">预计 09:59 分钟后接单</view>
  8. </view>
  9. <uni-icons type="right" size="24" color="#FFF"></uni-icons>
  10. </view>
  11. <view class="gap"></view>
  12. <view class="padding-sm dflex-b bg-main" @click="show = true">
  13. <view class="dflex">
  14. <view class="w-full dflex-wrap-w send-label">
  15. 取餐时间
  16. </view>
  17. </view>
  18. <u-icon slot="icon" size="20" name="arrow-right" label="04:00" labelPos="left"></u-icon>
  19. </view>
  20. <view class="gap"></view>
  21. <view class="padding-sm dflex-b bg-main">
  22. <view class="dflex">
  23. <view class="w-full dflex-wrap-w send-label">
  24. 取餐方式
  25. </view>
  26. </view>
  27. <view>
  28. <radio style="transform: scale(0.85)" value="r1" :checked="true" color="#ff0000" class="radio">店内用餐
  29. </radio>
  30. </view>
  31. </view>
  32. <view class="gap"></view>
  33. <view class="goods-order-list padding-lr-sm">
  34. <view class="shop dflex-b ">
  35. <view class="shop-check">
  36. <text class="send-label">店铺名称</text>
  37. </view>
  38. <view class="total-goods">共计2件商品</view>
  39. </view>
  40. <view class="goods-cart">
  41. <view class="goods-cont dflex-b padding-tb-16">
  42. <view class="goods-cart-info dflex-b">
  43. <view class="pic"></view>
  44. <view class="goods-cart-right">
  45. <view class="cart-title">商品名称商品名称</view>
  46. <view class="order-spec">
  47. <text>500g</text>
  48. </view>
  49. <view class="cart-row-info dflex-s">
  50. <view class="cart-price">
  51. ¥<text>12.30</text>
  52. </view>
  53. <view class="goods-num">×1</view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="goods-cont dflex-b padding-tb-16">
  59. <view class="goods-cart-info dflex-b">
  60. <view class="pic"></view>
  61. <view class="goods-cart-right">
  62. <view class="cart-title">商品名称商品名称</view>
  63. <view class="order-spec">
  64. <text>500g</text>
  65. </view>
  66. <view class="cart-row-info dflex-s">
  67. <view class="cart-price">
  68. ¥<text>12.30</text>
  69. </view>
  70. <view class="goods-num">×1</view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="gap"></view>
  78. <!-- 金额明细 -->
  79. <view class="bg-main">
  80. <view class="dflex-b padding-lr padding-tb-sm">
  81. <view class="flex1 send-label">总金额</view>
  82. <view class=""><text style="font-size: 24rpx;">¥</text>46.32</view>
  83. </view>
  84. <view class="gap"></view>
  85. <view class="w-full padding-sm order-info">
  86. <view class="row-cell dflex-b">
  87. <text>订单编号</text>
  88. <text class="cell-right">M0000000000</text>
  89. </view>
  90. <view class="row-cell dflex-b">
  91. <text>下单时间</text>
  92. <text class="cell-right">2024-03-25 12:23:36</text>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="gap"></view>
  97. <view class="bar-space"></view>
  98. <view class="order-btn background-gradient">取消订单</view>
  99. </view>
  100. </template>
  101. <script>
  102. export default {
  103. data() {
  104. return {
  105. }
  106. },
  107. methods: {
  108. }
  109. }
  110. </script>
  111. <style lang="scss" scoped>
  112. .order-state {
  113. background-color: #F96C22;
  114. box-sizing: border-box;
  115. color: #FFF;
  116. .state-info {
  117. font-size: 14px;
  118. padding-bottom: 4px;
  119. }
  120. .order-code {
  121. font-size: 12px;
  122. }
  123. }
  124. .addr-label {
  125. padding: 6upx 0;
  126. border-radius: 3px;
  127. background-color: #F6390D;
  128. color: #fff;
  129. width: 120upx;
  130. text-align: center;
  131. flex-shrink: 0;
  132. margin-right: 14upx;
  133. }
  134. .order-spec {
  135. padding-bottom: 10upx;
  136. }
  137. .shop {
  138. padding-top: 20upx;
  139. }
  140. .goods-num {
  141. font-size: 16px;
  142. padding-left: 20upx;
  143. }
  144. .sub-coupon {
  145. padding-top: 20upx;
  146. padding-bottom: 0;
  147. color: #000;
  148. .coupon-name {
  149. font-weight: normal;
  150. }
  151. .mj-tag {
  152. background-color: #F6390D;
  153. >text {
  154. color: #FFF;
  155. }
  156. }
  157. }
  158. .total-goods {
  159. font-size: 12px;
  160. color: #999;
  161. }
  162. .submit-bar {
  163. height: 100upx;
  164. width: 100%;
  165. background-color: #FFF;
  166. position: fixed;
  167. left: 0;
  168. bottom: 0;
  169. .submit-total {
  170. font-size: 16px;
  171. font-weight: 700;
  172. color: #F6390D;
  173. }
  174. .submit-btn {
  175. background-image: $base-bg-gradient-color;
  176. height: 70upx;
  177. width: 200upx;
  178. color: #FFF;
  179. font-size: 14px;
  180. font-weight: 700;
  181. border-radius: 35upx;
  182. }
  183. }
  184. .order-btn {
  185. height: 76upx;
  186. border-radius: 38px;
  187. background-image: $base-bg-gradient-color;
  188. text-align: center;
  189. line-height: 76upx;
  190. color: #FFF;
  191. font-size: 14px;
  192. width: 90%;
  193. position: fixed;
  194. left: 5%;
  195. bottom: 30upx;
  196. z-index: 99;
  197. }
  198. .order-info {
  199. background-color: #FFF;
  200. box-sizing: border-box;
  201. }
  202. .row-cell {
  203. padding-bottom: 20upx;
  204. .cell-right {
  205. font-size: 12px;
  206. color: #999;
  207. }
  208. }
  209. .row-cell:last-child {
  210. padding-bottom: 0;
  211. }
  212. .pic {
  213. margin-right: 20upx;
  214. height: 160rpx;
  215. width: 160rpx;
  216. background-color: #EEE;
  217. }
  218. .send-label {
  219. font-size: 14px;
  220. font-weight: 700;
  221. }
  222. </style>