index.wxss 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. page {
  2. background: #F5F5F5;
  3. background: #F5F5F5;
  4. }
  5. .container {
  6. padding: 40rpx 30rpx;
  7. background: #F5F5F5;
  8. margin-top: -10px;
  9. border-radius: 10px 10px 0px 0px;
  10. }
  11. .container::-webkit-scrollbar {
  12. display: none;
  13. }
  14. .linear-mask {
  15. position: fixed;
  16. bottom: 0;
  17. right: 0;
  18. width: 100%;
  19. height: 50%;
  20. background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  21. pointer-events: none;
  22. opacity: 1;
  23. transition: ease all 0.3s;
  24. z-index: 2;
  25. }
  26. .mask-hidden {
  27. opacity: 0;
  28. }
  29. .mall-logo {
  30. position: fixed;
  31. bottom: 15px;
  32. right: 25px;
  33. width: 80px;
  34. height: auto;
  35. pointer-events: none;
  36. z-index: 999;
  37. }
  38. .search-con {
  39. position: fixed;
  40. bottom: 0;
  41. right: 0;
  42. width: 100%;
  43. height: 100%;
  44. background: rgba(255, 255, 255, 0.8);
  45. z-index: 9999;
  46. }
  47. .no-record {
  48. width: calc(100% - 80rpx);
  49. margin: 40rpx 0 0 60rpx;
  50. }
  51. .sc-con {
  52. width: calc(100% - 80rpx);
  53. line-height: 60rpx;
  54. height: 60rpx;
  55. border: 1px solid #808080;
  56. border-radius: 30rpx;
  57. margin: 20rpx 0 0 40rpx;
  58. background: #fff;
  59. position: relative;
  60. }
  61. .sc-con input {
  62. width: 90%;
  63. background: none;
  64. border: none;
  65. padding-left: 30rpx;
  66. font-size: 24rpx;
  67. color: #000;
  68. line-height: 40rpx;
  69. height: 56rpx;
  70. }
  71. .sc-con image {
  72. width: 40rpx;
  73. height: 40rpx;
  74. display: inline-block;
  75. position: absolute;
  76. top: 50%;
  77. transform: translateY(-50%);
  78. right: 20rpx;
  79. }
  80. .header {
  81. background-color: #fff;
  82. /* padding-left: 46rpx;
  83. padding-right: 46rpx; */
  84. margin-top: 0;
  85. padding: 12rpx 0 22rpx;
  86. left: 30rpx;
  87. }
  88. .fixed {
  89. position: fixed;
  90. padding-left: 30rpx;
  91. padding-right: 30rpx;
  92. left: 0;
  93. width: 100vw;
  94. z-index: 999;
  95. }
  96. .header .ul {
  97. display: flex;
  98. align-items: baseline;
  99. overflow-x: auto;
  100. overflow-y: hidden
  101. }
  102. .header .ul .li {
  103. flex: 0 0 auto;
  104. text-align: center;
  105. color: #131D34;
  106. font-size: 30rpx;
  107. font-weight: bold;
  108. padding: 10rpx;
  109. }
  110. .header .ul .li:not(:last-child) {
  111. margin-right: 42rpx;
  112. }
  113. .header .ul .li image {
  114. width: 80rpx;
  115. height: 80rpx;
  116. margin-bottom: 14rpx;
  117. display: block;
  118. }
  119. .header .ul .active {
  120. font-size: 36rpx;
  121. position: relative;
  122. }
  123. .header .ul .active text {
  124. z-index: 2;
  125. position: relative;
  126. }
  127. .header .ul .active::after {
  128. content: '';
  129. position: absolute;
  130. bottom: 10rpx;
  131. left: 0;
  132. right: 0;
  133. height: 20rpx;
  134. background: linear-gradient(90deg, #ED5D18 0%, rgba(237, 93, 24, 0) 100%);
  135. border-radius: 10px;
  136. z-index: 1;
  137. }
  138. .search {
  139. /* margin: 0 46rpx; */
  140. position: relative;
  141. /* box-shadow: 0 2px 2px #fff; */
  142. z-index: 99;
  143. height: 80rpx;
  144. border: 1px solid rgba(0, 0, 0, 0.1);
  145. border-radius: 4px;
  146. background: #fff;
  147. }
  148. .search view:not(.clear) {
  149. background: none;
  150. width: 80%;
  151. border: none;
  152. padding-left: 20rpx;
  153. font-size: 24rpx;
  154. color: #fff;
  155. line-height: 24rpx;
  156. vertical-align: middle;
  157. }
  158. .search input {
  159. box-sizing: border-box;
  160. color: rgba(0, 0, 0, 0.3);
  161. height: 100%;
  162. width: 100%;
  163. padding: 0 70rpx 0 70rpx;
  164. position: relative;
  165. z-index: 999;
  166. border-radius: 4px;
  167. font-size: 14px;
  168. border: none;
  169. }
  170. .search .icon {
  171. width: 28rpx;
  172. height: 28rpx;
  173. display: inline-block;
  174. position: absolute;
  175. top: 50%;
  176. transform: translateY(-50%);
  177. left: 28rpx;
  178. }
  179. .clear {
  180. width: 30px;
  181. height: 30px;
  182. display: inline-block;
  183. position: absolute;
  184. top: 50%;
  185. transform: translateY(-50%);
  186. right: 4px;
  187. padding: 10px;
  188. z-index: 9999999;
  189. }
  190. .clear image {
  191. display: block;
  192. width: 100%;
  193. height: 100%;
  194. }
  195. .body {
  196. z-index: 11;
  197. position: relative;
  198. padding: 0 0 22rpx;
  199. overflow: hidden;
  200. width: 100%;
  201. font-size: 0;
  202. }
  203. .body::-webkit-scrollbar {
  204. display: none
  205. }
  206. .body .ul {
  207. position: relative;
  208. width: 100%;
  209. font-size: 0;
  210. z-index: 1;
  211. overflow: hidden;
  212. }
  213. .body .li {
  214. padding: 20rpx 30rpx;
  215. margin-bottom: 20rpx;
  216. background: #FFFFFF;
  217. box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
  218. border-radius: 4px;
  219. display: flex;
  220. }
  221. .ctp {
  222. flex: none;
  223. position: relative;
  224. border-radius: 4px;
  225. overflow: hidden;
  226. }
  227. .ctp image:not(.icon){
  228. width: 160rpx;
  229. height: 160rpx;
  230. }
  231. .ctp .icon {
  232. right: 6px;
  233. bottom: 6px;
  234. width: 20px;
  235. height: 20px;
  236. position: absolute;
  237. }
  238. .body .li .count {
  239. position: absolute;
  240. width: 90rpx;
  241. height: 28rpx;
  242. background: rgba(0, 0, 0, 0.3);
  243. opacity: 1;
  244. border-radius: 14rpx;
  245. right: 22rpx;
  246. top: 288rpx;
  247. font-size: 18rpx;
  248. font-weight: 400;
  249. /* line-height: 28rpx; */
  250. color: #fff;
  251. text-align: center;
  252. padding: 7rpx;
  253. padding-left: 31rpx;
  254. line-height: 20rpx;
  255. overflow: hidden;
  256. box-sizing: border-box;
  257. }
  258. .body .li .count image {
  259. position: absolute;
  260. left: 0;
  261. top: 0;
  262. width: 24rpx;
  263. height: 14rpx;
  264. left: 7rpx;
  265. top: 8rpx;
  266. }
  267. .item-content {
  268. padding-left: 20rpx;
  269. display: flex;
  270. flex-direction: column;
  271. justify-content: space-around;
  272. flex: none;
  273. width: calc(100% - 180rpx);
  274. }
  275. .body .li .b-title {
  276. overflow:hidden;
  277. text-overflow:ellipsis;
  278. white-space:nowrap;
  279. }
  280. .body .li .b-title text:nth-child(1) {
  281. font-size: 16px;
  282. font-weight: 500;
  283. color: #333333;
  284. line-height: 22px;
  285. text-overflow:ellipsis;
  286. white-space:nowrap;
  287. display: block;
  288. overflow:hidden;
  289. text-overflow:ellipsis;
  290. white-space:nowrap;
  291. }
  292. .body .li .b-title view:nth-child(2) {
  293. line-height: 20px;
  294. overflow:hidden;
  295. text-overflow:ellipsis;
  296. display: block;
  297. white-space:nowrap;
  298. display: flex;
  299. align-items: center;
  300. overflow:hidden;
  301. }
  302. .body .li .b-title view:nth-child(2) text {
  303. overflow: hidden;
  304. text-overflow: ellipsis;
  305. font-size: 14px;
  306. font-weight: 400;
  307. color: #646566;
  308. white-space: nowrap;
  309. display: block;
  310. }
  311. .body .li .b-title view image {
  312. height: 14px;
  313. width: 14px;
  314. flex: none;
  315. margin-right: 5px;
  316. }
  317. .body .li .b-info {
  318. margin-top: 16rpx;
  319. display: flex;
  320. align-items: center;
  321. justify-content: space-between;
  322. }
  323. .body .li .b-info text {
  324. font-size: 11px;
  325. font-family: PingFangSC-Regular, PingFang SC;
  326. font-weight: 400;
  327. color: #969799;
  328. line-height: 16px;
  329. display: block;
  330. overflow: hidden;
  331. text-overflow: ellipsis;
  332. white-space: nowrap;
  333. }
  334. .loading image {
  335. content: '';
  336. position: absolute;
  337. left: 50%;
  338. top: 50%;
  339. transform: translate(-50%, -50%);
  340. width: 15px;
  341. height: 15px;
  342. box-sizing: border-box;
  343. animation: example 1s linear infinite;
  344. }
  345. /* 动画代码 */
  346. @keyframes example {
  347. from {transform: translate(-50%, -50%) rotateZ(0);}
  348. to {transform: translate(-50%, -50%) rotateZ(360deg);}
  349. }
  350. .item-content {
  351. flex: 1;
  352. }
  353. .loadText {
  354. position: relative;
  355. height: 80rpx;
  356. font-size: 12px;
  357. color: rgb(160,160,160);
  358. text-align: center;
  359. margin-top: 20px;
  360. }
  361. .body .li .b-info view {
  362. /* width: 50%; */
  363. }
  364. .body .li .b-info view:first-child text{
  365. text-align: left;
  366. }
  367. .body .li .b-info view:last-child text{
  368. text-align: right;
  369. }
  370. .body .li .b-info text.xxxx {
  371. color: #FF7701;
  372. }
  373. .body .li .b-info text:nth-child(2) {
  374. margin-left: 12rpx;
  375. }
  376. .unbrand {
  377. margin-top: 180rpx;
  378. text-align: center;
  379. }
  380. .unbrand image {
  381. display: inline-block;
  382. width: 250rpx;
  383. height: 274rpx;
  384. }
  385. .unbrand .text {
  386. color: #666C7D;
  387. font-size: 30rpx;
  388. margin-top: 40rpx;
  389. }
  390. .banner {
  391. margin: 16rpx 0 38rpx;
  392. position: relative;
  393. }
  394. .banner swiper {
  395. height: 296rpx;
  396. }
  397. .banner .swiper-item image,
  398. .banner .swiper-item {
  399. width: 100%;
  400. height: 100%;
  401. }
  402. .banner .swiper-item {
  403. border-radius: 4px;
  404. overflow: hidden
  405. }
  406. .dots {
  407. position: absolute;
  408. bottom: 8rpx;
  409. left: 50%;
  410. transform: translateX(-50%);
  411. z-index: 2;
  412. }
  413. .dots view {
  414. display: inline-block;
  415. width: 4px;
  416. height: 4px;
  417. background: #FFFFFF;
  418. border-radius: 2px;
  419. opacity: 0.5;
  420. margin: 0 4rpx
  421. }
  422. .dots view.dotactive {
  423. width: 8px;
  424. opacity: 1;
  425. }
  426. .hotcateg {
  427. margin-bottom: 40rpx;
  428. }
  429. .hotcateg .title {
  430. font-size: 30rpx;
  431. font-weight: bold;
  432. line-height: 44rpx;
  433. color: #131D34;
  434. margin-bottom: 14rpx;
  435. padding: 0 46rpx;
  436. }
  437. .hotcateg .swiper-item {
  438. margin: 0 10rpx;
  439. position: relative;
  440. border-radius: 4px;
  441. overflow: hidden;
  442. width: calc(100% - 20rpx);
  443. height: 100%;
  444. }
  445. .hotcateg .swiper-item image {
  446. width: 100%;
  447. height: 100%;
  448. }
  449. .hotcateg .swiper-item view {
  450. position: absolute;
  451. bottom: 0;
  452. left: 0;
  453. right: 0;
  454. padding: 8rpx 24rpx;
  455. font-size: 22rpx;
  456. color: #fff;
  457. background-color: rgba(0, 0, 0, 0.4);
  458. text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  459. }
  460. .bgimg {
  461. position: fixed;
  462. left: 0;
  463. top: 0;
  464. width: 100vw;
  465. height: 690rpx;
  466. z-index: -9;
  467. }
  468. .bgimg image {
  469. width: 100%;
  470. height: 100%;
  471. }
  472. .page-title {
  473. position: fixed;
  474. box-sizing: content-box;
  475. padding-right: 32rpx;
  476. padding-left: 30rpx;
  477. font-size: 32rpx;
  478. left: 0;
  479. top: 0;
  480. width: 100vw;
  481. overflow: hidden;
  482. display: flex;
  483. align-items: center;
  484. z-index: 99;
  485. background-size: 100vw 690rpx;
  486. background-position: 0 0;
  487. }
  488. .page-title navigator {
  489. display: block;
  490. max-width: 65%;
  491. display: flex;
  492. align-items: center;
  493. }
  494. .page-title navigator text {
  495. display: block;
  496. overflow:hidden;
  497. text-overflow:ellipsis;
  498. white-space:nowrap;
  499. }
  500. .search-layer {
  501. position: fixed;
  502. left: 0;
  503. right: 0;
  504. height: 69px;
  505. z-index: 99;
  506. padding: 10px 15px 30px;
  507. background-size: 100vw 690rpx;
  508. }
  509. .page-title image {
  510. flex: 0 0 auto;
  511. background: rgb(180, 180, 180);
  512. width: 30px;
  513. height: 30px;
  514. border-radius: 50%;
  515. margin-right: 10rpx;
  516. vertical-align: top;
  517. }
  518. .page-title text {
  519. position: relative;
  520. color: #fff;
  521. z-index: 1;
  522. display: inline-block;
  523. font-size: 18px;
  524. font-family: PingFangSC-Semibold, PingFang SC;
  525. font-weight: 600;
  526. color: #FFFFFF;
  527. line-height: 25px;
  528. }
  529. .zxczxc {
  530. position: absolute;
  531. left: 0;
  532. width: 100%;
  533. display: flex;
  534. flex-direction: column;
  535. }