cart.wxss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. /* pages/cart/cart.wxss */
  2. @import "./cart.skeleton.wxss";
  3. page {
  4. background-color: #F8F8F8;
  5. }
  6. .checkbox {
  7. font-size: 30rpx;
  8. }
  9. .goodsInfo image {
  10. width: 180rpx;
  11. height: 180rpx;
  12. }
  13. .goods {
  14. flex: 1;
  15. min-height: 180rpx;
  16. padding-left: 24rpx;
  17. display: flex;
  18. flex-flow: column;
  19. justify-content: space-between;
  20. }
  21. .goods .name {
  22. font-weight: 500;
  23. font-size: 24rpx;
  24. color: #202020;
  25. height: 62rpx;
  26. }
  27. .goods .brief {
  28. flex: 1;
  29. margin: 10rpx 0;
  30. font-weight: 400;
  31. font-size: 20rpx;
  32. color: #424242;
  33. height: 56rpx;
  34. }
  35. .priceTool {
  36. display: flex;
  37. flex-wrap: nowrap;
  38. flex-flow: row;
  39. align-items: center;
  40. justify-content: space-between;
  41. }
  42. .priceTool>view:first-child {
  43. font-weight: bold;
  44. font-size: 32rpx;
  45. color: #202020;
  46. line-height: 1.2;
  47. }
  48. .number {
  49. flex: 1;
  50. display: flex;
  51. align-items: center;
  52. justify-content: flex-end;
  53. }
  54. .number .icon-Less1 {
  55. flex: 0 0 38rpx;
  56. display: flex;
  57. align-items: center;
  58. justify-content: center;
  59. width: 38rpx;
  60. height: 38rpx;
  61. /* width: 38rpx;
  62. height: 38rpx;
  63. border-radius: 50%;
  64. border: 1px solid #373737;
  65. text-align: center; */
  66. font-size: 38rpx;
  67. line-height: 38rpx;
  68. margin-right: 10rpx;
  69. }
  70. .number input {
  71. display: block;
  72. flex: 0 0 60rpx;
  73. width: 60rpx;
  74. height: 38rpx;
  75. margin: 0;
  76. background: #F8F8F8;
  77. font-size: 25rpx;
  78. padding: 0 10rpx;
  79. box-sizing: border-box;
  80. text-align: center;
  81. line-height: 38rpx;
  82. font-size: 20rpx;
  83. color: #000000;
  84. }
  85. .number .icon-More {
  86. flex: 0 0 38rpx;
  87. display: flex;
  88. align-items: center;
  89. justify-content: center;
  90. width: 38rpx;
  91. height: 38rpx;
  92. /* width: 38rpx; */
  93. /* height: 38rpx;
  94. border-radius: 50%; */
  95. /* border: 1px solid #373737; */
  96. /* text-align: center; */
  97. line-height: 38rpx;
  98. font-size: 38rpx;
  99. line-height: 38rpx;
  100. margin-left: 10rpx;
  101. }
  102. .switch-icon {
  103. font-size: 30rpx;
  104. color: #00BC8A;
  105. line-height: 180rpx;
  106. padding: 0 24rpx;
  107. }
  108. .toolBar {
  109. position: fixed;
  110. left: 0;
  111. bottom: 142rpx;
  112. background: #FFFFFF;
  113. width: 100%;
  114. height: 128rpx;
  115. z-index: 999;
  116. padding: 24rpx;
  117. box-sizing: border-box;
  118. display: flex;
  119. align-items: center;
  120. justify-content: space-between;
  121. }
  122. .toolBar .switch-icon {
  123. line-height: 88rpx;
  124. font-size: 24rpx;
  125. color: #000000;
  126. }
  127. .toolBar .switch-icon::before {
  128. color: #00BC8A;
  129. margin-right: 10rpx;
  130. line-height: 88rpx;
  131. font-size: 30rpx;
  132. }
  133. .priceInfo {
  134. flex: 1;
  135. text-align: right;
  136. font-size: 24rpx;
  137. color: #000000;
  138. line-height: 88rpx;
  139. padding: 0 28rpx;
  140. }
  141. .priceInfo view {
  142. display: inline-block;
  143. font-weight: bold;
  144. font-size: 28rpx;
  145. color: #D1222C;
  146. }
  147. .nextBtn {
  148. width: 200rpx;
  149. height: 88rpx;
  150. font-weight: 500;
  151. font-size: 36rpx;
  152. text-align: center;
  153. line-height: 88rpx;
  154. color: #FFFFFF;
  155. background: #00BC8A;
  156. border-radius: 16rpx;
  157. }
  158. .topToolBar {
  159. position: sticky;
  160. top: 0;
  161. background: #FFFFFF;
  162. width: 100%;
  163. height: 60rpx;
  164. z-index: 999;
  165. padding: 24rpx;
  166. box-sizing: border-box;
  167. display: flex;
  168. align-items: center;
  169. justify-content: space-between;
  170. border-bottom: 1rpx solid #EEEEEE;
  171. }
  172. .topToolBar {
  173. padding-left: 0;
  174. }
  175. .topToolBar .priceInfo {
  176. flex: 1;
  177. text-align: right;
  178. font-size: 24rpx;
  179. color: #000000;
  180. line-height: 60rpx;
  181. padding: 0 28rpx;
  182. }
  183. .toolBar .switch-icon,
  184. .topToolBar .switch-icon {
  185. line-height: 60rpx;
  186. font-size: 24rpx;
  187. color: #b6b6b6;
  188. }
  189. .toolBar .switch-icon,
  190. .topToolBar .switch-icon::before {
  191. color: #b6b6b6;
  192. margin-right: 10rpx;
  193. line-height: 60rpx;
  194. font-size: 30rpx;
  195. }
  196. .topToolBar .icon-shanchu::before {
  197. color: #b6b6b6;
  198. line-height: 60rpx;
  199. font-size: 36rpx;
  200. }
  201. .toolBar .active,
  202. .topToolBar .active {
  203. color: #000000;
  204. }
  205. .topToolBar .switch-icon.active::before {
  206. color: #00BC8A;
  207. }
  208. .topToolBar .icon-shanchu.active::before {
  209. color: #000000;
  210. }
  211. .goodsInfo {
  212. display: flex;
  213. justify-content: space-between;
  214. width: 100%;
  215. overflow: hidden;
  216. /* background: rgba(255, 255, 255, 1); */
  217. opacity: 1;
  218. box-sizing: border-box;
  219. display: flex;
  220. flex-flow: row;
  221. flex-wrap: nowrap;
  222. align-items: center;
  223. justify-content: space-between;
  224. background: #FFFFFF;
  225. padding-left: 0;
  226. }
  227. .content {
  228. width: 100%;
  229. margin-right: 0;
  230. display: flex;
  231. flex-flow: row;
  232. flex-wrap: nowrap;
  233. align-items: center;
  234. justify-content: space-between;
  235. padding: 50rpx 24rpx;
  236. padding-left: 0;
  237. box-sizing: border-box;
  238. /* -webkit-transition: all 0.4s;
  239. transition: all 0.4s; */
  240. /* -webkit-transform: translateX(120px); */
  241. /* transform: translateX(120px); */
  242. /* margin-left: -120px; */
  243. }
  244. .del {
  245. width: 0;
  246. display: flex;
  247. flex-flow: column;
  248. align-items: center;
  249. justify-content: space-between;
  250. color: #fff;
  251. -webkit-transition: all 0.4s;
  252. transition: all 0.4s;
  253. font-size: 28rpx;
  254. -webkit-transform: translateX(180px);
  255. transform: translateX(180px);
  256. height: 220rpx;
  257. }
  258. .del .delete {
  259. background: red;
  260. display: flex;
  261. align-items: center;
  262. justify-content: center;
  263. width: 100rpx;
  264. height: 100%;
  265. border-top-right-radius: 15rpx;
  266. border-bottom-right-radius: 15rpx;
  267. }
  268. .del .untying {
  269. background: orange;
  270. display: flex;
  271. align-items: center;
  272. justify-content: center;
  273. width: 100rpx;
  274. height: 100%;
  275. }
  276. .touch-move-active .content,
  277. .touch-move-active .del {
  278. -webkit-transform: translateX(0);
  279. transform: translateX(0);
  280. }
  281. .touch-move-active .del {
  282. width: 100rpx;
  283. }
  284. .qty-editor {
  285. position: static;
  286. }