cart.wxss 8.8 KB

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