basket.wxss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. /* pages/basket/basket.wxss */
  2. page {
  3. width: 100%;
  4. background: #f4f4f4;
  5. }
  6. .container{
  7. padding-bottom:118rpx;
  8. }
  9. container .prod-list {
  10. width: 100%;
  11. background: #f8f8f8;
  12. }
  13. .prod-list .prod-block {
  14. background: #fff;
  15. margin-top: 15rpx;
  16. }
  17. .prod-list .prod-block .discount-tips {
  18. padding: 20rpx 0 20rpx 20rpx;
  19. border-bottom: 2rpx solid #f4f4f4;
  20. height: 40rpx;
  21. line-height: 40rpx;
  22. }
  23. .prod-list .prod-block .discount-tips .text-block {
  24. padding:3rpx 5rpx;
  25. /* padding: 0 5rpx; */
  26. border-radius: 8rpx;
  27. font-size: 22rpx;
  28. color: #eb2444;
  29. border: 2rpx solid #eb2444;
  30. }
  31. .prod-list .prod-block .discount-tips .text-list {
  32. font-size: 24rpx;
  33. margin-left: 10rpx;
  34. }
  35. .prod-list .item {
  36. background: #fff;
  37. display: flex;
  38. align-items: center;
  39. padding: 20rpx;
  40. }
  41. .prod-list .item .prodinfo {
  42. position: relative;
  43. color: #999;
  44. width:100%;
  45. }
  46. .prod-list .item .prodinfo::after {
  47. content: '';
  48. background-color: #f4f4f4;
  49. left: 0;
  50. height: 1px;
  51. transform-origin: 50% 100% 0;
  52. bottom: -20rpx;
  53. position: absolute;
  54. display: block;
  55. width: 642rpx;
  56. padding-left: 20rpx;
  57. }
  58. .prod-list .item:last-child .prodinfo::after {
  59. height: 0;
  60. }
  61. .prod-list .item .staus {
  62. text-align: center;
  63. background: rgb(196, 192, 192);
  64. font-size: 20rpx;
  65. width: 50rpx;
  66. color: #fff;
  67. }
  68. .prodinfo {
  69. display: flex;
  70. margin-left: 20rpx;
  71. }
  72. .prod-list .item .opt {
  73. font-size: 28rpx;
  74. margin-left: 20rpx;
  75. width:100%;
  76. }
  77. .prodinfo .opt .prod-name {
  78. color:#333;
  79. max-height: 72rpx;
  80. line-height: 36rpx;
  81. display: -webkit-box;
  82. word-break: break-all;
  83. overflow: hidden;
  84. text-overflow: ellipsis;
  85. -webkit-line-clamp: 2;
  86. -webkit-box-orient: vertical;
  87. }
  88. .prodinfo .opt .prod-info-text {
  89. color: #999;
  90. display: inline-block;
  91. -webkit-line-clamp: 1;
  92. height: 48rpx;
  93. line-height: 48rpx;
  94. background: #f9f9f9;
  95. padding: 0 10rpx 0 10rpx;
  96. border-radius: 4rpx;
  97. margin: 10rpx 0 0rpx 0;
  98. overflow: hidden;
  99. font-size: 24rpx;
  100. position: relative;
  101. font-family: arial;
  102. }
  103. .prodinfo .opt .prod-info-text.empty-n{
  104. padding:0;
  105. }
  106. /* .prod-info-text:before, .prod-info-text:after {
  107. content: "";
  108. display: block;
  109. width: 0;
  110. height: 0;
  111. position: absolute;
  112. border: 5px solid transparent;
  113. right: 5px;
  114. top: 10px;
  115. } */
  116. .prod-info-text:before {
  117. border-top: 5px solid #aaa;
  118. }
  119. .prod-info-text:after {
  120. border-top: 5px solid #f9f9f9;
  121. top: 9px;
  122. }
  123. .prod-list .item .prodinfo .pic {
  124. text-align: center;
  125. width: 180rpx;
  126. height: 180rpx;
  127. line-height: 180rpx;
  128. font-size: 0;
  129. }
  130. .prod-list .item .pic image {
  131. max-width: 100%;
  132. max-height: 100%;
  133. /* border-radius: 8rpx; */
  134. vertical-align: middle;
  135. }
  136. .prodinfo .opt .price-count {
  137. display: flex;
  138. align-items: center;
  139. justify-content: space-between;
  140. }
  141. .prodinfo .opt .price-count .price {
  142. color: #eb2444;
  143. }
  144. .lose-efficacy .prodinfo .opt .price-count .price {
  145. color: #999;
  146. }
  147. /* 加减框 */
  148. .m-numSelector .minus, .m-numSelector input, .m-numSelector .plus {
  149. float: left;
  150. box-sizing: border-box;
  151. height: 56rpx;
  152. border: 2rpx solid #d9d9d9;
  153. }
  154. .m-numSelector {
  155. float: right;
  156. }
  157. .m-numSelector .minus, .m-numSelector .plus {
  158. position: relative;
  159. width: 56rpx;
  160. }
  161. .m-numSelector .minus {
  162. border-right: 0;
  163. border-top-left-radius: 4rpx;
  164. border-bottom-left-radius: 4rpx;
  165. }
  166. .m-numSelector input {
  167. width: 56rpx;
  168. text-align: center;
  169. color:#333;
  170. }
  171. .m-numSelector .plus {
  172. border-left: 0;
  173. border-top-right-radius: 4rpx;
  174. border-bottom-right-radius: 4rpx;
  175. }
  176. .m-numSelector .minus::before, .m-numSelector .plus::before,
  177. .m-numSelector .plus::after {
  178. position: absolute;
  179. top: 0;
  180. left: 0;
  181. right: 0;
  182. bottom: 0;
  183. margin: auto;
  184. content: ' ';
  185. width: 22rpx;
  186. height: 3rpx;
  187. background-color: #7f7f7f;
  188. }
  189. .m-numSelector .plus::after {
  190. transform: rotate(90deg);
  191. }
  192. .m-numSelector:not(.disabled) .minus:not(.disabled):active,
  193. .m-numSelector:not(.disabled) .plus:not(.disabled):active {
  194. background-color: #f4f4f4;
  195. }
  196. /*checkbox 选项框大小 */
  197. checkbox .wx-checkbox-input {
  198. border-radius: 50%;
  199. width: 35rpx;
  200. height: 35rpx;
  201. }
  202. /*checkbox选中后样式 */
  203. checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  204. background: #eb2444;
  205. border-color: #eb2444;
  206. }
  207. /*checkbox选中后图标样式 */
  208. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  209. text-align: center;
  210. font-size: 22rpx;
  211. color: #fff;
  212. background: transparent;
  213. transform: translate(-50%, -50%) scale(1);
  214. -webkit-transform: translate(-50%, -50%) scale(1);
  215. }
  216. /* 购物车为空 */
  217. .empty {
  218. font-size: 28rpx;
  219. color: #666;
  220. }
  221. .empty .txt {
  222. text-align: center;
  223. margin-top: 30rpx;
  224. }
  225. .empty .img {
  226. margin-top: 80rpx;
  227. text-align: center;
  228. }
  229. .empty .img image {
  230. width: 80rpx;
  231. height: 80rpx;
  232. }
  233. /* 失效商品 */
  234. .lose-efficacy {
  235. margin-top: 20rpx;
  236. background: #fff;
  237. }
  238. .lose-efficacy .item {
  239. background: #f8f8f9;
  240. }
  241. .prod-list .lose-efficacy .discount-tips {
  242. padding: 20rpx 0;
  243. border-bottom: 2rpx solid #ddd;
  244. height: 50rpx;
  245. line-height: 50rpx;
  246. margin-left: 20rpx;
  247. }
  248. .lose-efficacy .discount-tips .empty-prod {
  249. color: #777;
  250. font-size: 26rpx;
  251. border: 2rpx solid #999;
  252. padding: 0 10rpx;
  253. border-radius: 8rpx;
  254. float: right;
  255. margin-right: 20rpx;
  256. }
  257. .price-count .disable-price {
  258. color: #999;
  259. }
  260. .prod-list .lose-efficacy .discount-tips .text-list {
  261. font-size: 30rpx;
  262. margin-left: 10rpx;
  263. }
  264. /** 底部按钮 */
  265. .cart-footer {
  266. position: fixed;
  267. bottom: 0;
  268. left: 0;
  269. width: 100%;
  270. display: flex;
  271. flex-direction: row nowrap;
  272. height: 98rpx;
  273. border-top: 2rpx solid #f4f4f4;
  274. z-index:999;
  275. }
  276. .cart-footer .btn {
  277. position: relative;
  278. display: flex;
  279. flex-grow: 1;
  280. justify-content: center;
  281. align-items: center;
  282. width: 0;
  283. background-color: #fafafa;
  284. background:rgba(255,255,255,0.95);
  285. font-size: 28rpx;
  286. }
  287. .cart-footer .btn .total-msg{
  288. font-size: 20rpx;
  289. }
  290. .cart-footer .btn.total{
  291. display:flex;
  292. flex-flow:column;
  293. align-items:flex-start;
  294. }
  295. .cart-footer .btn.del {
  296. color:#eb2444;
  297. width:70rpx;
  298. font-size:22rpx;
  299. text-align:left;
  300. display:block;
  301. line-height:102rpx;
  302. }
  303. .cart-footer .btn.all {
  304. width: 150rpx;
  305. font-size: 26rpx;
  306. }
  307. .cart-footer .btn.all label {
  308. display: flex;
  309. flex-grow: 1;
  310. justify-content: center;
  311. align-items: center;
  312. }
  313. .cart-footer .btn.total {
  314. width: 300rpx;
  315. }
  316. .cart-footer .btn.total .price {
  317. color: #eb2444;
  318. font-size: 30rpx;
  319. }
  320. .cart-footer .btn.settle {
  321. width: 200rpx;
  322. background: #eb2444;
  323. color: #fff;
  324. }
  325. /** end 底部按钮 */