order-result.less 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. /* pages/orders/order-detail.wxss */
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #F4F4F4;
  7. &::before {
  8. content: '';
  9. position: absolute;
  10. top: 0;
  11. width: 100%;
  12. height: 750rpx;
  13. background: linear-gradient(to bottom, #FB660A, #F5F6F7) #f4f4f4;
  14. background-size: 750rpx;
  15. }
  16. .weui-navigation-bar__btn_goback {
  17. background-color: #fff;
  18. }
  19. }
  20. .scroll-container {
  21. padding-bottom: 174rpx;
  22. }
  23. .order-status {
  24. margin: 24rpx 26rpx 0;
  25. // background-color: #FFFFFF;
  26. border-radius: 20rpx;
  27. padding: 24rpx 8rpx 24rpx 32rpx;
  28. .status {
  29. display: flex;
  30. justify-content: space-between;
  31. image {
  32. width: 48rpx;
  33. height: 48rpx;
  34. margin-right: 16rpx;
  35. }
  36. .btn-refound {
  37. text-align: center;
  38. font-size: 26rpx;
  39. color: rgba(255,255,255,0.7);
  40. line-height: 34rpx;
  41. height: 34rpx;
  42. border-radius: 24rpx;
  43. border: 1rpx solid rgba(255,255,255,0.7);
  44. padding: 4rpx 12rpx;
  45. }
  46. text {
  47. font-weight: 600;
  48. font-size: 36rpx;
  49. color: #FFFFFF;
  50. line-height: 48rpx;
  51. }
  52. }
  53. .tips {
  54. padding-top: 24rpx;
  55. font-size: 28rpx;
  56. color: #FFFFFF;
  57. line-height: 40rpx;
  58. }
  59. }
  60. .order-content {
  61. margin: 32rpx 26rpx 0;
  62. border-radius: 20rpx;
  63. padding: 28rpx 24rpx;
  64. display: flex;
  65. flex-direction: column;
  66. background-color: #FFFFFF;
  67. }
  68. .item-content {
  69. display: flex;
  70. width: 100%;
  71. .goods-icon {
  72. width: 160rpx;
  73. height: 160rpx;
  74. margin-right: 24rpx;
  75. flex-shrink: 0;
  76. border-radius: 6px;
  77. overflow: hidden;
  78. }
  79. .goods-desc {
  80. flex: 1 auto;
  81. display: flex;
  82. flex-direction: column;
  83. }
  84. .goodsInfo {
  85. display: flex;
  86. justify-content: space-between;
  87. padding-top: 4rpx;
  88. .goods-name {
  89. flex: 1 auto;
  90. white-space: nowrap;
  91. overflow: hidden;
  92. font-weight: 600;
  93. font-size: 28rpx;
  94. text-overflow: ellipsis;
  95. max-width: 310rpx;
  96. }
  97. .goods-price {
  98. flex-shrink: 0;
  99. font-family: DINAlternate, DINAlternate;
  100. font-weight: bold;
  101. font-size: 28rpx;
  102. color: #131415;
  103. line-height: 48rpx;
  104. }
  105. }
  106. .goods-type {
  107. display: flex;
  108. justify-content: space-between;
  109. align-items: center;
  110. padding-top: 12rpx;
  111. .goods-card {
  112. border-radius: 6rpx;
  113. font-size: 26rpx;
  114. color: #131415;
  115. line-height: 40rpx;
  116. }
  117. .goods-num {
  118. font-size: 26rpx;
  119. color: #999999;
  120. line-height: 36rpx;
  121. }
  122. }
  123. }
  124. .only_canvas {
  125. position: absolute;
  126. left: -300rpx;
  127. top: 0;
  128. width: 300rpx;
  129. height: 300rpx;
  130. }
  131. /* HTML: <div class="loader"></div> */
  132. .loader {
  133. position: absolute;
  134. top: 50%;
  135. left: 50%;
  136. right: 0;
  137. bottom: 0;
  138. margin-top: -50rpx;
  139. margin-left: -50rpx;
  140. z-index: 9;
  141. width: 100rpx;
  142. aspect-ratio: 1;
  143. border-radius: 50%;
  144. background:
  145. radial-gradient(farthest-side,#E8E8E8 94%,#0000) top/8px 8px no-repeat,
  146. conic-gradient(#0000 30%,#E8E8E8);
  147. -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
  148. animation: tempLoading 1s infinite linear;
  149. }
  150. @keyframes tempLoading{
  151. 100%{transform: rotate(1turn)}
  152. }
  153. .qrcode-section {
  154. margin-top: 28rpx;
  155. border-top: 2rpx solid #F0F0F0;
  156. padding-top: 60rpx;
  157. padding-bottom: 32rpx;
  158. text-align: center;
  159. display: flex;
  160. flex-direction: column;
  161. .qrcode-wrap {
  162. position: relative;
  163. margin: 0 auto;
  164. // border: 3rpx solid #EDEDED;
  165. padding: 34rpx;
  166. display: inline-block;
  167. font-size: 0;
  168. background: url('https://oss.dayaedu.com/ktyq/1732529619848.png') no-repeat center;
  169. background-size: contain;
  170. &.used {
  171. .arrow {
  172. display: none;
  173. }
  174. background: url('https://oss.dayaedu.com/ktyq/1732530067551.png') no-repeat center;
  175. background-size: contain;
  176. }
  177. .arrow {
  178. position: absolute;
  179. left: -126rpx;
  180. top: 50%;
  181. transform: translateY(-50%);
  182. width: 106rpx;
  183. height: 52rpx;
  184. }
  185. .arrow-right {
  186. right: -126rpx;
  187. left: auto;
  188. transform: rotateY(180deg) translateY(-50%);
  189. }
  190. }
  191. .my_draw_canvas {
  192. width: 300rpx;
  193. height: 300rpx;
  194. }
  195. .qrcode-text {
  196. display: inline-block;
  197. margin-top: 32rpx;
  198. padding: 16rpx 32rpx;
  199. font-weight: 500;
  200. font-size: 28rpx;
  201. color: #131415;
  202. line-height: 40rpx;
  203. background: #FFE7C7;
  204. border-radius: 36rpx;
  205. &.used {
  206. background: #F2F2F2;
  207. }
  208. }
  209. }
  210. .order-time {
  211. margin: 24rpx 26rpx 0;
  212. border-radius: 20rpx;
  213. padding: 36rpx 24rpx;
  214. background-color: #FFFFFF;
  215. .order-item {
  216. display: flex;
  217. justify-content: space-between;
  218. padding-bottom: 36rpx;
  219. &:last-child {
  220. padding-bottom: 0;
  221. }
  222. .title {
  223. font-weight: 500;
  224. font-size: 30rpx;
  225. color: #131415;
  226. line-height: 42rpx;
  227. }
  228. .value {
  229. font-size: 30rpx;
  230. color: #777777;
  231. line-height: 42rpx;
  232. display: flex;
  233. &.red {
  234. color: #FF5000;
  235. }
  236. .copy {
  237. font-size: 30rpx;
  238. color: #FF5000;
  239. line-height: 42rpx;
  240. display: flex;
  241. align-items: center;
  242. font-weight: 400;
  243. padding-left: 16rpx;
  244. }
  245. }
  246. }
  247. }
  248. .order-btn {
  249. position: fixed;
  250. bottom: 0;
  251. left: 0;
  252. width: 100%;
  253. background-color: #FFFFFF;
  254. padding: 20rpx 32rpx 58rpx 40rpx;
  255. display: flex;
  256. justify-content: space-between;
  257. box-sizing: border-box;
  258. .orders {
  259. display: flex;
  260. flex-direction: column;
  261. margin-right: 40rpx;
  262. image {
  263. width: 48rpx;
  264. height: 48rpx;
  265. }
  266. text {
  267. font-weight: 500;
  268. font-size: 22rpx;
  269. color: #131415;
  270. line-height: 32rpx;
  271. text-align: center;
  272. }
  273. }
  274. .price {
  275. display: flex;
  276. align-items: center;
  277. .desc {
  278. font-weight: 500;
  279. font-size: 28rpx;
  280. color: #131415;
  281. line-height: 40rpx;
  282. }
  283. .currentPrice {
  284. font-weight: bold;
  285. color: #FE2451;
  286. font-family: DINAlternate, DINAlternate;
  287. .stuff {
  288. font-size: 32rpx;
  289. }
  290. .priceZ {
  291. font-size: 56rpx;
  292. }
  293. .priceF {
  294. font-size: 32rpx;
  295. }
  296. }
  297. }
  298. button {
  299. margin: 0;
  300. width: 100%;
  301. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  302. border-radius: 16rpx;
  303. padding: 22rpx 84rpx;
  304. font-weight: 500;
  305. font-size: 32rpx;
  306. color: #FFFFFF;
  307. line-height: 44rpx;
  308. &[disabled][type=primary] {
  309. color: #fff;
  310. background: linear-gradient( 315deg, #FF4A00 0%, #FE8C00 100%);
  311. color: #FFFFFF;
  312. opacity: 0.7;
  313. }
  314. }
  315. }