cart.wxss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  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:#1fe4dc;
  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. height: auto;
  87. width: 100%;
  88. overflow: hidden;
  89. }
  90. .cart-view .group-item{
  91. height: auto;
  92. width: 100%;
  93. background: #fff;
  94. }
  95. .cart-view .item{
  96. min-height: 200rpx;
  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. background: url(https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/wxmall/images/icon-normal_checkbox.png) no-repeat;
  106. background-size: 34rpx;
  107. }
  108. .cart-view .item .checkbox.checked{
  109. background: url(https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/wxmall/images/icon-normal_checkbox-checked.png) no-repeat;
  110. background-size: 34rpx;
  111. }
  112. .cart-view .item .cart-goods{
  113. float: left;
  114. min-height: 200rpx;
  115. width: 672rpx;
  116. border-bottom: 1px solid #f4f4f4;
  117. }
  118. .cart-view .item .img{
  119. float: left;
  120. height:125rpx;
  121. width: 125rpx;
  122. background: #f4f4f4;
  123. margin: 19.5rpx 18rpx 19.5rpx 0;
  124. }
  125. .cart-view .item .info{
  126. float: left;
  127. height:125rpx;
  128. width: 503rpx;
  129. margin: 19.5rpx 26rpx 19.5rpx 0;
  130. }
  131. .cart-view .item .t{
  132. margin: 8rpx 0;
  133. font-size: 25rpx;
  134. color: #333;
  135. overflow: hidden;
  136. }
  137. .cart-view .item .name{
  138. width: calc(100% - 50rpx);
  139. line-height: 28rpx;
  140. font-size: 25rpx;
  141. color: #333;
  142. display: inline-block;
  143. }
  144. .cart-view .item .num{
  145. height: 28rpx;
  146. line-height: 28rpx;
  147. float: right;
  148. }
  149. .cart-view .item .attr{
  150. margin-bottom: 17rpx;
  151. height: 24rpx;
  152. line-height: 24rpx;
  153. font-size: 22rpx;
  154. color: #666;
  155. overflow: hidden;
  156. }
  157. .cart-view .item .b{
  158. height: 28rpx;
  159. line-height: 28rpx;
  160. font-size: 25rpx;
  161. color: #333;
  162. overflow: hidden;
  163. }
  164. .cart-view .item .price{
  165. float: left;
  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. background: url(https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/wxmall/images/icon-normal_checkbox.png) 26rpx 50% no-repeat;
  301. background-size: 34rpx;
  302. font-size: 30rpx;
  303. }
  304. .cart-bottom .checkbox.checked{
  305. background: url(https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/wxmall/images/icon-normal_checkbox-checked.png) 26rpx 50% no-repeat;
  306. background-size: 34rpx;
  307. }
  308. .cart-bottom .total{
  309. flex: 1;
  310. /* margin: 26rpx 10rpx 34rpx 14rpx; */
  311. font-size: 29rpx;
  312. padding-left: 20rpx;
  313. }
  314. .cart-bottom .delete{
  315. width: auto;
  316. font-size: 29rpx;
  317. margin-right: 30rpx;
  318. }
  319. .cart-bottom .checkout{
  320. height: 100rpx;
  321. width: 210rpx;
  322. text-align: center;
  323. line-height: 100rpx;
  324. font-size: 29rpx;
  325. background: #1fe4dc;
  326. color: #fff;
  327. }