order-result.less 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. /* pages/orders/order-detail.wxss */
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #F4F4F4;
  7. }
  8. .order-status {
  9. margin: 24rpx 26rpx 0;
  10. background-color: #FFFFFF;
  11. border-radius: 20rpx;
  12. padding: 24rpx 32rpx;
  13. .status {
  14. display: flex;
  15. image {
  16. width: 48rpx;
  17. height: 48rpx;
  18. margin-right: 16rpx;
  19. }
  20. text {
  21. font-weight: 600;
  22. font-size: 36rpx;
  23. color: #131415;
  24. line-height: 48rpx;
  25. }
  26. }
  27. .tips {
  28. padding-top: 24rpx;
  29. font-size: 28rpx;
  30. color: #777777;
  31. line-height: 40rpx;
  32. }
  33. }
  34. .order-content {
  35. margin: 24rpx 26rpx 0;
  36. border-radius: 20rpx;
  37. display: flex;
  38. flex-direction: column;
  39. background-color: #FFFFFF;
  40. }
  41. .goods-content {
  42. margin: 24rpx 26rpx 0;
  43. border-radius: 20rpx;
  44. padding: 28rpx 24rpx;
  45. display: flex;
  46. flex-direction: column;
  47. background-color: #FFFFFF;
  48. }
  49. .item-content {
  50. display: flex;
  51. width: 100%;
  52. .goods-icon {
  53. width: 140rpx;
  54. height: 140rpx;
  55. margin-right: 24rpx;
  56. flex-shrink: 0;
  57. border-radius: 6px;
  58. overflow: hidden;
  59. }
  60. .goods-desc {
  61. flex: 1 auto;
  62. display: flex;
  63. flex-direction: column;
  64. }
  65. .goodsInfo {
  66. display: flex;
  67. justify-content: space-between;
  68. padding-top: 4rpx;
  69. .goods-name {
  70. flex: 1 auto;
  71. white-space: nowrap;
  72. overflow: hidden;
  73. font-weight: 600;
  74. font-size: 30rpx;
  75. color: #131415;
  76. text-overflow: ellipsis;
  77. max-width: 380rpx;
  78. }
  79. .goods-price {
  80. flex-shrink: 0;
  81. font-family: DINAlternate, DINAlternate;
  82. font-weight: bold;
  83. font-size: 28rpx;
  84. color: #131415;
  85. line-height: 48rpx;
  86. }
  87. }
  88. .goods-type {
  89. display: flex;
  90. justify-content: space-between;
  91. align-items: center;
  92. padding-top: 12rpx;
  93. .goods-card {
  94. background: #FDF2E2;
  95. border-radius: 6rpx;
  96. font-size: 26rpx;
  97. color: #502F00;
  98. line-height: 36rpx;
  99. padding: 0 12rpx;
  100. }
  101. .goods-num {
  102. font-size: 28rpx;
  103. color: #777777;
  104. line-height: 36rpx;
  105. }
  106. }
  107. }
  108. .qrcode-title {
  109. padding: 40rpx 24rpx;
  110. font-weight: 600;
  111. font-size: 30rpx;
  112. color: #131415;
  113. line-height: 42rpx;
  114. }
  115. .qrcode-line {
  116. position: relative;
  117. background: linear-gradient(to right, transparent 50%, rgba(219, 219, 219, 1) 50%) repeat-x; // 设置水平方向的线性渐变,透明与半透明色交替,模拟虚线线段
  118. background-size: 10px 1px; // 设置背景大小,控制虚线的线段长度和粗细,这里线段长度为10px,粗细为1px
  119. height: 2rpx; // 元素高度,可根据实际需求调整,用于展示虚线效果的高度范围
  120. margin: 0 24rpx;
  121. &::before, &::after {
  122. content: '';
  123. position: absolute;
  124. top: -20rpx;
  125. display: block;
  126. width: 40rpx;
  127. height: 40rpx;
  128. background-color: #F4F4F4;
  129. border-radius: 50%;
  130. }
  131. &::before {
  132. left: -44rpx;
  133. }
  134. &::after {
  135. right: -44rpx;
  136. }
  137. }
  138. .only_canvas {
  139. position: absolute;
  140. left: -300rpx;
  141. top: 0;
  142. width: 202rpx;
  143. height: 202rpx;
  144. }
  145. .qrcode-section {
  146. margin-top: 20rpx;
  147. padding-bottom: 32rpx;
  148. padding: 0 24rpx 28rpx;
  149. .qrcode-block {
  150. display: flex;
  151. margin-top: 20rpx;
  152. background: #FBF5EE;
  153. border-radius: 20rpx;
  154. overflow: hidden;
  155. .left-text {
  156. padding: 0 18rpx 0 22rpx;
  157. background: linear-gradient( 180deg, #544F4A 0%, #302F2B 100%);
  158. display: flex;
  159. align-items: center;
  160. justify-content: center;
  161. writing-mode: vertical-lr;
  162. font-weight: 600;
  163. font-size: 26rpx;
  164. color: #FBEAC9;
  165. line-height: 36rpx;
  166. letter-spacing: 10rpx;
  167. }
  168. }
  169. .qrcode-wrap {
  170. position: relative;
  171. margin: 32rpx auto;
  172. border: 2rpx solid #EDEDED;
  173. padding: 6rpx;
  174. border-radius: 8rpx;
  175. display: inline-block;
  176. font-size: 0;
  177. }
  178. .my_draw_canvas {
  179. width: 202rpx;
  180. height: 202rpx;
  181. }
  182. .qrcode-text {
  183. font-size: 28rpx;
  184. color: #131415;
  185. line-height: 40rpx;
  186. border-radius: 12rpx;
  187. border: 2rpx solid #F2F2F2;
  188. padding: 16rpx 24rpx;
  189. text-align: left;
  190. text {
  191. color: #DDA64C;
  192. font-weight: bold;
  193. }
  194. &.used {
  195. color: #AAAAAA;
  196. }
  197. }
  198. }
  199. .order-time {
  200. margin: 24rpx 26rpx 0;
  201. border-radius: 20rpx;
  202. // padding: 36rpx 24rpx;
  203. background-color: #FFFFFF;
  204. .order-item {
  205. display: flex;
  206. justify-content: space-between;
  207. // padding-bottom: 36rpx;
  208. padding: 36rpx 0;
  209. margin: 0 24rpx;
  210. border-bottom: 2rpx solid #F0F0F0;
  211. &:last-child {
  212. border-bottom: none;
  213. }
  214. .title {
  215. font-weight: 500;
  216. font-size: 30rpx;
  217. color: #131415;
  218. line-height: 42rpx;
  219. }
  220. .value {
  221. font-size: 30rpx;
  222. color: #777777;
  223. line-height: 42rpx;
  224. display: flex;
  225. &.red {
  226. color: #FE2451;
  227. }
  228. .copy {
  229. font-size: 30rpx;
  230. color: #131415;
  231. line-height: 42rpx;
  232. display: flex;
  233. align-items: center;
  234. &::before {
  235. content: '';
  236. display: block;
  237. width: 2rpx;
  238. height: 22rpx;
  239. background: #DCDCDC;
  240. margin: 0 16rpx;
  241. }
  242. }
  243. }
  244. }
  245. }
  246. .order-btn {
  247. position: fixed;
  248. bottom: 0;
  249. left: 0;
  250. width: 100%;
  251. background-color: #FFFFFF;
  252. padding: 20rpx 32rpx 58rpx 40rpx;
  253. display: flex;
  254. justify-content: space-between;
  255. box-sizing: border-box;
  256. .orders {
  257. display: flex;
  258. flex-direction: column;
  259. margin-right: 40rpx;
  260. image {
  261. width: 48rpx;
  262. height: 48rpx;
  263. }
  264. text {
  265. font-weight: 500;
  266. font-size: 22rpx;
  267. color: #131415;
  268. line-height: 32rpx;
  269. text-align: center;
  270. }
  271. }
  272. .price {
  273. display: flex;
  274. align-items: center;
  275. .desc {
  276. font-weight: 500;
  277. font-size: 28rpx;
  278. color: #131415;
  279. line-height: 40rpx;
  280. }
  281. .currentPrice {
  282. font-weight: bold;
  283. color: #FE2451;
  284. font-family: DINAlternate, DINAlternate;
  285. .stuff {
  286. font-size: 32rpx;
  287. }
  288. .priceZ {
  289. font-size: 56rpx;
  290. }
  291. .priceF {
  292. font-size: 32rpx;
  293. }
  294. }
  295. }
  296. button {
  297. margin: 0;
  298. width: 100%;
  299. background: linear-gradient( 90deg, #544F4A 0%, #302F2B 100%);
  300. border-radius: 78rpx;
  301. padding: 22rpx 84rpx;
  302. font-weight: 500;
  303. font-size: 32rpx;
  304. color: #FBEAC9;
  305. line-height: 44rpx;
  306. }
  307. }