orderList.wxss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. /* pages/orderList/orderList.wxss */
  2. page {
  3. background-color: #f4f4f4;
  4. color: #333;
  5. }
  6. /* 头部菜单 */
  7. .order-tit {
  8. position: fixed;
  9. top: 0;
  10. display: flex;
  11. justify-content: space-around;
  12. z-index: 999;
  13. width: 100%;
  14. height: 100rpx;
  15. line-height: 100rpx;
  16. background-color: #fff;
  17. border-bottom: 2rpx solid #f4f4f4;
  18. }
  19. .order-tit text {
  20. display: block;
  21. font-size: 28rpx;
  22. color: 999;
  23. width: 100rpx;
  24. text-align: center;
  25. }
  26. .order-tit text.on {
  27. border-bottom: 4rpx solid #eb2444;
  28. color: #eb2444;
  29. }
  30. /* end 头部菜单 */
  31. .main {
  32. margin-top: 100rpx;
  33. }
  34. /* 商品列表 */
  35. .prod-item {
  36. background-color: #fff;
  37. margin-top: 15rpx;
  38. font-size: 28rpx;
  39. }
  40. .prod-item .item-cont .prod-pic image {
  41. width: 180rpx;
  42. height: 180rpx;
  43. }
  44. .prod-item .order-num {
  45. padding: 20rpx 30rpx;
  46. display: flex;
  47. justify-content: space-between;
  48. font-size: 28rpx;
  49. }
  50. .order-state {
  51. display: flex;
  52. align-items: center;
  53. font-size: 24rpx;
  54. }
  55. .prod-item .item-cont .categories {
  56. white-space: nowrap;
  57. }
  58. .prod-item .item-cont {
  59. display: flex;
  60. align-items: center;
  61. padding: 20rpx 30rpx;
  62. border-radius: 10rpx;
  63. display: -webkit-flex;
  64. display: -webkit-box;
  65. display: -moz-box;
  66. display: -ms-flexbox;
  67. background: #fafafa;
  68. }
  69. .prod-item .order-num .clear-btn {
  70. width: 32rpx;
  71. height: 32rpx;
  72. font-size: 0;
  73. vertical-align: top;
  74. margin-left: 42rpx;
  75. position: relative;
  76. }
  77. .prod-item .order-num .clear-btn::after {
  78. content: " ";
  79. display: block;
  80. position: absolute;
  81. left: -10px;
  82. top: 0rpx;
  83. width: 1px;
  84. height: 32rpx;
  85. background: #ddd;
  86. }
  87. .prod-item .order-num .clear-btn .clear-list-btn {
  88. width: 100%;
  89. height: 100%;
  90. vertical-align: middle;
  91. }
  92. .prod-item .item-cont .prod-pic {
  93. font-size: 0;
  94. display: inline-block;
  95. width: 160rpx;
  96. height: 160rpx;
  97. overflow: hidden;
  98. background: #fff;
  99. margin-right: 16rpx;
  100. }
  101. .prod-item .item-cont .prod-pic image {
  102. width: 100%;
  103. height: 100%;
  104. }
  105. .prod-item .item-cont .prod-info {
  106. margin-left: 10rpx;
  107. font-size: 28rpx;
  108. width: 100%;
  109. position: relative;
  110. height: 160rpx;
  111. -webkit-flex: 1;
  112. -ms-flex: 1;
  113. -webkit-box-flex: 1;
  114. -moz-box-flex: 1;
  115. flex: 1;
  116. }
  117. .prod-item .item-cont .prod-info .prodname {
  118. font-size: 28rpx;
  119. line-height: 36rpx;
  120. max-height: 86rpx;
  121. overflow: hidden;
  122. display: -webkit-box;
  123. -webkit-line-clamp: 2;
  124. -webkit-box-orient: vertical;
  125. text-overflow: ellipsis;
  126. word-break: break-all;
  127. }
  128. .prod-item .item-cont .prod-info .prod-info-cont {
  129. color: #999;
  130. line-height: 40rpx;
  131. margin-top: 10rpx;
  132. font-size: 22rpx;
  133. overflow: hidden;
  134. display: -webkit-box;
  135. -webkit-line-clamp: 1;
  136. -webkit-box-orient: vertical;
  137. text-overflow: ellipsis;
  138. word-break: break-all;
  139. }
  140. .prod-item .total-num {
  141. text-align: right;
  142. padding: 20rpx 30rpx;
  143. font-size: 28rpx;
  144. }
  145. .prod-item .price-nums .prodprice {
  146. color: #333;
  147. position: absolute;
  148. bottom: 0;
  149. }
  150. .prod-item .price-nums .prodcount {
  151. position: absolute;
  152. bottom: 5rpx;
  153. right: 0;
  154. color: #999;
  155. font-family: verdana;
  156. }
  157. .prod-item .total-num .prodprice {
  158. display: inline-block;
  159. color: #333;
  160. }
  161. .prod-item .total-num .prodcount {
  162. margin-right: 20rpx;
  163. }
  164. .prod-item .prod-foot {
  165. padding: 20rpx 30rpx;
  166. border-top: 2rpx solid #e6e6e6;
  167. }
  168. .prod-item .prod-foot .total {
  169. font-size: 25rpx;
  170. margin-bottom: 20rpx;
  171. padding-bottom: 20rpx;
  172. border-bottom: 2rpx solid #e9eaec;
  173. }
  174. .prod-item .prod-foot .btn {
  175. display: flex;
  176. align-items: center;
  177. justify-content: flex-end;
  178. }
  179. .other-button-hover {
  180. background-color: blue;
  181. }
  182. .button-hover {
  183. background-color: red;
  184. }
  185. /** 添加自定义button点击态样式类**/
  186. .button-hover {
  187. background-color: blue;
  188. }
  189. .button {
  190. margin-left: 10px;
  191. font-size: 26rpx;
  192. background: #fff;
  193. padding: 10rpx 30rpx;
  194. border-radius: 80rpx;
  195. border: 2rpx solid #e1e1e1;
  196. }
  197. .button.warn {
  198. color: #eb2444;
  199. border-color: #eb2444;
  200. }
  201. /* end 商品列表 */
  202. .empty {
  203. font-size: 24rpx;
  204. margin-top: 100rpx;
  205. text-align: center;
  206. color: #999;
  207. height: 300rpx;
  208. line-height: 300rpx;
  209. }
  210. /* 根据状态显示不同的颜色 */
  211. .order-state .order-sts.red {
  212. color: #eb2444;
  213. }
  214. .order-state .order-sts.gray {
  215. color: #999;
  216. }