cart.wxss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. page{
  2. background: #f4f4f4;
  3. padding-bottom: 100rpx;
  4. min-height: calc(100% - 200rpx);
  5. }
  6. .container{
  7. background: #f4f4f4;
  8. width: 100%;
  9. height: auto;
  10. overflow: hidden;
  11. }
  12. .service-policy{
  13. width: 750rpx;
  14. height: 73rpx;
  15. background: #f4f4f4;
  16. padding: 0 31.25rpx;
  17. display: flex;
  18. flex-flow: row nowrap;
  19. align-items: center;
  20. justify-content: space-between;
  21. }
  22. .service-policy .item{
  23. background: url(https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/wxmall/images/yuandian.png) 0 center no-repeat;
  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-cart{
  32. width: 100%;
  33. height: auto;
  34. margin: 0 auto;
  35. }
  36. .no-cart .c{
  37. width: 100%;
  38. height: auto;
  39. margin-top: 200rpx;
  40. }
  41. .no-cart .c image{
  42. margin: 0 auto;
  43. display: block;
  44. text-align: center;
  45. width: 258rpx;
  46. height: 258rpx;
  47. }
  48. .no-cart .c text{
  49. margin: 0 auto;
  50. display: block;
  51. width: 258rpx;
  52. height: 29rpx;
  53. line-height: 29rpx;
  54. text-align: center;
  55. font-size: 29rpx;
  56. color: #999;
  57. }
  58. .title-box{
  59. width: 100%;
  60. padding-top: 330rpx;
  61. text-align: center;
  62. font-size:28rpx;
  63. color:#999;
  64. background: url(https://platform-wxmall.oss-cn-beijing.aliyuncs.com/upload/20180727/15015039793f4e.png) no-repeat center 205rpx;
  65. background-size: 100rpx auto;
  66. margin-bottom: 50rpx;
  67. }
  68. .to-index-btn{
  69. color:#fff;
  70. background:#0075DC;
  71. border-radius:6px;
  72. width:300rpx;
  73. height: auto;
  74. line-height: 70rpx;
  75. text-align: center;
  76. font-size:28rpx;
  77. margin: 0 auto;
  78. display: block;
  79. }
  80. .cart-view{
  81. width: 100%;
  82. height: auto;
  83. overflow: hidden;
  84. }
  85. .cart-view .list{
  86. margin: 20rpx 0;
  87. height: auto;
  88. width: 100%;
  89. overflow: hidden;
  90. }
  91. .cart-view .group-item{
  92. height: auto;
  93. width: 100%;
  94. background: #fff;
  95. }
  96. .cart-view .item{
  97. width: 100%;
  98. overflow: hidden;
  99. }
  100. .cart-view .item .checkbox{
  101. float: left;
  102. height: 34rpx;
  103. width: 34rpx;
  104. margin: 65rpx 18rpx 65rpx 26rpx;
  105. }
  106. .cart-view .item .cart-goods{
  107. float: left;
  108. width: 672rpx;
  109. border-bottom: 1px solid rgba(0,0,0,0.1);
  110. padding-bottom: 6px;
  111. }
  112. .cart-view .item:last-child .cart-goods {
  113. border-bottom: none;
  114. }
  115. .cart-view .item .img{
  116. float: left;
  117. height:125rpx;
  118. width: 125rpx;
  119. background: #f4f4f4;
  120. margin: 19.5rpx 18rpx 19.5rpx 0;
  121. }
  122. .cart-view .item .info{
  123. float: left;
  124. height:125rpx;
  125. width: 503rpx;
  126. margin: 19.5rpx 26rpx 19.5rpx 0;
  127. }
  128. .cart-view .item .t{
  129. margin: 8rpx 0;
  130. font-size: 25rpx;
  131. color: #333;
  132. overflow: hidden;
  133. }
  134. .cart-view .item .name{
  135. width: calc(100% - 50rpx);
  136. line-height: 28rpx;
  137. font-size: 26rpx;
  138. color: #131D34;
  139. display: inline-block;
  140. }
  141. .cart-view .item .num{
  142. height: 28rpx;
  143. line-height: 28rpx;
  144. float: right;
  145. color: #999999;
  146. }
  147. .cart-view .item .attr{
  148. margin-bottom: 17rpx;
  149. height: 24rpx;
  150. line-height: 24rpx;
  151. font-size: 24rpx;
  152. color: #999999;
  153. overflow: hidden;
  154. }
  155. .cart-view .item .b{
  156. height: 28rpx;
  157. line-height: 28rpx;
  158. font-size: 25rpx;
  159. color: #333;
  160. overflow: hidden;
  161. }
  162. .cart-view .item .price{
  163. float: left;
  164. color: #0075DC;
  165. font-size: 30rpx;
  166. }
  167. .cart-view .item .open{
  168. height: 28rpx;
  169. width: 150rpx;
  170. display: block;
  171. float: right;
  172. background: url(https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/wxmall/images/icon-normal_arrowDown.png) right center no-repeat;
  173. background-size: 25rpx;
  174. font-size: 25rpx;
  175. color: #333;
  176. }
  177. .cart-view .item.edit .t{
  178. display: none;
  179. }
  180. .cart-view .item.edit .attr{
  181. text-align: right;
  182. background: url(https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/wxmall/images/icon-normal_arrow-right1.png) right center no-repeat;
  183. padding-right: 25rpx;
  184. background-size: 12rpx 20rpx;
  185. margin-bottom: 24rpx;
  186. height: 39rpx;
  187. line-height: 39rpx;
  188. font-size: 24rpx;
  189. color: #999;
  190. overflow: hidden;
  191. }
  192. .cart-view .item.edit .b{
  193. display: flex;
  194. height: 52rpx;
  195. overflow: hidden;
  196. }
  197. .cart-view .item.edit .price{
  198. line-height: 52rpx;
  199. height: 52rpx;
  200. flex: 1;
  201. }
  202. .cart-view .item .selnum{
  203. display: none;
  204. }
  205. .cart-view .item.edit .selnum{
  206. width: 235rpx;
  207. height: 52rpx;
  208. border: 1rpx solid #ccc;
  209. display: flex;
  210. }
  211. .selnum .cut{
  212. width: 70rpx;
  213. height: 100%;
  214. text-align: center;
  215. line-height: 50rpx;
  216. }
  217. .selnum .number{
  218. flex: 1;
  219. height: 100%;
  220. text-align: center;
  221. line-height: 68.75rpx;
  222. border-left: 1px solid #ccc;
  223. border-right: 1px solid #ccc;
  224. float: left;
  225. }
  226. .selnum .add{
  227. width: 80rpx;
  228. height: 100%;
  229. text-align: center;
  230. line-height: 50rpx;
  231. }
  232. .cart-view .group-item .header{
  233. width: 100%;
  234. height: 94rpx;
  235. line-height: 94rpx;
  236. padding: 0 26rpx;
  237. border-bottom: 1px solid #f4f4f4;
  238. }
  239. .cart-view .promotion .icon{
  240. display: inline-block;
  241. height: 24rpx;
  242. width: 15rpx;
  243. }
  244. .cart-view .promotion{
  245. margin-top: 25.5rpx;
  246. float: left;
  247. height: 43rpx;
  248. width: 480rpx;
  249. /*margin-right: 84rpx;*/
  250. line-height: 43rpx;
  251. font-size: 0;
  252. }
  253. .cart-view .promotion .tag{
  254. border: 1px solid #f48f18;
  255. height: 37rpx;
  256. line-height: 31rpx;
  257. padding: 0 9rpx;
  258. margin-right: 10rpx;
  259. color: #f48f18;
  260. font-size: 24.5rpx;
  261. }
  262. .cart-view .promotion .txt{
  263. height: 43rpx;
  264. line-height: 43rpx;
  265. padding-right: 10rpx;
  266. color: #333;
  267. font-size: 29rpx;
  268. overflow: hidden;
  269. }
  270. .cart-view .get{
  271. margin-top: 18rpx;
  272. float: right;
  273. height: 58rpx;
  274. padding-left: 14rpx;
  275. border-left: 1px solid #d9d9d9;
  276. line-height: 58rpx;
  277. font-size: 29rpx;
  278. color: #333;
  279. }
  280. .cart-bottom{
  281. position: fixed;
  282. z-index: 999;
  283. bottom:0;
  284. left:0;
  285. height: 100rpx;
  286. width: 100%;
  287. background: #fff;
  288. display: flex;
  289. border-top: 1px solid #f4f4f4;
  290. align-items: center;
  291. }
  292. .isIPhoneX{
  293. bottom:168rpx;
  294. }
  295. .cart-bottom .checkbox{
  296. /* height: 100%; */
  297. padding-left: 80rpx;
  298. /* line-height: 100%; */
  299. /* padding: 34rpx 18rpx 34rpx 80rpx; */
  300. font-size: 26rpx;
  301. color: #131D34;
  302. position: relative;
  303. }
  304. .cart-bottom .checkbox image {
  305. width: 34rpx;
  306. height: 34rpx;
  307. position: absolute;
  308. top: 50%;
  309. transform: translateY(-50%);
  310. left: 26rpx;
  311. }
  312. .cart-bottom .total{
  313. flex: 1;
  314. /* margin: 26rpx 10rpx 34rpx 14rpx; */
  315. padding-left: 20rpx;
  316. color: #0075DC;
  317. font-size: 26rpx;
  318. }
  319. .cart-bottom .delete{
  320. width: auto;
  321. font-size: 26rpx;
  322. margin-right: 30rpx;
  323. color: #131D34;
  324. }
  325. .cart-bottom .checkout{
  326. height: 100rpx;
  327. width: 210rpx;
  328. text-align: center;
  329. line-height: 100rpx;
  330. font-size: 34rpx;
  331. background: #0075DC;
  332. color: #fff;
  333. }