search.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. .sort-active {
  2. border: 1px solid $light-color;
  3. color: $light-color;
  4. background: $jd-light-color !important;
  5. }
  6. .oldKeyList {
  7. display: flex;
  8. flex-wrap: wrap;
  9. padding: 20rpx 3%;
  10. > .oldKeyItem {
  11. padding: 4rpx 24rpx;
  12. background: #f0f2f5;
  13. margin-right: 20rpx;
  14. max-width: 200rpx;
  15. border-radius: 100px;
  16. font-size: 24rpx;
  17. overflow: hidden;
  18. text-overflow: ellipsis;
  19. white-space: nowrap;
  20. margin-bottom: 20rpx;
  21. }
  22. }
  23. .promotion {
  24. margin-top: 4rpx;
  25. display: flex;
  26. div {
  27. span {
  28. font-size: 24rpx;
  29. color: $light-color;
  30. margin-right: 10rpx;
  31. padding: 0 4rpx;
  32. border-radius: 2rpx;
  33. }
  34. }
  35. }
  36. /deep/ .u-row {
  37. // #ifdef MP-WEIXIN
  38. padding: 0 5%;
  39. // #endif
  40. }
  41. .status_bar {
  42. height: var(--status-bar-height);
  43. background: #fff !important;
  44. width: 100%;
  45. }
  46. page {
  47. background-color: #fff !important;
  48. }
  49. .sort-box {
  50. width: 100%;
  51. height: 100%;
  52. position: relative;
  53. background: #f7f7f7;
  54. .sort-list {
  55. margin: 20rpx 0;
  56. background: #fff;
  57. border-radius: 20rpx;
  58. padding: 30rpx;
  59. > .sort-item {
  60. > .sort-title {
  61. font-size: 26rpx;
  62. font-weight: bold;
  63. }
  64. }
  65. }
  66. }
  67. .null-view {
  68. height: 140rpx;
  69. }
  70. .sort-btn {
  71. display: flex;
  72. position: fixed;
  73. bottom: 0;
  74. border-top: 1px solid #f7f7f7;
  75. height: 100rpx;
  76. left: 0;
  77. width: 100%;
  78. background: #fff;
  79. align-items: center;
  80. > view {
  81. width: 50%;
  82. height: 80rpx;
  83. line-height: 80rpx;
  84. text-align: center;
  85. margin: 0 20rpx;
  86. border-radius: 1000px;
  87. }
  88. > .sort-btn-repick {
  89. border: 1px solid #ededed;
  90. }
  91. > .sort-btn-confim {
  92. color: #fff;
  93. background-image: linear-gradient(90deg, #ff6b35, #ff9f28, #ffcc03);
  94. }
  95. }
  96. .uinput {
  97. width: 50% !important;
  98. > .sort-radius {
  99. height: 70rpx;
  100. line-height: 70rpx;
  101. font-size: 24rpx;
  102. }
  103. /deep/ .uni-input-input {
  104. font-size: 24rpx;
  105. }
  106. }
  107. .sort-radius {
  108. margin: 0 12rpx;
  109. background: #f7f7f7;
  110. height: 65rpx;
  111. display: flex;
  112. flex-direction: column;
  113. align-items: center;
  114. justify-content: center;
  115. border-radius: 1000px;
  116. font-size: 24rpx;
  117. }
  118. .flex {
  119. margin: 30rpx 0;
  120. flex-wrap: wrap;
  121. align-items: center;
  122. > .sort-brand-item {
  123. width: 33%;
  124. text-align: center;
  125. margin-bottom: 20rpx;
  126. }
  127. }
  128. .scoll-page {
  129. overflow: auto;
  130. }
  131. .content {
  132. background-color: $bg-color;
  133. height: 100vh;
  134. overflow: hidden;
  135. }
  136. .storeSellerBox {
  137. // #ifndef MP-WEIXIN
  138. padding: 16rpx !important;
  139. // #endif
  140. }
  141. .goodsClass {
  142. padding: 0 20rpx;
  143. /deep/ .u-row {
  144. }
  145. }
  146. .index-nav-arrow:last-child {
  147. margin-top: -22rpx;
  148. }
  149. .img {
  150. width: 26rpx;
  151. height: 26rpx;
  152. }
  153. .goodsRow {
  154. /deep/ .u-row {
  155. // #ifdef MP-WEIXIN
  156. padding: 0%;
  157. background: #fff;
  158. // padding: 16rpx;
  159. border-radius: 0.4em;
  160. margin: 0 !important;
  161. // #endif
  162. }
  163. background: #fff;
  164. border-radius: 0.4em;
  165. margin: 20rpx 0;
  166. // #ifdef MP-WEIXIN
  167. margin: 10rpx 0;
  168. // #endif
  169. padding: 0 16rpx;
  170. width: 100%;
  171. }
  172. .add1 {
  173. background: #fff;
  174. padding: 30rpx 0;
  175. }
  176. .oldKeyRow {
  177. background: #fff;
  178. padding: 34rpx 3%;
  179. border-bottom: 1px solid #eeeeee;
  180. }
  181. .logimg {
  182. width: 40rpx;
  183. height: 40rpx;
  184. vertical-align: middle;
  185. }
  186. .clamp3 {
  187. padding-top: 30rpx;
  188. margin-bottom: 10rpx;
  189. font-size: 28rpx;
  190. color: #333333;
  191. font-weight: 400;
  192. display: -webkit-box;
  193. line-height: 40rpx;
  194. -webkit-box-orient: vertical;
  195. -webkit-line-clamp: 2 !important;
  196. overflow: hidden;
  197. > span {
  198. line-height: 1.5;
  199. }
  200. }
  201. .switchType1 {
  202. width: 50%;
  203. overflow: hidden;
  204. text-align: center;
  205. > .img {
  206. width: 182rpx;
  207. height: 200rpx;
  208. }
  209. }
  210. .imgGoods {
  211. width: 182rpx;
  212. height: 200rpx;
  213. }
  214. view {
  215. display: block;
  216. }
  217. .storeSellerName {
  218. color: #666;
  219. overflow: hidden;
  220. > div {
  221. float: left;
  222. }
  223. > span {
  224. float: right;
  225. }
  226. }
  227. .countConfig {
  228. padding: 10rpx 0;
  229. color: #666;
  230. display: flex;
  231. font-size: 24rpx;
  232. justify-content: space-between;
  233. }
  234. .search-box {
  235. z-index: 99;
  236. width: 100%;
  237. background: $light-color;
  238. padding: 20rpx 2.5%;
  239. display: flex;
  240. justify-content: space-between;
  241. position: sticky;
  242. top: 0;
  243. }
  244. .search-box .mSearch-input-box {
  245. width: 100%;
  246. }
  247. .search-box .input-box {
  248. width: 85%;
  249. flex-shrink: 1;
  250. display: flex;
  251. justify-content: center;
  252. align-items: center;
  253. }
  254. .search-box .search-btn {
  255. width: 15%;
  256. margin: 0 0 0 2%;
  257. display: flex;
  258. justify-content: center;
  259. align-items: center;
  260. flex-shrink: 0;
  261. font-size: 28rpx;
  262. color: #fff;
  263. background: linear-gradient(to right, #ff9801, #ff570a);
  264. border-radius: 60rpx;
  265. }
  266. .search-box .input-box > input {
  267. width: 100%;
  268. height: 60rpx;
  269. font-size: 32rpx;
  270. border: 0;
  271. border-radius: 60rpx;
  272. -webkit-appearance: none;
  273. -moz-appearance: none;
  274. appearance: none;
  275. padding: 0 3%;
  276. margin: 0;
  277. background-color: #ffffff;
  278. }
  279. .uni-scroll-view-content {
  280. background: #ededed !important;
  281. }
  282. .placeholder-class {
  283. color: #9e9e9e;
  284. }
  285. .search-keyword {
  286. width: 100%;
  287. background-color: #ededed;
  288. }
  289. .keyword-list-box {
  290. height: calc(100vh - 110rpx);
  291. padding-top: 10rpx;
  292. border-radius: 20rpx 20rpx 0 0;
  293. background-color: #fff;
  294. }
  295. .keyword-entry-tap {
  296. background-color: #eee;
  297. }
  298. .keyword-entry {
  299. width: 94%;
  300. height: 80rpx;
  301. margin: 0 3%;
  302. font-size: 30rpx;
  303. color: #333;
  304. display: flex;
  305. justify-content: space-between;
  306. align-items: center;
  307. border-bottom: solid 1rpx #e7e7e7;
  308. }
  309. .keyword-entry image {
  310. width: 60rpx;
  311. height: 60rpx;
  312. }
  313. .keyword-entry .keyword-text,
  314. .keyword-entry .keyword-img {
  315. height: 80rpx;
  316. display: flex;
  317. align-items: center;
  318. }
  319. .keyword-entry .keyword-text {
  320. width: 90%;
  321. }
  322. .keyword-entry .keyword-img {
  323. width: 10%;
  324. justify-content: center;
  325. }
  326. .keyword-box {
  327. background-color: #fff;
  328. }
  329. .keyword-box .keyword-block {
  330. padding: 10rpx 0;
  331. }
  332. .keyword-box .keyword-block .keyword-list-header {
  333. width: 100%;
  334. padding: 20rpx 3%;
  335. font-size: 27rpx;
  336. color: #333;
  337. display: flex;
  338. justify-content: space-between;
  339. }
  340. .keyword-box .keyword-block .keyword-list-header image {
  341. width: 40rpx;
  342. height: 40rpx;
  343. }
  344. .keyword-box .keyword-block .keyword > view {
  345. width: 50%;
  346. line-height: 1.75;
  347. overflow: hidden;
  348. padding: 0 3% 0 3% !important;
  349. }
  350. .u-tips {
  351. font-size: 30rpx;
  352. font-weight: 700;
  353. color: #333;
  354. }
  355. .keyword {
  356. display: flex;
  357. flex-wrap: wrap;
  358. }
  359. .keyword-box {
  360. position: relative;
  361. }
  362. .clear {
  363. color: #666666;
  364. position: fixed;
  365. bottom: 0;
  366. width: 100%;
  367. text-align: center;
  368. height: 100rpx;
  369. line-height: 100rpx;
  370. font-size: 28rpx;
  371. background: #f7f7f7;
  372. }
  373. .keyword-box .keyword-block .hide-hot-tis {
  374. display: flex;
  375. justify-content: center;
  376. font-size: 28rpx;
  377. color: #6b6b6b;
  378. }
  379. .navbar {
  380. display: flex;
  381. width: 100%;
  382. height: 80rpx;
  383. background: #fff;
  384. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
  385. z-index: 10;
  386. // position: fixed;
  387. // left: 0;
  388. // top: var(--status-bar-height);
  389. .nav-item {
  390. flex: 1;
  391. display: flex;
  392. justify-content: center;
  393. align-items: center;
  394. height: 100%;
  395. font-size: 30rpx;
  396. color: $font-color-dark;
  397. position: relative;
  398. }
  399. .current {
  400. color: $light-color;
  401. position: relative;
  402. &:after {
  403. content: "";
  404. position: absolute;
  405. left: 50%;
  406. bottom: 0;
  407. transform: translateX(-50%);
  408. width: 40rpx;
  409. height: 0;
  410. border-bottom: 4rpx solid $light-color;
  411. }
  412. }
  413. .p-box {
  414. display: flex;
  415. flex-direction: column;
  416. .yticon {
  417. display: flex;
  418. align-items: center;
  419. justify-content: center;
  420. width: 30rpx;
  421. height: 14rpx;
  422. line-height: 1;
  423. margin-left: 4rpx;
  424. font-size: 26rpx;
  425. color: #888;
  426. }
  427. .xia {
  428. transform: scaleY(-1);
  429. }
  430. }
  431. .cate-item {
  432. display: flex;
  433. justify-content: center;
  434. align-items: center;
  435. height: 100%;
  436. width: 80rpx;
  437. position: relative;
  438. font-size: 44rpx;
  439. &:after {
  440. content: "";
  441. position: absolute;
  442. left: 0;
  443. top: 50%;
  444. transform: translateY(-50%);
  445. border-left: 1px solid #ddd;
  446. width: 0;
  447. height: 36rpx;
  448. }
  449. }
  450. }
  451. /* 分类 */
  452. .cate-mask {
  453. position: fixed;
  454. left: 0;
  455. top: var(--window-top);
  456. bottom: 0;
  457. width: 100%;
  458. background: rgba(0, 0, 0, 0);
  459. z-index: 95;
  460. transition: 0.3s;
  461. .cate-content {
  462. width: 630rpx;
  463. height: 100%;
  464. background: #fff;
  465. float: right;
  466. transform: translateX(100%);
  467. transition: 0.3s;
  468. }
  469. &.none {
  470. display: none;
  471. }
  472. &.show {
  473. background: rgba(0, 0, 0, 0.4);
  474. .cate-content {
  475. transform: translateX(0);
  476. }
  477. }
  478. }
  479. .cate-list {
  480. display: flex;
  481. flex-direction: column;
  482. height: 100%;
  483. .cate-item {
  484. display: flex;
  485. align-items: center;
  486. height: 90rpx;
  487. padding-left: 30rpx;
  488. font-size: 28rpx;
  489. color: #555;
  490. position: relative;
  491. }
  492. .two {
  493. height: 64rpx;
  494. color: #303133;
  495. font-size: 30rpx;
  496. background: #f8f8f8;
  497. }
  498. }
  499. .price-box {
  500. margin-top: 10rpx;
  501. display: flex;
  502. align-items: center;
  503. justify-content: space-between;
  504. padding-right: 10rpx;
  505. font-size: 24rpx;
  506. color: $font-color-light;
  507. }
  508. .price {
  509. font-size: 26rpx;
  510. line-height: 1;
  511. color: $main-color;
  512. font-weight: bold;
  513. /deep/ span:nth-of-type(1) {
  514. font-size: 38rpx;
  515. }
  516. }
  517. /* 商品列表 */
  518. .goods-list {
  519. display: flex;
  520. flex-wrap: wrap;
  521. margin: 10rpx 20rpx 284rpx;
  522. // background: #fff;
  523. width: 100%;
  524. .goods-item {
  525. background-color: #ffffff;
  526. display: flex;
  527. border-radius: 16rpx;
  528. flex-direction: column;
  529. width: calc(50% - 30rpx);
  530. margin-bottom: 20rpx;
  531. padding-bottom: 20rpx;
  532. &:nth-child(2n + 1) {
  533. margin-right: 20rpx;
  534. }
  535. .goods-detail {
  536. margin: 0 20rpx;
  537. }
  538. }
  539. .image-wrapper {
  540. width: 100%;
  541. height: 330rpx;
  542. border-radius: 16rpx 16rpx 0 0;
  543. overflow: hidden;
  544. padding: 0;
  545. image {
  546. width: 100%;
  547. height: 100%;
  548. opacity: 1;
  549. border-radius: 16rpx 16rpx 0 0;
  550. }
  551. }
  552. .title {
  553. font-size: $font-base;
  554. color: $font-color-dark;
  555. line-height: 1.5;
  556. height: 84rpx;
  557. padding: 10rpx 0 0;
  558. display: -webkit-box;
  559. -webkit-box-orient: vertical;
  560. -webkit-line-clamp: 2;
  561. overflow: hidden;
  562. }
  563. .countConfig,
  564. .storeSellerName {
  565. font-size: $font-sm;
  566. }
  567. .textHidden {
  568. overflow: hidden;
  569. text-overflow: ellipsis;
  570. white-space: nowrap;
  571. }
  572. }
  573. .status_bar {
  574. height: var(--status-bar-height);
  575. width: 100%;
  576. background: $light-color;
  577. }
  578. .empty {
  579. padding-top: 300rpx;
  580. color: #999999;
  581. text-align: center;
  582. /deep/ .u-image {
  583. width: 346rpx;
  584. height: 304rpx;
  585. }
  586. }