index.less 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. /**index.less**/
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #F5F6F7;
  7. }
  8. .scrollarea {
  9. flex: 1;
  10. overflow-y: hidden;
  11. }
  12. .container {
  13. position: relative;
  14. .slider-count {
  15. position: absolute;
  16. top: 678rpx;
  17. right: 0;
  18. background: rgba(0,0,0,0.4);
  19. border-radius: 200rpx 0rpx 0rpx 200rpx;
  20. font-weight: 600;
  21. font-size: 28rpx;
  22. color: #FFFFFF;
  23. line-height: 40rpx;
  24. text-align: center;
  25. padding: 4rpx 20rpx 4rpx 28rpx ;
  26. z-index: 1;
  27. }
  28. swiper {
  29. height: 750rpx;
  30. }
  31. .swiper-item {
  32. width: 100%;
  33. height: 100%;
  34. image {
  35. width: 100%;
  36. height: 100%;
  37. }
  38. }
  39. .demo-text-1 {
  40. background-color: red;
  41. }
  42. .demo-text-2 {
  43. background-color: black;
  44. }
  45. .demo-text-3 {
  46. background-color: gray;
  47. }
  48. }
  49. .goodsSection {
  50. }
  51. .goodsIntro {
  52. background: #FFFFFF;
  53. // border-radius: 20rpx;
  54. overflow: hidden;
  55. // margin: 16rpx 0 0;
  56. .title {
  57. font-weight: 600;
  58. font-size: 32rpx;
  59. color: #131415;
  60. line-height: 44rpx;
  61. padding: 28rpx 24rpx;
  62. display: flex;
  63. align-items: center;
  64. justify-content: center;
  65. .before, .after {
  66. content: '';
  67. width: 68rpx;
  68. height: 2rpx;
  69. border-radius: 2rpx;
  70. opacity: 0.3;
  71. display: inline-block;
  72. }
  73. .before {
  74. background: linear-gradient( 90deg, rgba(0,0,0,0) 0%, #000000 100%);
  75. margin-right: 24rpx;
  76. }
  77. .after {
  78. background: linear-gradient( 270deg, rgba(0,0,0,0) 0%, #000000 100%);
  79. margin-left: 24rpx;
  80. }
  81. }
  82. .quick-btn {
  83. padding: 0 20rpx 30rpx;
  84. font-size: 28rpx;
  85. color: #999999;
  86. line-height: 40rpx;
  87. display: flex;
  88. view {
  89. padding: 8rpx 24rpx;
  90. margin-right: 12rpx;
  91. }
  92. .active {
  93. background: #FFDF9E;
  94. border-radius: 28rpx;
  95. font-weight: 600;
  96. color: #131415;
  97. }
  98. }
  99. .images {
  100. font-size: 0;
  101. image {
  102. display: block;
  103. width: 100%;
  104. }
  105. }
  106. }
  107. .bottom-sectionBox{
  108. width: 100%;
  109. background-color: #E0F5DA;
  110. }
  111. .bottom-section {
  112. width: 100%;
  113. background: #FFFFFF;
  114. box-shadow: 0rpx -2rpx 32rpx 0rpx rgba(0,0,0,0.1);
  115. border-radius: 32rpx 32rpx 0rpx 0rpx;
  116. padding: 34rpx 40rpx 56rpx 48rpx;
  117. display: flex;
  118. align-items: center;
  119. box-sizing: border-box;
  120. .orders {
  121. display: flex;
  122. flex-direction: column;
  123. image {
  124. width: 48rpx;
  125. height: 48rpx;
  126. }
  127. text {
  128. margin-top: 2px;
  129. font-weight: 400;
  130. font-size: 22rpx;
  131. color: #131415;
  132. line-height: 32rpx;
  133. }
  134. }
  135. .btnSection {
  136. margin-left: 48rpx;
  137. flex-grow: 1;
  138. font-weight: 600;
  139. font-size: 32rpx;
  140. color: #FFFFFF;
  141. line-height: 88rpx;
  142. text-align: center;
  143. background: url("https://oss.dayaedu.com/ktyq/1738898417485.png") no-repeat;
  144. background-size: 100% 100%;
  145. border-radius: 78rpx;
  146. }
  147. }
  148. .hide {
  149. display: none !important;
  150. }
  151. // 'demo-text-1', 'demo-text-2', 'demo-text-3'
  152. .popup-section {
  153. .popup-mask {
  154. position: fixed;
  155. top: 0;
  156. left: 0;
  157. right: 0;
  158. bottom: 0;
  159. background-color: rgba(0,0,0,0.6);
  160. z-index: 9;
  161. }
  162. .popup-container {
  163. position: fixed;
  164. bottom: 0;
  165. left: 0;
  166. right: 0;
  167. z-index: 10;
  168. width: 100%;
  169. background: #FFFFFF;
  170. border-radius: 32rpx 32rpx 0rpx 0rpx;
  171. padding: 40rpx 0 58rpx;
  172. box-sizing: border-box;
  173. .iconClose {
  174. position: absolute;
  175. right: 40rpx;
  176. top: 40rpx;
  177. width: 40rpx;
  178. height: 40rpx;
  179. }
  180. .product-section {
  181. display: flex;
  182. padding: 0 40rpx;
  183. .product-img {
  184. width: 160rpx;
  185. height: 160rpx;
  186. flex-shrink: 0;
  187. margin-right: 32rpx;
  188. border-radius: 6px;
  189. overflow: hidden;
  190. image {
  191. width: 100%;
  192. height: 100%;
  193. }
  194. }
  195. .product-left {
  196. display: flex;
  197. flex-direction: column;
  198. align-items: flex-start;
  199. overflow: hidden;
  200. .price-s {
  201. display: flex;
  202. align-items: center;
  203. .priceImg{
  204. margin-right: 8rpx;
  205. width: 96rpx;
  206. height: 40rpx;
  207. }
  208. .currentPrice {
  209. font-weight: bold;
  210. color: #000000;
  211. font-family: DINAlternate, DINAlternate;
  212. line-height: 1;
  213. .stuff {
  214. font-size: 32rpx;
  215. }
  216. .numberDisplay--integer{
  217. line-height: 60rpx;
  218. font-size: 52rpx;
  219. }
  220. .numberDisplay--decimal{
  221. font-size: 32rpx;
  222. }
  223. }
  224. .originPrice {
  225. margin-left: 8rpx;
  226. font-weight: 400;
  227. font-size: 28rpx;
  228. color: #AAAAAA;
  229. text-decoration: line-through;
  230. }
  231. }
  232. .current-s {
  233. margin-top: 8rpx;
  234. font-weight: 400;
  235. font-size: 26rpx;
  236. color: #777777;
  237. line-height: 36rpx;
  238. white-space: nowrap;
  239. overflow: hidden;
  240. text-overflow: ellipsis;
  241. }
  242. .discountCon{
  243. margin-top: 16rpx;
  244. font-weight: 400;
  245. font-size: 24rpx;
  246. color: #FD4502;
  247. line-height: 32rpx;
  248. border-radius: 6rpx;
  249. border: 2rpx solid #FD4502;
  250. padding: 4rpx 8rpx;
  251. }
  252. }
  253. }
  254. .memberBox{
  255. margin: 48rpx 40rpx;
  256. background: #F5F6F7;
  257. border-radius: 20rpx;
  258. border: 3rpx solid transparent;
  259. &.showMemberInfoTip{
  260. border-color: #FD4502;
  261. }
  262. .memberCon{
  263. padding: 24rpx;
  264. display: flex;
  265. justify-content: space-between;
  266. align-items: center;
  267. .memberImg{
  268. width: 44rpx;
  269. height: 44rpx;
  270. }
  271. .info{
  272. flex-grow: 1;
  273. margin-left: 16rpx;
  274. font-weight: 600;
  275. font-size: 28rpx;
  276. color: #131415;
  277. line-height: 40rpx;
  278. }
  279. .chevronImg{
  280. flex-shrink: 0;
  281. width: 32rpx;
  282. height: 32rpx;
  283. }
  284. .memberInfoCon{
  285. overflow: hidden;
  286. }
  287. .infoCon {
  288. display: flex;
  289. align-items: center;
  290. font-weight: 600;
  291. font-size: 28rpx;
  292. color: #131415;
  293. line-height: 40rpx;
  294. .tip {
  295. width: 44rpx;
  296. height: 44rpx;
  297. }
  298. .name,
  299. .phone {
  300. margin-left: 16rpx;
  301. }
  302. }
  303. .schoolInfoCon{
  304. margin-top: 20rpx;
  305. display: flex;
  306. align-items: center;
  307. .schoolInfo{
  308. margin-right: 8rpx;
  309. border-radius: 4rpx;
  310. border: 1rpx solid rgba(15,179,96,0.5);
  311. padding: 2rpx 6rpx;
  312. font-weight: 400;
  313. font-size: 20rpx;
  314. color: #0FB360;
  315. line-height: 30rpx;
  316. flex-shrink: 0;
  317. }
  318. .schoolInfoDes{
  319. margin-right: 10rpx;
  320. font-weight: 400;
  321. font-size: 24rpx;
  322. color: #777777;
  323. line-height: 32rpx;
  324. white-space: nowrap;
  325. overflow: hidden;
  326. text-overflow: ellipsis;
  327. }
  328. }
  329. }
  330. }
  331. .btnSections {
  332. margin-top: 128rpx;
  333. padding: 0 40rpx;
  334. button {
  335. width: 100%;
  336. line-height: 88rpx;
  337. background: url("https://oss.dayaedu.com/ktyq/1738898417485.png") no-repeat;
  338. background-size: 100% 100%;
  339. font-weight: 500;
  340. font-size: 32rpx;
  341. color: #FFFFFF;
  342. padding-top: 0;
  343. padding-bottom: 0;
  344. border-radius: 78rpx;
  345. &[disabled][type=primary] {
  346. color: #fff;
  347. opacity: 0.7;
  348. }
  349. }
  350. }
  351. .goodsInfo {
  352. padding: 0 40rpx;
  353. max-height: 478rpx;
  354. overflow-x: hidden;
  355. overflow-y: auto;
  356. &::-webkit-scrollbar {
  357. display: none;
  358. }
  359. .desc {
  360. margin-top: 48rpx;
  361. font-weight: 600;
  362. font-size: 28rpx;
  363. line-height: 40rpx;
  364. color: #131415;
  365. &:first-child{
  366. margin-top: 0;
  367. }
  368. text{
  369. color: #FD4502;
  370. }
  371. }
  372. .goodsList {
  373. display: flex;
  374. flex-wrap: wrap;
  375. .goodsItem {
  376. margin-right: 24rpx;
  377. margin-top: 24rpx;
  378. padding: 10rpx 30rpx;
  379. background: #F2F2F2;
  380. border-radius: 12rpx;
  381. font-weight: 400;
  382. font-size: 28rpx;
  383. color: #444444;
  384. line-height: 40rpx;
  385. position: relative;
  386. border:2rpx solid transparent;
  387. &.instrumentsGoodsItem{
  388. display: flex;
  389. align-items: center;
  390. view{
  391. margin: 0 16rpx;
  392. width: 2rpx;
  393. height: 32rpx;
  394. background: rgba(0,0,0,0.3);
  395. }
  396. }
  397. &.nosale{
  398. color: #BBBBBB;
  399. }
  400. &.selected{
  401. background: #E6FADB;
  402. font-weight: 600;
  403. color: #0AAF5F;
  404. border-color: #51BA35;
  405. border-radius: 12rpx;
  406. view{
  407. background: #0AAF5F;
  408. }
  409. }
  410. .iconSale{
  411. position: absolute;
  412. width: 56rpx;
  413. height: 28rpx;
  414. right: -14rpx;
  415. top: -14rpx;
  416. }
  417. }
  418. }
  419. }
  420. }
  421. }
  422. .showMoreContainer {
  423. position: fixed;
  424. bottom: 0;
  425. width: 100%;
  426. left: 0;
  427. right: 0;
  428. height: 378rpx;
  429. background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, #FFFFFF 100%);
  430. display: flex;
  431. justify-content: center;
  432. align-items: flex-end;
  433. pointer-events: none;
  434. .iconUpScroll {
  435. width: 80rpx;
  436. height: 80rpx;
  437. margin-bottom: 60rpx;
  438. animation: breathe 2s infinite cubic-bezier(0, 0.21, 0, 0.88);
  439. // transition: all cubic-bezier(0, 0.21, 0, 0.88);
  440. }
  441. @keyframes breathe {
  442. 0% {
  443. opacity: 1;
  444. transform: translateY(0rpx);
  445. }
  446. 75%{
  447. opacity: 1;
  448. }
  449. 100% {
  450. opacity: 0;
  451. transform: translateY(-50rpx);
  452. }
  453. }
  454. }