cart.wxss 8.7 KB

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