金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

303 lines
6.4 KiB

  1. #store-list{
  2. .commodity-top{
  3. position: fixed;
  4. top: 0;
  5. width: 100%;
  6. z-index: 10;
  7. .sidebar{
  8. background: #FFFFFF;
  9. font-size: 18px;
  10. width: 100%;
  11. height: 50px;
  12. display: flex;
  13. align-items: center;
  14. .sidebar-left{
  15. flex: 1;
  16. height: 100%;
  17. span{
  18. display: inline-block;
  19. line-height: 50px;
  20. height: 100%;
  21. padding-left: 15px;
  22. }
  23. }
  24. .sidebar-right{
  25. width: 120px;
  26. height: 100%;
  27. overflow: hidden;
  28. view{
  29. display: inline-block;
  30. width: 40px;
  31. height: 100%;
  32. text-align: center;
  33. line-height: 50px;
  34. font-size: 20px;
  35. }
  36. }
  37. }
  38. .filter-box{
  39. display: flex;
  40. justify-content: space-between;
  41. align-items: center;
  42. font-size: 14px;
  43. background: #FFFFFF;
  44. .filter-item{
  45. display: flex;
  46. flex: 1;
  47. width: 0%;
  48. justify-content: center;
  49. align-items: center;
  50. line-height: 40px;
  51. height: 40px;
  52. .left{
  53. flex: 1;
  54. margin-left: 20px;
  55. text-align: center;
  56. &.active {
  57. color: #099FFF;
  58. }
  59. }
  60. &.dis {
  61. color: #eeeeee;
  62. }
  63. .right{
  64. width: 20px;
  65. height: 100%;
  66. margin-right: 5px;
  67. background: url("https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/ico-filter.png") no-repeat center;
  68. background-size: 8px 12px;
  69. &.asc {
  70. background-image: url("https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/ico-filter1.png");
  71. transform: rotate(180deg);
  72. }
  73. &.desc {
  74. background-image: url("https://ibrand-miniprogram.oss-cn-hangzhou.aliyuncs.com/%E5%B0%8F%E7%A8%8B%E5%BA%8F/ico-filter1.png");
  75. }
  76. }
  77. }
  78. }
  79. }
  80. .commodity-bottom{
  81. //height: 100%;
  82. font-size: 0;
  83. box-sizing: border-box;
  84. padding: 90px 5px 20px 5px;
  85. .commodity-out{
  86. width: 50%;
  87. display: inline-block;
  88. font-size: 12px;
  89. padding: 10px 5px 0 5px;
  90. box-sizing: border-box;
  91. .commodity-box{
  92. background: #ffffff;
  93. overflow: hidden;
  94. width: 100%;
  95. padding: 10px;
  96. box-sizing: border-box;
  97. font-size: 14px;
  98. .commodity-img {
  99. overflow: hidden;
  100. text-align: center;
  101. image{
  102. width: 290rpx;
  103. //height: 310rpx;
  104. }
  105. }
  106. .commodity-name{
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. white-space: nowrap;
  110. }
  111. .commodity-money{
  112. display: flex;
  113. align-items: center;
  114. margin-top: 10px;
  115. overflow: hidden;
  116. text-overflow: ellipsis;
  117. white-space: nowrap;
  118. height: 25px;
  119. .money{
  120. color: #ED3327;
  121. margin-top: 2px;
  122. .origin-money{
  123. color: #AAAAAA;
  124. font-size: 12px;
  125. display: inline-block;
  126. padding-left:2px;
  127. text-decoration: line-through;
  128. }
  129. }
  130. .discount-tags{
  131. font-size: 0;
  132. overflow: hidden;
  133. .tags-item{
  134. display: block;
  135. float: left;
  136. color: #ffffff;
  137. background: #EB7073;
  138. border-radius: 2px;
  139. padding: 2px 5px;
  140. font-size: 12px;
  141. margin: 0 0 0px 5px;
  142. }
  143. }
  144. .vip-type {
  145. width: 15px;
  146. height: 15px;
  147. margin-left: 5px;
  148. image {
  149. width: 100%;
  150. height: 100%;
  151. }
  152. }
  153. }
  154. }
  155. }
  156. .commodity-out-vertical{
  157. display: flex;
  158. align-items: center;
  159. padding-right:5px;
  160. background-color: #FFFFFF;
  161. margin-top: 10px;
  162. .img-box{
  163. width:110px;
  164. margin-right: 10px;
  165. image{
  166. vertical-align: middle;
  167. width: 100%;
  168. }
  169. }
  170. .right-box{
  171. flex: 1;
  172. overflow: hidden;
  173. .goods-name{
  174. color: #111111;
  175. font-size: 14px;
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. display: -webkit-box;
  179. -webkit-line-clamp:2;
  180. -webkit-box-orient: vertical;
  181. padding-top: 10px;
  182. }
  183. .goods-money{
  184. color:#FB5054;
  185. font-size: 14px;
  186. padding:26px 0px 13px 0;
  187. .origin-money{
  188. color: #AAAAAA;
  189. font-size: 12px;
  190. display: inline-block;
  191. padding-left:2px;
  192. text-decoration: line-through;
  193. }
  194. }
  195. }
  196. }
  197. .loadingbox{
  198. margin-top: 10px;
  199. height: 40px;
  200. line-height: 40px;
  201. text-align: center;
  202. font-size:14px;
  203. }
  204. }
  205. }
  206. .right-filter-box{
  207. overflow: auto;
  208. position: fixed;
  209. top: 0;
  210. bottom: 0;
  211. width: 100%;
  212. padding: 6px;
  213. background: #FFFFFF;
  214. font-size: 14px;
  215. //overflow: hidden;
  216. z-index: 10;
  217. //transform: translateX(100%);
  218. .box{
  219. height: 100%;
  220. .title{
  221. padding: 10px 5px;
  222. }
  223. .list{
  224. font-size: 0;
  225. .list-block{
  226. display: inline-block;
  227. width: 33.33%;
  228. font-size: 12px;
  229. margin-bottom: 10px;
  230. padding: 0 5px;
  231. .selected{
  232. background-color: #fff;
  233. border-color: #f9be00;
  234. }
  235. view{
  236. display: block;
  237. height: 34px;
  238. line-height: 30px;
  239. text-align: center;
  240. background: #ededed;
  241. width: 100%;
  242. border: 2px solid #ededed;
  243. box-sizing: border-box;
  244. white-space: nowrap;
  245. overflow: hidden;
  246. text-overflow: ellipsis;
  247. }
  248. }
  249. .price-inputs{
  250. padding: 0 5px;
  251. display: flex;
  252. input{
  253. display: block;
  254. text-align: center;
  255. width: 31%;
  256. height: 35px;
  257. outline: none;
  258. background: #f8f8f8;
  259. }
  260. .minus{
  261. font-size: 12px;
  262. height: 35px;
  263. line-height: 35px;
  264. text-align: center;
  265. padding: 0 5px;
  266. }
  267. }
  268. }
  269. .button-box{
  270. display: flex;
  271. align-items: center;
  272. justify-content: space-between;
  273. font-size: 12px;
  274. margin: 15px 0;
  275. button{
  276. width: 0%;
  277. height: 40px;
  278. line-height: 40px;
  279. text-align: center;
  280. flex: 1;
  281. margin: 0 8px;
  282. }
  283. }
  284. }
  285. }