cartList.wxss 5.2 KB

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