cart.wxss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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. text-align: right;
  51. }
  52. .number view:first-child {
  53. flex: auto;
  54. display: inline-block;
  55. /* width: 38rpx;
  56. height: 38rpx;
  57. border-radius: 50%;
  58. border: 1px solid #373737;
  59. text-align: center; */
  60. font-size: 38rpx;
  61. vertical-align: middle;
  62. margin-right: 10rpx;
  63. }
  64. .number input {
  65. display: inline-block;
  66. width: 60rpx;
  67. height: 38rpx;
  68. vertical-align: middle;
  69. background: #F8F8F8;
  70. font-size: 25rpx;
  71. padding: 0 10rpx;
  72. box-sizing: border-box;
  73. text-align: center;
  74. line-height: 38rpx;
  75. font-size: 20rpx;
  76. color: #000000;
  77. }
  78. .number view:last-child {
  79. display: inline-block;
  80. /* width: 38rpx; */
  81. /* height: 38rpx;
  82. border-radius: 50%; */
  83. /* border: 1px solid #373737; */
  84. /* text-align: center; */
  85. line-height: 38rpx;
  86. font-size: 38rpx;
  87. vertical-align: middle;
  88. margin-left: 10rpx;
  89. }
  90. .switch-icon {
  91. font-size: 30rpx;
  92. color: #00BC8A;
  93. line-height: 180rpx;
  94. padding: 0 24rpx;
  95. }
  96. .toolBar {
  97. position: fixed;
  98. left: 0;
  99. bottom: 142rpx;
  100. background: #FFFFFF;
  101. width: 100%;
  102. height: 128rpx;
  103. z-index: 999;
  104. padding: 24rpx;
  105. box-sizing: border-box;
  106. display: flex;
  107. align-items: center;
  108. justify-content: space-between;
  109. }
  110. .toolBar .switch-icon {
  111. line-height: 88rpx;
  112. font-size: 24rpx;
  113. color: #000000;
  114. }
  115. .toolBar .switch-icon::before {
  116. color: #00BC8A;
  117. margin-right: 10rpx;
  118. line-height: 88rpx;
  119. font-size: 30rpx;
  120. }
  121. .priceInfo {
  122. flex: 1;
  123. text-align: right;
  124. font-size: 24rpx;
  125. color: #000000;
  126. line-height: 88rpx;
  127. padding: 0 28rpx;
  128. }
  129. .priceInfo view {
  130. display: inline-block;
  131. font-weight: bold;
  132. font-size: 28rpx;
  133. color: #D1222C;
  134. }
  135. .nextBtn {
  136. width: 200rpx;
  137. height: 88rpx;
  138. font-weight: 500;
  139. font-size: 36rpx;
  140. text-align: center;
  141. line-height: 88rpx;
  142. color: #FFFFFF;
  143. background: #00BC8A;
  144. border-radius: 16rpx;
  145. }
  146. .topToolBar {
  147. position: sticky;
  148. top: 0;
  149. background: #FFFFFF;
  150. width: 100%;
  151. height: 60rpx;
  152. z-index: 999;
  153. padding: 24rpx;
  154. box-sizing: border-box;
  155. display: flex;
  156. align-items: center;
  157. justify-content: space-between;
  158. border-bottom: 1rpx solid #EEEEEE;
  159. }
  160. .topToolBar {
  161. padding-left: 0;
  162. }
  163. .topToolBar .priceInfo {
  164. flex: 1;
  165. text-align: right;
  166. font-size: 24rpx;
  167. color: #000000;
  168. line-height: 60rpx;
  169. padding: 0 28rpx;
  170. }
  171. .toolBar .switch-icon,
  172. .topToolBar .switch-icon {
  173. line-height: 60rpx;
  174. font-size: 24rpx;
  175. color: #b6b6b6;
  176. }
  177. .toolBar .switch-icon,
  178. .topToolBar .switch-icon::before {
  179. color: #b6b6b6;
  180. margin-right: 10rpx;
  181. line-height: 60rpx;
  182. font-size: 30rpx;
  183. }
  184. .topToolBar .icon-shanchu::before {
  185. color: #b6b6b6;
  186. line-height: 60rpx;
  187. font-size: 36rpx;
  188. }
  189. .toolBar .active,
  190. .topToolBar .active {
  191. color: #000000;
  192. }
  193. .topToolBar .switch-icon.active::before {
  194. color: #00BC8A;
  195. }
  196. .topToolBar .icon-shanchu.active::before {
  197. color: #000000;
  198. }
  199. .goodsInfo {
  200. display: flex;
  201. justify-content: space-between;
  202. width: 100%;
  203. overflow: hidden;
  204. /* background: rgba(255, 255, 255, 1); */
  205. opacity: 1;
  206. box-sizing: border-box;
  207. display: flex;
  208. flex-flow: row;
  209. flex-wrap: nowrap;
  210. align-items: center;
  211. justify-content: space-between;
  212. background: #FFFFFF;
  213. padding-left: 0;
  214. }
  215. .content {
  216. width: 100%;
  217. margin-right: 0;
  218. display: flex;
  219. flex-flow: row;
  220. flex-wrap: nowrap;
  221. align-items: center;
  222. justify-content: space-between;
  223. padding: 50rpx 24rpx;
  224. padding-left: 0;
  225. box-sizing: border-box;
  226. /* -webkit-transition: all 0.4s;
  227. transition: all 0.4s; */
  228. /* -webkit-transform: translateX(120px); */
  229. /* transform: translateX(120px); */
  230. /* margin-left: -120px; */
  231. }
  232. .del {
  233. width: 0;
  234. display: flex;
  235. flex-flow: column;
  236. align-items: center;
  237. justify-content: space-between;
  238. color: #fff;
  239. -webkit-transition: all 0.4s;
  240. transition: all 0.4s;
  241. font-size: 28rpx;
  242. -webkit-transform: translateX(180px);
  243. transform: translateX(180px);
  244. height: 220rpx;
  245. }
  246. .del .delete {
  247. background: red;
  248. display: flex;
  249. align-items: center;
  250. justify-content: center;
  251. width: 100rpx;
  252. height: 100%;
  253. border-top-right-radius: 15rpx;
  254. border-bottom-right-radius: 15rpx;
  255. }
  256. .del .untying {
  257. background: orange;
  258. display: flex;
  259. align-items: center;
  260. justify-content: center;
  261. width: 100rpx;
  262. height: 100%;
  263. }
  264. .touch-move-active .content,
  265. .touch-move-active .del {
  266. -webkit-transform: translateX(0);
  267. transform: translateX(0);
  268. }
  269. .touch-move-active .del {
  270. width: 100rpx;
  271. }