order-detail.wxss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. /* pages/order-detail/order-detail.wxss */
  2. page {
  3. background: #f4f4f4;
  4. }
  5. .order-detail {
  6. margin-bottom: 120rpx;
  7. }
  8. .order-detail .delivery-addr {
  9. padding: 20rpx 30rpx;
  10. background: #fff;
  11. }
  12. .order-detail .delivery-addr .user-info {
  13. line-height: 48rpx;
  14. word-wrap: break-word;
  15. word-break: break-all;
  16. overflow: hidden;
  17. text-overflow: ellipsis;
  18. display: -webkit-box;
  19. -webkit-line-clamp: 1;
  20. -webkit-box-orient: vertical;
  21. }
  22. .order-detail .delivery-addr .user-info .item {
  23. font-size: 28rpx;
  24. margin-right: 30rpx;
  25. vertical-align: top;
  26. display: inline-block;
  27. }
  28. .order-detail .delivery-addr .addr {
  29. font-size: 26rpx;
  30. line-height: 36rpx;
  31. color: #999;
  32. }
  33. /* 商品列表 */
  34. .prod-item {
  35. background-color: #fff;
  36. margin-top: 15rpx;
  37. font-size: 28rpx;
  38. }
  39. .prod-item .item-cont .prod-pic image {
  40. width: 180rpx;
  41. height: 180rpx;
  42. }
  43. .prod-item .item-cont {
  44. display: flex;
  45. align-items: center;
  46. padding: 30rpx;
  47. border-top: 2rpx solid #f1f1f1;
  48. }
  49. .prod-item .item-cont .prod-pic {
  50. font-size: 0;
  51. display: block;
  52. width: 160rpx;
  53. height: 160rpx;
  54. overflow: hidden;
  55. background: #fff;
  56. margin-right: 16rpx;
  57. }
  58. .prod-item .item-cont .prod-pic image {
  59. width: 100%;
  60. height: 100%;
  61. }
  62. .prod-item .item-cont .prod-info {
  63. margin-left: 10rpx;
  64. font-size: 28rpx;
  65. width: 100%;
  66. position: relative;
  67. height: 80px;
  68. -webkit-flex: 1;
  69. -ms-flex: 1;
  70. -webkit-box-flex: 1;
  71. -moz-box-flex: 1;
  72. flex: 1;
  73. }
  74. .prod-item .item-cont .prod-info .prodname {
  75. font-size: 28rpx;
  76. line-height: 40rpx;
  77. max-height: 86rpx;
  78. overflow: hidden;
  79. display: -webkit-box;
  80. -webkit-line-clamp: 1;
  81. -webkit-box-orient: vertical;
  82. text-overflow: ellipsis;
  83. word-break: break-all;
  84. }
  85. .prod-item .item-cont .prod-info .prod-info-cont {
  86. position: relative;
  87. color: #999;
  88. margin-top: 10rpx;
  89. font-size: 24rpx;
  90. }
  91. .prod-item .item-cont .prod-info .prod-info-cont .info-item {
  92. color: #999;
  93. height: 28rpx;
  94. margin-top: 10rpx;
  95. font-size: 24rpx;
  96. overflow: hidden;
  97. display: -webkit-box;
  98. -webkit-line-clamp: 1;
  99. -webkit-box-orient: vertical;
  100. text-overflow: ellipsis;
  101. word-break: break-all;
  102. width: 70%;
  103. }
  104. .prod-item .item-cont .prod-info .prod-info-cont .number {
  105. float: left;
  106. margin-right: 20rpx;
  107. }
  108. .prod-item .price-nums {
  109. margin-top: 30rpx;
  110. }
  111. .prod-item .price-nums .prodprice {
  112. color: #333;
  113. height: 50rpx;
  114. line-height: 50rpx;
  115. font-size: 24rpx;
  116. float: left;
  117. }
  118. .prod-item .price-nums .btn-box {
  119. float: right;
  120. text-align: right;
  121. }
  122. .prod-item .price-nums .btn-box .btn {
  123. padding: 6rpx 30rpx;
  124. line-height: 36rpx;
  125. margin-left: 20rpx;
  126. font-size: 24rpx;
  127. display: inline-block;
  128. border: 2rpx solid #e4e4e4;
  129. border-radius: 50rpx;
  130. }
  131. /*
  132. 订单信息 */
  133. .order-msg {
  134. background: #fff;
  135. margin-top: 15rpx;
  136. font-size: 28rpx;
  137. }
  138. .order-msg .msg-item {
  139. padding: 20rpx;
  140. border-top: 2rpx solid #f1f1f1;
  141. }
  142. .order-msg .msg-item:first-child {
  143. border: 0;
  144. }
  145. .order-msg .msg-item .item {
  146. display: flex;
  147. padding: 10rpx 0;
  148. align-items: center;
  149. }
  150. .order-msg .msg-item .item.payment {
  151. border-top: 2rpx solid #f1f1f1;
  152. color: #eb2444;
  153. padding-top: 30rpx;
  154. }
  155. .order-msg .msg-item .item .item-tit {
  156. color: #999;
  157. line-height: 48rpx;
  158. }
  159. .order-msg .msg-item .item .item-txt {
  160. flex: 1;
  161. line-height: 48rpx;
  162. }
  163. .order-msg .msg-item .item .copy-btn {
  164. display: block;
  165. margin-left: 20rpx;
  166. border: 2rpx solid #e4e4e4;
  167. padding: 6rpx 24rpx;
  168. border-radius: 50rpx;
  169. font-size: 24rpx;
  170. line-height: 28rpx;
  171. }
  172. .order-msg .msg-item .item .item-txt.price {
  173. text-align: right;
  174. }
  175. /* 底部栏 */
  176. .order-detail-footer {
  177. position: fixed;
  178. bottom: 0;
  179. width: 100%;
  180. max-width: 750rpx;
  181. background: #fff;
  182. margin: auto;
  183. display: -webkit-flex;
  184. display: -webkit-box;
  185. display: -moz-box;
  186. display: -ms-flexbox;
  187. display: flex;
  188. padding: 22rpx 0;
  189. font-size: 26rpx;
  190. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  191. }
  192. .order-detail-footer .dele-order {
  193. margin-left: 20rpx;
  194. line-height: 60rpx;
  195. display: block;
  196. margin-right: 20rpx;
  197. width: 150rpx;
  198. text-align: center;
  199. }
  200. .order-detail-footer .footer-box {
  201. flex: 1;
  202. text-align: right;
  203. line-height: 60rpx;
  204. }
  205. .order-detail-footer .footer-box .buy-again {
  206. font-size: 26rpx;
  207. color: #fff;
  208. background: #eb2444;
  209. border-radius: 50rpx;
  210. padding: 10rpx 20rpx;
  211. margin-right: 20rpx;
  212. }
  213. .order-detail-footer .footer-box .apply-service {
  214. font-size: 26rpx;
  215. border-radius: 50rpx;
  216. padding: 10rpx 20rpx;
  217. border: 1px solid #e4e4e4;
  218. margin-right: 20rpx;
  219. }
  220. .clearfix:after {
  221. content: " ";
  222. display: table;
  223. clear: both;
  224. }
  225. /* 根据状态显示不同的颜色 */
  226. .order-state {
  227. height: 70rpx;
  228. line-height: 70rpx;
  229. text-align: right;
  230. margin-right: 20rpx;
  231. }
  232. .order-state .order-sts {
  233. color: #eb2444;
  234. font-size: 28rpx;
  235. }
  236. .order-state .order-sts.gray {
  237. color: #999;
  238. height: 32rpx;
  239. line-height: 32rpx;
  240. }
  241. .order-state .order-sts.normal {
  242. color: #333;
  243. }