goods.less 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. @import "~antd/lib/style/themes/default.less";
  2. @theme-color: #00985E;
  3. //@theme-color的rgb
  4. @theme-rgbColor: 0, 152, 94;
  5. //#00FA9A的rgb色
  6. @theme-light-rgba-Color: 0,250,154;
  7. @theme-lightColor: #00FF00;
  8. @theme-light2Color: #98FB98;
  9. //@theme-light2Color的rgb
  10. @theme-light2RgbColor: 152,251,152;
  11. //card的rgb颜色
  12. @theme-cardColor: 244,255,250;
  13. @theme-light3Color: #90EE90;
  14. @theme-light4Color: #F0FFF0;
  15. //@theme-light2Color的rgb
  16. @theme-light4RgbColor: 3, 110, 184, 0.1;
  17. //@theme-light4Color: #000;
  18. @theme-commonColor: #F5F5F5;
  19. //灰色的rgb
  20. @theme-commonRgbColor: 245,245,245;
  21. //菜单头颜色
  22. @theme-headerColor: #006400;
  23. .goods_import {
  24. :global {
  25. .ant-btn {
  26. font-size: 14px !important;
  27. padding: 4px 15px;
  28. font-weight: 500;
  29. height: 32px;
  30. }
  31. }
  32. .import_success_con {
  33. font-size: 16px;
  34. font-weight: 700;
  35. margin-top: 20px;
  36. }
  37. .import_success_tip {
  38. color: rgb(102, 102, 102);
  39. margin-top: 30px;
  40. margin-bottom: 10px;
  41. }
  42. }
  43. .import_store_goods {
  44. .left_part {
  45. width: 220px;
  46. background: #FFF;
  47. border-radius: 2px;
  48. border: 1px solid #EBEDF0;
  49. position: relative;
  50. .title {
  51. width: 100%;
  52. height: 49px;
  53. border-bottom: 1px solid #D8D8D8;
  54. font-size: 14px;
  55. font-family: PingFangSC-Medium, PingFang SC;
  56. font-weight: 500;
  57. color: #323233;
  58. padding-left: 20px;
  59. }
  60. .goods_cat {
  61. width: 100%;
  62. .cat_item {
  63. padding-left: 20px;
  64. height: 44px;
  65. cursor: pointer;
  66. position: relative;
  67. &:hover {
  68. .cat_name {
  69. color: @theme-color !important;
  70. }
  71. .to_right_icon svg {
  72. fill: @theme-color !important;
  73. }
  74. }
  75. .cat_name {
  76. font-size: 14px;
  77. font-family: PingFangSC-Regular, PingFang SC;
  78. font-weight: 400;
  79. color: #323233;
  80. line-height: 20px;
  81. }
  82. .to_right_icon {
  83. padding-right: 76px;
  84. display: flex;
  85. }
  86. }
  87. .selected_cat_item {
  88. background: #F9F9F9;
  89. .cat_name {
  90. color: @theme-color;
  91. }
  92. }
  93. }
  94. .more_cat {
  95. padding: 25px;
  96. padding-left: 15px;
  97. width: 800px;
  98. background: #F9F9F9;
  99. border: 1px solid #DFDFDF;
  100. position: absolute;
  101. left: 204px;
  102. top: 48px;
  103. z-index: 999;
  104. zoom: 1;
  105. .item {
  106. .second_cat {
  107. cursor: pointer;
  108. width: 108px;
  109. flex-shrink: 0;
  110. &:hover {
  111. .cat_name {
  112. color: @theme-color !important;
  113. }
  114. .to_right_icon svg {
  115. fill: @theme-color !important;
  116. }
  117. }
  118. .cat_name {
  119. height: 20px;
  120. font-size: 14px;
  121. font-family: PingFangSC-Semibold, PingFang SC;
  122. font-weight: 600;
  123. color: #4C4C4C;
  124. line-height: 20px;
  125. }
  126. .to_right_icon {
  127. margin-left: 6px;
  128. display: flex;
  129. }
  130. }
  131. .third_cat {
  132. flex-wrap: wrap;
  133. margin-left: 20px;
  134. .item {
  135. height: 20px;
  136. font-size: 14px;
  137. font-family: PingFangSC-Regular, PingFang SC;
  138. font-weight: 400;
  139. color: #999;
  140. line-height: 20px;
  141. margin-right: 20px;
  142. margin-bottom: 15px;
  143. &:hover {
  144. color: @theme-color !important;
  145. }
  146. }
  147. }
  148. }
  149. }
  150. }
  151. .right_goods {
  152. flex: 1;
  153. flex-wrap: wrap;
  154. .item {
  155. background: #FFF;
  156. border-radius: 2px;
  157. border: 1px solid #EAEAEA;
  158. margin-left: 10px;
  159. cursor: pointer;
  160. margin-bottom: 10px;
  161. position: relative;
  162. .virtual_goods_flag {
  163. position: absolute;
  164. left: -1px;
  165. top: -1px;
  166. font-size: 12px;
  167. color: #fff;
  168. background: linear-gradient(90deg, @theme-light4Color 0%, @theme-light3Color 100%);
  169. border-radius: 3px 0 3px 0;
  170. padding: 0 3px;
  171. }
  172. .img_wrap {
  173. background: #F8F8F8;
  174. border-radius: 2px 2px 0 0;
  175. img {
  176. max-width: 100%;
  177. max-height: 100%;
  178. }
  179. }
  180. .goods_name {
  181. padding: 0px 10px;
  182. font-size: 13px;
  183. font-family: PingFangSC-Regular, PingFang SC;
  184. font-weight: 400;
  185. color: #333;
  186. line-height: 20px;
  187. height: 40px;
  188. overflow: hidden;
  189. text-overflow: ellipsis;
  190. display: -webkit-box;
  191. -webkit-line-clamp: 2;
  192. /*! autoprefixer: off */
  193. -webkit-box-orient: vertical;
  194. word-break: break-word;
  195. margin-top: 10px;
  196. ;
  197. }
  198. .price {
  199. font-size: 16px;
  200. font-family: PingFangSC-Semibold, PingFang SC;
  201. font-weight: 600;
  202. color: #FC1C00;
  203. line-height: 22px;
  204. margin: 5px 10px 10px;
  205. }
  206. }
  207. }
  208. }
  209. .platform_goods_detail{
  210. width: 100%;
  211. margin-top: 20px;
  212. .content{
  213. width: 1000px;
  214. .top_left{
  215. .main_img{
  216. width: 340px;
  217. height: 340px;
  218. border: 1px solid #eee;
  219. img{
  220. max-width: 100%;
  221. max-height: 100%;
  222. }
  223. }
  224. .small_img{
  225. margin-top: 10px;
  226. width: 293px;
  227. margin-left:25px;
  228. margin-bottom: 45px;
  229. :global{
  230. .slick-slide{
  231. width: 60px!important;
  232. }
  233. .slick-prev:before, .slick-next:before{
  234. color: #a3a3a3;
  235. }
  236. }
  237. .item{
  238. width: 50px !important;
  239. height: 50px;
  240. margin-left: 9px;
  241. border: 1px solid #eee;
  242. &:first-child{
  243. margin-left: 0;
  244. }
  245. img{
  246. max-width: 100%;
  247. max-height: 100%;
  248. }
  249. }
  250. }
  251. }
  252. .top_right{
  253. margin-left: 20px;
  254. width: 640px;
  255. .name{
  256. margin-top: 10px;
  257. font-size: 16px;
  258. font-family: PingFangSC-Semibold, PingFang SC;
  259. font-weight: 600;
  260. color: #404040;
  261. line-height: 25px;
  262. margin-bottom: 20px;
  263. }
  264. .desc{
  265. font-size: 14px;
  266. font-family: PingFangSC-Regular, PingFang SC;
  267. font-weight: 400;
  268. color: #404040;
  269. line-height: 20px;
  270. margin-bottom: 20px;
  271. }
  272. .spec{
  273. .price{
  274. width: 640px;
  275. height: 81px;
  276. background-repeat:no-repeat;
  277. background-size: cover;
  278. padding-left: 20px;
  279. .tip{
  280. font-size: 14px;
  281. font-family: PingFangSC-Regular, PingFang SC;
  282. font-weight: 400;
  283. color: #666666;
  284. line-height: 21px;
  285. }
  286. .price_detail{
  287. color: #ED3142;
  288. font-weight: 500;
  289. font-family: PingFangSC-Medium, PingFang SC;
  290. .unit{
  291. font-size: 18px;
  292. letter-spacing: 1px;
  293. }
  294. .number{
  295. font-size: 25px;
  296. }
  297. .from_to{
  298. font-size: 20px;
  299. margin: 0 6px;
  300. ;
  301. }
  302. }
  303. }
  304. .spec_detail{
  305. padding: 15px 15px 0 15px;
  306. width: 640px;
  307. border: 1px solid #EBEBEB;
  308. border-top: 0;
  309. margin-top: -1px;
  310. margin-bottom: 24px;
  311. .tip{
  312. width: 44px;
  313. height: 20px;
  314. font-size: 14px;
  315. font-family: PingFangSC-Regular, PingFang SC;
  316. font-weight: 400;
  317. color: #404040;
  318. line-height: 20px;
  319. flex-shrink: 0;
  320. margin-top: 11px;
  321. }
  322. .spec_item{
  323. height: 42px;
  324. background: #FFFFFF;
  325. border-radius: 2px;
  326. border: 1px solid #DFDFDF;
  327. padding: 0 10px;
  328. position: relative;
  329. flex-shrink: 0;
  330. margin-bottom: 15px;
  331. margin-left: 10px;
  332. cursor: pointer;
  333. .spec_name{
  334. height: 20px;
  335. font-size: 14px;
  336. font-family: PingFangSC-Regular, PingFang SC;
  337. font-weight: 400;
  338. color: #666666;
  339. line-height: 20px;
  340. }
  341. .spec_price{
  342. height: 20px;
  343. font-size: 14px;
  344. font-family: PingFangSC-Medium, PingFang SC;
  345. font-weight: 500;
  346. color: #333333;
  347. line-height: 20px;
  348. margin-left: 30px;
  349. }
  350. .selected_spec_item_icon{
  351. position: absolute;
  352. right: -1px;
  353. bottom: -1px;
  354. z-index: 2;
  355. line-height: 0;
  356. display: none;
  357. }
  358. }
  359. .selected_spec_item{
  360. border-color: @theme-color;
  361. display: flex !important;
  362. }
  363. }
  364. }
  365. .add_to_store{
  366. height: 40px;
  367. background: @theme-color;
  368. border-radius: 2px;
  369. padding: 0 18px;
  370. font-size: 15px;
  371. font-family: PingFangSC-Medium, PingFang SC;
  372. font-weight: 500;
  373. color: #FFF;
  374. line-height: 22px;
  375. }
  376. .add_to_storage{
  377. height: 40px;
  378. background: @theme-light4Color;
  379. border-radius: 2px;
  380. border: 1px solid @theme-light3Color;
  381. padding: 0 18px;
  382. font-size: 15px;
  383. font-family: PingFangSC-Medium, PingFang SC;
  384. font-weight: 500;
  385. color: @theme-color;
  386. line-height: 22px;
  387. margin-left: 13px;
  388. }
  389. }
  390. .body_title{
  391. width: 100%;
  392. height: 50px;
  393. background: #F8F8F8;
  394. border: 1px solid #E2E2E2;
  395. .con{
  396. width: 160px;
  397. height: 48px;
  398. background: @theme-color;
  399. font-size: 14px;
  400. font-family: PingFangSC-Medium, PingFang SC;
  401. font-weight: 500;
  402. color: #FFF;
  403. }
  404. }
  405. .body{
  406. width: 100%;
  407. min-height: 300px;
  408. }
  409. }
  410. }