index.less 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  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. width: 100%;
  239. white-space: nowrap;
  240. overflow: hidden;
  241. text-overflow: ellipsis;
  242. }
  243. .discountCon{
  244. margin-top: 16rpx;
  245. font-weight: 400;
  246. font-size: 24rpx;
  247. color: #FD4502;
  248. line-height: 32rpx;
  249. border-radius: 6rpx;
  250. border: 2rpx solid #FD4502;
  251. padding: 4rpx 8rpx;
  252. }
  253. }
  254. }
  255. .memberBox{
  256. margin: 48rpx 40rpx;
  257. background: #F5F6F7;
  258. border-radius: 20rpx;
  259. border: 3rpx solid transparent;
  260. &.showMemberInfoTip{
  261. border-color: #FD4502;
  262. }
  263. .memberCon{
  264. padding: 24rpx;
  265. display: flex;
  266. justify-content: space-between;
  267. align-items: center;
  268. .memberImg{
  269. width: 44rpx;
  270. height: 44rpx;
  271. }
  272. .info{
  273. flex-grow: 1;
  274. margin-left: 16rpx;
  275. font-weight: 600;
  276. font-size: 28rpx;
  277. color: #131415;
  278. line-height: 40rpx;
  279. }
  280. .chevronImg{
  281. flex-shrink: 0;
  282. width: 32rpx;
  283. height: 32rpx;
  284. }
  285. .memberInfoCon{
  286. overflow: hidden;
  287. }
  288. .infoCon {
  289. display: flex;
  290. align-items: center;
  291. font-weight: 600;
  292. font-size: 28rpx;
  293. color: #131415;
  294. line-height: 40rpx;
  295. .tip {
  296. width: 44rpx;
  297. height: 44rpx;
  298. }
  299. .name,
  300. .phone {
  301. margin-left: 16rpx;
  302. }
  303. }
  304. .schoolInfoCon{
  305. margin-top: 20rpx;
  306. display: flex;
  307. align-items: center;
  308. .schoolInfo{
  309. margin-right: 8rpx;
  310. border-radius: 4rpx;
  311. border: 1rpx solid rgba(15,179,96,0.5);
  312. padding: 2rpx 6rpx;
  313. font-weight: 400;
  314. font-size: 20rpx;
  315. color: #0FB360;
  316. line-height: 30rpx;
  317. flex-shrink: 0;
  318. }
  319. .schoolInfoDes{
  320. margin-right: 10rpx;
  321. font-weight: 400;
  322. font-size: 24rpx;
  323. color: #777777;
  324. line-height: 32rpx;
  325. white-space: nowrap;
  326. overflow: hidden;
  327. text-overflow: ellipsis;
  328. }
  329. }
  330. }
  331. }
  332. .btnSections {
  333. margin-top: 128rpx;
  334. padding: 0 40rpx;
  335. button {
  336. width: 100%;
  337. line-height: 88rpx;
  338. background: url("https://oss.dayaedu.com/ktyq/1738898417485.png") no-repeat;
  339. background-size: 100% 100%;
  340. font-weight: 500;
  341. font-size: 32rpx;
  342. color: #FFFFFF;
  343. padding-top: 0;
  344. padding-bottom: 0;
  345. border-radius: 78rpx;
  346. &[disabled][type=primary] {
  347. color: #fff;
  348. opacity: 0.7;
  349. }
  350. }
  351. }
  352. .goodsInfo {
  353. padding: 0 40rpx;
  354. max-height: 478rpx;
  355. overflow-x: hidden;
  356. overflow-y: auto;
  357. &::-webkit-scrollbar {
  358. display: none;
  359. }
  360. .desc {
  361. margin-top: 48rpx;
  362. font-weight: 600;
  363. font-size: 28rpx;
  364. line-height: 40rpx;
  365. color: #131415;
  366. &:first-child{
  367. margin-top: 0;
  368. }
  369. text{
  370. color: #FD4502;
  371. }
  372. }
  373. .goodsList {
  374. display: flex;
  375. flex-wrap: wrap;
  376. .goodsItem {
  377. margin-right: 24rpx;
  378. margin-top: 24rpx;
  379. padding: 10rpx 30rpx;
  380. background: #F2F2F2;
  381. border-radius: 12rpx;
  382. font-weight: 400;
  383. font-size: 28rpx;
  384. color: #444444;
  385. line-height: 40rpx;
  386. position: relative;
  387. border:2rpx solid transparent;
  388. &.instrumentsGoodsItem{
  389. display: flex;
  390. align-items: center;
  391. view{
  392. margin: 0 16rpx;
  393. width: 2rpx;
  394. height: 32rpx;
  395. background: rgba(0,0,0,0.3);
  396. }
  397. }
  398. &.nosale{
  399. color: #BBBBBB;
  400. }
  401. &.selected{
  402. background: #E6FADB;
  403. font-weight: 600;
  404. color: #0AAF5F;
  405. border-color: #51BA35;
  406. border-radius: 12rpx;
  407. view{
  408. background: #0AAF5F;
  409. }
  410. }
  411. .iconSale{
  412. position: absolute;
  413. width: 56rpx;
  414. height: 28rpx;
  415. right: -14rpx;
  416. top: -14rpx;
  417. }
  418. }
  419. }
  420. }
  421. }
  422. }
  423. .showMoreContainer {
  424. position: fixed;
  425. bottom: 0;
  426. width: 100%;
  427. left: 0;
  428. right: 0;
  429. height: 378rpx;
  430. background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, #FFFFFF 100%);
  431. display: flex;
  432. justify-content: center;
  433. align-items: flex-end;
  434. pointer-events: none;
  435. .iconUpScroll {
  436. width: 80rpx;
  437. height: 80rpx;
  438. margin-bottom: 60rpx;
  439. animation: breathe 2s infinite cubic-bezier(0, 0.21, 0, 0.88);
  440. // transition: all cubic-bezier(0, 0.21, 0, 0.88);
  441. }
  442. @keyframes breathe {
  443. 0% {
  444. opacity: 1;
  445. transform: translateY(0rpx);
  446. }
  447. 75%{
  448. opacity: 1;
  449. }
  450. 100% {
  451. opacity: 0;
  452. transform: translateY(-50rpx);
  453. }
  454. }
  455. }