orderList.wxss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. /* pages/orderList/orderList.wxss */
  2. page {
  3. background-color: #f4f4f4;
  4. color: #333;
  5. padding-bottom: 200rpx;
  6. }
  7. /* 头部菜单 */
  8. .search-box{
  9. position: fixed;
  10. top: 0;
  11. width: 100%;
  12. height: 168rpx;
  13. background: #fff;
  14. z-index: 999;
  15. padding: 20rpx 24rpx;
  16. box-sizing: border-box;
  17. }
  18. .type-box{
  19. display: flex;
  20. }
  21. .type-box .type-item{
  22. font-size: 32rpx;
  23. color: #AAAAAA;
  24. margin-right: 64rpx;
  25. }
  26. .type-box .type-item.active{
  27. font-weight: bold;
  28. font-size: 32rpx;
  29. color: #222222;
  30. position: relative;
  31. }
  32. .type-box .type-item.active::after{
  33. content: '';
  34. display: block;
  35. width: 40rpx;
  36. height: 8rpx;
  37. background: #FF941A;
  38. border-radius: 4rpx 4rpx 4rpx 4rpx;
  39. position: absolute;
  40. left: 50%;
  41. bottom: -20rpx;
  42. transform: translateX(-20rpx);
  43. }
  44. .order-tit {
  45. display: flex;
  46. /* justify-content: space-around; */
  47. z-index: 999;
  48. width: 100%;
  49. height: 48rpx;
  50. line-height: 48rpx;
  51. background-color: #fff;
  52. margin-top: 38rpx;
  53. }
  54. .order-tit text {
  55. width: 104rpx;
  56. height: 48rpx;
  57. line-height: 48rpx;
  58. text-align: center;
  59. background: #F6F6F6;
  60. border-radius: 24rpx 24rpx 24rpx 24rpx;
  61. font-size: 24rpx;
  62. color: #222222;
  63. margin-right: 16rpx;
  64. }
  65. .order-tit text.on {
  66. background: #FF941A;
  67. color: #FFFFFF;
  68. }
  69. /* end 头部菜单 */
  70. .main {
  71. margin-top: 188rpx;
  72. }
  73. /* 商品列表 */
  74. .prod-item {
  75. background-color: #fff;
  76. font-size: 28rpx;
  77. margin: 0 24rpx 20rpx;
  78. border-radius: 16rpx 16rpx 16rpx 16rpx;
  79. padding: 0 24rpx;
  80. }
  81. /* 店铺 */
  82. .shop-box {
  83. padding: 20rpx 0;
  84. border-bottom: 2rpx solid #f2f2f2;
  85. display: flex;
  86. align-items: center;
  87. justify-content: space-between;
  88. }
  89. .shop-box .shop-info{
  90. display: flex;
  91. align-items: center;
  92. }
  93. .delivery-info{
  94. background: #F9F9F9;
  95. border-radius: 16rpx 16rpx 16rpx 16rpx;
  96. margin-top: 20rpx;
  97. padding: 24rpx;
  98. margin-bottom: 20rpx;
  99. }
  100. .delivery-info .title-box{
  101. display: flex;
  102. font-weight: bold;
  103. font-size: 28rpx;
  104. color: #222222;
  105. }
  106. .delivery-info .title-box .icon{
  107. width: 36rpx;
  108. height: 36rpx;
  109. margin-right: 20rpx;
  110. }
  111. .delivery-info .desc{
  112. font-size: 24rpx;
  113. color: #AAAAAA;
  114. margin-top: 14rpx;
  115. }
  116. .delivery-info .time{
  117. font-size: 24rpx;
  118. color: #AAAAAA;
  119. margin-top: 14rpx;
  120. }
  121. .shop-icon {
  122. width: 36rpx;
  123. height: 36rpx;
  124. margin-right: 10rpx;
  125. font-size: 0;
  126. }
  127. .shop-icon > image {
  128. width: 100%;
  129. height: 100%;
  130. }
  131. .shop-name {
  132. font-size: 32rpx;
  133. font-weight: 600;
  134. position: relative;
  135. padding-right: 20rpx;
  136. }
  137. /* .shop-name::after {
  138. position: absolute;
  139. right: 0;
  140. top: 16rpx;
  141. display: block;
  142. width: 10rpx;
  143. height: 10rpx;
  144. content: " ";
  145. font-size: 0;
  146. border-top: 4rpx solid #444;
  147. border-right: 4rpx solid #444;
  148. border-radius: 4rpx;
  149. transform: rotate(45deg);
  150. } */
  151. .prod-item .order-num {
  152. padding: 20rpx 0;
  153. font-size: 24rpx;
  154. display: flex;
  155. align-items: center;
  156. }
  157. .order-num > text {
  158. flex: 1;
  159. display: -webkit-box;
  160. -webkit-box-orient: vertical;
  161. -webkit-line-clamp: 1;
  162. overflow: hidden;
  163. text-overflow: ellipsis;
  164. }
  165. .order-state {
  166. color: #999999;
  167. display: flex;
  168. align-items: center;
  169. font-size: 24rpx;
  170. }
  171. .order-state .red {
  172. color: #e43130;
  173. }
  174. .prod-item .order-state .clear-btn {
  175. width: 28rpx;
  176. height: 28rpx;
  177. font-size: 0;
  178. margin-left: 42rpx;
  179. position: relative;
  180. }
  181. .prod-item .order-state .clear-btn::after {
  182. content: " ";
  183. display: block;
  184. position: absolute;
  185. left: -20rpx;
  186. top: 0rpx;
  187. width: 2rpx;
  188. height: 32rpx;
  189. background: #eee;
  190. }
  191. .prod-item .order-state .clear-btn .clear-list-btn {
  192. width: 100%;
  193. height: 100%;
  194. }
  195. .prod-item .item-cont {
  196. display: flex;
  197. align-items: center;
  198. padding: 20rpx;
  199. display: -webkit-flex;
  200. display: -webkit-box;
  201. display: -moz-box;
  202. display: -ms-flexbox;
  203. background: #f7f7f7;
  204. position: relative;
  205. border-radius: 16rpx 16rpx 16rpx 16rpx;
  206. }
  207. .prod-item .item-cont .categories {
  208. white-space: nowrap;
  209. }
  210. .prod-item .item-cont .prod-pic {
  211. position: relative;
  212. display: inline-block;
  213. font-size: 0;
  214. width: 160rpx;
  215. height: 160rpx;
  216. background: #fff;
  217. margin-right: 20rpx;
  218. }
  219. .prod-item .item-cont .prod-pic image {
  220. width: 100%;
  221. height: 100%;
  222. }
  223. .spell-group-order {
  224. position: absolute;
  225. display: block;
  226. top: 0;
  227. left: 0;
  228. width: 60rpx;
  229. height: 30rpx;
  230. }
  231. .prod-item .item-cont .prod-info {
  232. font-size: 24rpx;
  233. position: relative;
  234. height: 160rpx;
  235. -webkit-flex: 1;
  236. -ms-flex: 1;
  237. -webkit-box-flex: 1;
  238. -moz-box-flex: 1;
  239. flex: 1;
  240. }
  241. .prod-item .item-cont .prod-info .prodname {
  242. font-size: 28rpx;
  243. color: #222;
  244. line-height: 34rpx;
  245. max-height: 68rpx;
  246. display: -webkit-box;
  247. -webkit-box-orient: vertical;
  248. -webkit-line-clamp: 2;
  249. overflow: hidden;
  250. text-overflow: ellipsis;
  251. }
  252. .prod-item .item-cont .prod-info .sku-box {
  253. display: flex;
  254. align-items: center;
  255. margin-top: 10rpx;
  256. }
  257. .prod-item .item-cont .prod-info .sku-box .prod-info-cont {
  258. color: #999;
  259. font-size: 24rpx;
  260. flex: 1;
  261. display: -webkit-box;
  262. -webkit-box-orient: vertical;
  263. -webkit-line-clamp: 1;
  264. overflow: hidden;
  265. text-overflow: ellipsis;
  266. }
  267. /* 拼团icon */
  268. .spell-group-icon {
  269. margin-right: 10rpx;
  270. font-size: 20rpx;
  271. color: #fff;
  272. background: #e43130;
  273. padding: 0 6rpx;
  274. border-radius: 4rpx;
  275. display: flex;
  276. align-items: center;
  277. }
  278. /* 拼团icon */
  279. .prod-item .price-nums {
  280. position: absolute;
  281. bottom: 0;
  282. width: 100%;
  283. display: flex;
  284. align-items: center;
  285. line-height: 32rpx;
  286. }
  287. .prod-item .price-nums .prodprice {
  288. flex: 1;
  289. }
  290. .prod-item .symbol,
  291. .prod-item .small-num {
  292. font-size: 32rpx;
  293. color: #FF4D3A;
  294. font-weight: bold;
  295. }
  296. .prod-item .big-num {
  297. font-size: 32rpx;
  298. color: #FF4D3A;
  299. font-weight: bold;
  300. }
  301. .prod-item .price-nums .prodcount {
  302. color: #999;
  303. font-family: verdana;
  304. }
  305. .prod-item .total-num {
  306. display: flex;
  307. justify-content: space-between;
  308. align-items: center;
  309. padding: 20rpx 0;
  310. font-size: 24rpx;
  311. }
  312. .prod-item .total-num .prodprice {
  313. color: #333;
  314. }
  315. .prod-item .total-num .prodcount {
  316. margin-right: 20rpx;
  317. color: #999;
  318. }
  319. .prod-item .prod-foot {
  320. padding: 20rpx 0;
  321. border-top: 2rpx solid #e6e6e6;
  322. }
  323. .prod-item .prod-foot .total {
  324. font-size: 24rpx;
  325. margin-bottom: 20rpx;
  326. padding-bottom: 20rpx;
  327. border-bottom: 2rpx solid #e9eaec;
  328. }
  329. .other-button-hover {
  330. background-color: blue;
  331. }
  332. .button-hover {
  333. background-color: #e43130;
  334. }
  335. /** 添加自定义button点击态样式类**/
  336. .button-hover {
  337. background-color: blue;
  338. }
  339. .btn {
  340. display: flex;
  341. justify-content: flex-end;
  342. align-items: center;
  343. }
  344. .button {
  345. display: inline-block;
  346. margin-left: 10px;
  347. font-size: 24rpx;
  348. background: #fff;
  349. padding: 10rpx 30rpx;
  350. border-radius: 80rpx;
  351. border: 2rpx solid #bbb;
  352. }
  353. .button.warn {
  354. color: #FF941A;
  355. border-color: #FF941A;
  356. }
  357. /* end 商品列表 */
  358. /* 根据状态显示不同的颜色 */
  359. .order-state .order-sts.red {
  360. color: #e43130;
  361. }
  362. .order-state .order-sts {
  363. color: #777777;
  364. }
  365. /* 列表为空 */
  366. .empty {
  367. padding-top: 200rpx;
  368. text-align: cneter;
  369. }
  370. .empty-icon {
  371. display: block;
  372. width: 80rpx;
  373. height: 80rpx;
  374. margin: 0 auto;
  375. margin-bottom: 20rpx;
  376. }
  377. .empty-icon > image {
  378. display: block;
  379. width: 100%;
  380. height: 100%;
  381. }
  382. .empty-text {
  383. font-size: 28rpx;
  384. text-align: center;
  385. color: #999;
  386. line-height: 2em;
  387. }