cart.wxss 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. page {
  2. height: 100%;
  3. min-height: 100%;
  4. background: #f4f4f4;
  5. }
  6. .container {
  7. background: #f4f4f4;
  8. width: 100%;
  9. height: auto;
  10. min-height: 100%;
  11. overflow: hidden;
  12. }
  13. .service-policy {
  14. width: 750rpx;
  15. height: 73rpx;
  16. background: #f4f4f4;
  17. padding: 0 31.25rpx;
  18. display: flex;
  19. flex-flow: row nowrap;
  20. align-items: center;
  21. justify-content: space-between;
  22. }
  23. .service-policy .item {
  24. background-size: 10rpx;
  25. padding-left: 15rpx;
  26. display: flex;
  27. align-items: center;
  28. font-size: 25rpx;
  29. color: #666;
  30. }
  31. .no-login {
  32. width: 100%;
  33. height: auto;
  34. margin: 0 auto;
  35. }
  36. .no-login .c {
  37. width: 100%;
  38. height: auto;
  39. margin-top: 400rpx;
  40. }
  41. .no-login .c text {
  42. margin: 0 auto;
  43. display: block;
  44. width: 258rpx;
  45. height: 59rpx;
  46. line-height: 29rpx;
  47. text-align: center;
  48. font-size: 35rpx;
  49. color: #999;
  50. }
  51. .no-login button {
  52. width: 90%;
  53. margin: 0 auto;
  54. color: #fff;
  55. font-size: 30rpx;
  56. height: 96rpx;
  57. line-height: 96rpx;
  58. right: 0;
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. position: flex;
  63. bottom: 0;
  64. left: 0;
  65. border-radius: 0;
  66. padding: 0;
  67. margin-left: 5%;
  68. text-align: center;
  69. /* padding-left: -5rpx; */
  70. border-top-left-radius: 50rpx;
  71. border-bottom-left-radius: 50rpx;
  72. border-top-right-radius: 50rpx;
  73. border-bottom-right-radius: 50rpx;
  74. letter-spacing: 3rpx;
  75. background-image: linear-gradient(to right, #9a9ba1 0%, #9a9ba1 100%);
  76. }
  77. .no-cart {
  78. width: 100%;
  79. height: auto;
  80. margin: 0 auto;
  81. }
  82. .no-cart .c {
  83. width: 100%;
  84. height: auto;
  85. margin-top: 400rpx;
  86. }
  87. .no-cart .c text {
  88. margin: 0 auto;
  89. display: block;
  90. width: 258rpx;
  91. height: 29rpx;
  92. line-height: 29rpx;
  93. text-align: center;
  94. font-size: 29rpx;
  95. color: #999;
  96. }
  97. .cart-view {
  98. width: 100%;
  99. height: auto;
  100. overflow: hidden;
  101. }
  102. .cart-view .list {
  103. height: auto;
  104. width: 100%;
  105. overflow: hidden;
  106. margin-bottom: 120rpx;
  107. }
  108. .cart-view .group-item {
  109. height: auto;
  110. width: 100%;
  111. background: #fff;
  112. margin-bottom: 18rpx;
  113. }
  114. .cart-view .item {
  115. height: 164rpx;
  116. width: 100%;
  117. overflow: hidden;
  118. }
  119. .cart-view .item .van-checkbox {
  120. float: left;
  121. margin: 65rpx 18rpx 65rpx 18rpx;
  122. }
  123. .cart-view .item .van-checkbox .van-icon {
  124. color: #fff;
  125. }
  126. .cart-view .item .cart-goods {
  127. float: left;
  128. height: 164rpx;
  129. width: 672rpx;
  130. border-bottom: 1px solid #f4f4f4;
  131. }
  132. .cart-view .item .img {
  133. float: left;
  134. height: 125rpx;
  135. width: 125rpx;
  136. background: #f4f4f4;
  137. margin: 19.5rpx 18rpx 19.5rpx 0;
  138. }
  139. .cart-view .item .info {
  140. float: left;
  141. height: 125rpx;
  142. width: 503rpx;
  143. margin: 19.5rpx 26rpx 19.5rpx 0;
  144. }
  145. .cart-view .item .t {
  146. margin: 8rpx 0;
  147. height: 28rpx;
  148. font-size: 25rpx;
  149. color: #333;
  150. overflow: hidden;
  151. }
  152. .cart-view .item .name {
  153. height: 28rpx;
  154. max-width: 310rpx;
  155. line-height: 28rpx;
  156. font-size: 25rpx;
  157. color: #333;
  158. overflow: hidden;
  159. }
  160. .cart-view .item .num {
  161. height: 28rpx;
  162. line-height: 28rpx;
  163. float: right;
  164. }
  165. .cart-view .item .attr {
  166. margin-bottom: 17rpx;
  167. height: 24rpx;
  168. line-height: 24rpx;
  169. font-size: 22rpx;
  170. color: #666;
  171. overflow: hidden;
  172. }
  173. .cart-view .item .b {
  174. height: 28rpx;
  175. line-height: 28rpx;
  176. font-size: 25rpx;
  177. color: #333;
  178. overflow: hidden;
  179. }
  180. .cart-view .item .price {
  181. float: left;
  182. }
  183. .cart-view .item.edit .t {
  184. display: none;
  185. }
  186. .cart-view .item.edit .attr {
  187. text-align: right;
  188. padding-right: 25rpx;
  189. background-size: 12rpx 20rpx;
  190. margin-bottom: 24rpx;
  191. height: 39rpx;
  192. line-height: 39rpx;
  193. font-size: 24rpx;
  194. color: #999;
  195. overflow: hidden;
  196. }
  197. .cart-view .item.edit .b {
  198. display: flex;
  199. height: 52rpx;
  200. overflow: hidden;
  201. }
  202. .cart-view .item.edit .price {
  203. line-height: 52rpx;
  204. height: 52rpx;
  205. flex: 1;
  206. }
  207. .cart-view .item .selnum {
  208. display: none;
  209. }
  210. .cart-view .item.edit .selnum {
  211. width: 235rpx;
  212. height: 52rpx;
  213. border: 1rpx solid #ccc;
  214. display: flex;
  215. }
  216. .selnum .cut {
  217. width: 70rpx;
  218. height: 100%;
  219. text-align: center;
  220. line-height: 50rpx;
  221. }
  222. .selnum .number {
  223. flex: 1;
  224. height: 100%;
  225. text-align: center;
  226. line-height: 68.75rpx;
  227. border-left: 1px solid #ccc;
  228. border-right: 1px solid #ccc;
  229. float: left;
  230. }
  231. .selnum .add {
  232. width: 80rpx;
  233. height: 100%;
  234. text-align: center;
  235. line-height: 50rpx;
  236. }
  237. .cart-view .group-item .header {
  238. width: 100%;
  239. height: 94rpx;
  240. line-height: 94rpx;
  241. padding: 0 26rpx;
  242. border-bottom: 1px solid #f4f4f4;
  243. }
  244. .cart-view .promotion .icon {
  245. display: inline-block;
  246. height: 24rpx;
  247. width: 15rpx;
  248. }
  249. .cart-view .promotion {
  250. margin-top: 25.5rpx;
  251. float: left;
  252. height: 43rpx;
  253. width: 480rpx;
  254. /*margin-right: 84rpx;*/
  255. line-height: 43rpx;
  256. font-size: 0;
  257. }
  258. .cart-view .promotion .tag {
  259. border: 1px solid #f48f18;
  260. height: 37rpx;
  261. line-height: 31rpx;
  262. padding: 0 9rpx;
  263. margin-right: 10rpx;
  264. color: #f48f18;
  265. font-size: 24.5rpx;
  266. }
  267. .cart-view .promotion .txt {
  268. height: 43rpx;
  269. line-height: 43rpx;
  270. padding-right: 10rpx;
  271. color: #333;
  272. font-size: 29rpx;
  273. overflow: hidden;
  274. }
  275. .cart-view .get {
  276. margin-top: 18rpx;
  277. float: right;
  278. height: 58rpx;
  279. padding-left: 14rpx;
  280. border-left: 1px solid #d9d9d9;
  281. line-height: 58rpx;
  282. font-size: 29rpx;
  283. color: #333;
  284. }
  285. .cart-bottom {
  286. position: fixed;
  287. bottom: 0;
  288. left: 0;
  289. height: 100rpx;
  290. width: 100%;
  291. background: #fff;
  292. display: flex;
  293. }
  294. .cart-bottom .van-checkbox {
  295. float: left;
  296. margin: 33rpx 18rpx 33rpx 26rpx;
  297. font-size: 29rpx;
  298. }
  299. .cart-bottom .van-checkbox .van-icon {
  300. color: #fff;
  301. }
  302. .cart-bottom .total {
  303. height: 34rpx;
  304. flex: 1;
  305. margin: 33rpx 10rpx;
  306. font-size: 29rpx;
  307. }
  308. .cart-bottom .delete {
  309. text-align: center;
  310. width: 180rpx;
  311. height: 80rpx;
  312. line-height: 82rpx;
  313. padding: 0;
  314. margin: 0;
  315. margin-left: -5rpx;
  316. padding-right: 25rpx;
  317. font-size: 25rpx;
  318. color: #f4f4f4;
  319. /* text-align: center; */
  320. border-top-left-radius: 0rpx;
  321. border-bottom-left-radius: 0rpx;
  322. border-top-right-radius: 50rpx;
  323. border-bottom-right-radius: 50rpx;
  324. letter-spacing: 3rpx;
  325. background-image: linear-gradient(to right, #9a9ba1 0%, #ae8b9c 100%);
  326. }
  327. .cart-bottom .checkout {
  328. height: 100rpx;
  329. width: 210rpx;
  330. text-align: center;
  331. line-height: 100rpx;
  332. font-size: 29rpx;
  333. background: #b4282d;
  334. color: #fff;
  335. }
  336. .action_btn_area {
  337. /* border: 1px solid #333; */
  338. position: absolute;
  339. display: flex;
  340. justify-content: center;
  341. align-items: center;
  342. right: 0;
  343. top: 0;
  344. width: 380rpx;
  345. height: 100rpx;
  346. }
  347. .action_btn_area .edit {
  348. width: 140rpx;
  349. /* border: 1px solid #000; */
  350. height: 80rpx;
  351. line-height: 82rpx;
  352. padding: 0;
  353. margin: 0;
  354. margin-right: 5rpx;
  355. text-align: center;
  356. /* padding-left: 25rpx; */
  357. font-size: 25rpx;
  358. color: #f4f4f4;
  359. border-top-left-radius: 50rpx;
  360. border-bottom-left-radius: 50rpx;
  361. border-top-right-radius: 50rpx;
  362. border-bottom-right-radius: 50rpx;
  363. letter-spacing: 3rpx;
  364. /* background-image: linear-gradient(to right, #ff7701 100%); */
  365. background-image: linear-gradient(to right, #ab956d 0%, #ab956d 100%);
  366. }
  367. .action_btn_area .checkout {
  368. width: 140rpx;
  369. height: 80rpx;
  370. line-height: 82rpx;
  371. padding: 0;
  372. margin: 0;
  373. margin-left: 5rpx;
  374. /* padding-right: 25rpx; */
  375. font-size: 25rpx;
  376. color: #f4f4f4;
  377. text-align: center;
  378. border-top-left-radius: 50rpx;
  379. border-bottom-left-radius: 50rpx;
  380. border-top-right-radius: 50rpx;
  381. border-bottom-right-radius: 50rpx;
  382. letter-spacing: 3rpx;
  383. background-image: linear-gradient(to right, #9a9ba1 0%, #9a9ba1 100%);
  384. }
  385. .action_btn_area .delete {
  386. width: 140rpx;
  387. /* border: 1px solid #000; */
  388. height: 80rpx;
  389. line-height: 82rpx;
  390. padding: 0;
  391. margin: 0;
  392. margin-right: 5rpx;
  393. text-align: center;
  394. padding-left: -5rpx;
  395. font-size: 25rpx;
  396. color: #f4f4f4;
  397. border-top-left-radius: 50rpx;
  398. border-bottom-left-radius: 50rpx;
  399. border-top-right-radius: 50rpx;
  400. border-bottom-right-radius: 50rpx;
  401. letter-spacing: 3rpx;
  402. background-image: linear-gradient(to right, #9a9ba1 0%, #9a9ba1 100%);
  403. }
  404. .action_btn_area .sure {
  405. text-align: center;
  406. width: 140rpx;
  407. height: 80rpx;
  408. line-height: 82rpx;
  409. padding: 0;
  410. margin: 0;
  411. margin-right: 10rpx;
  412. padding-left: -5rpx;
  413. font-size: 25rpx;
  414. color: #f4f4f4;
  415. /* text-align: center; */
  416. border-top-left-radius: 50rpx;
  417. border-bottom-left-radius: 50rpx;
  418. border-top-right-radius: 50rpx;
  419. border-bottom-right-radius: 50rpx;
  420. letter-spacing: 3rpx;
  421. background-image: linear-gradient(to right, #ab956d 0%, #ab956d 100%);
  422. /* background-image: linear-gradient(to right, #ff7701 0%, #fe4800 100%); */
  423. }
  424. .auth_btn {
  425. position: fixed;
  426. top: 55vh;
  427. left: 10vw;
  428. width: 80vw;
  429. height: 96rpx;
  430. line-height: 96rpx;
  431. font-size: 25rpx;
  432. color: #f4f4f4;
  433. /* text-align: center; */
  434. border-top-left-radius: 50rpx;
  435. border-bottom-left-radius: 50rpx;
  436. border-top-right-radius: 50rpx;
  437. border-bottom-right-radius: 50rpx;
  438. letter-spacing: 3rpx;
  439. background-image: linear-gradient(to right, #8baaaa 0%, #9a9ba1 100%);
  440. }