index.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. // 远程搜索选择组件样式
  2. .remote-search-select {
  3. width: 100%;
  4. position: relative;
  5. .search-container {
  6. display: flex;
  7. gap: 10rpx;
  8. }
  9. // 搜索结果列表
  10. .result-list {
  11. height: 400rpx;
  12. margin-top: 8rpx;
  13. border-radius: 8px;
  14. overflow-y: auto;
  15. overflow-x: hidden;
  16. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  17. position: absolute;
  18. left: 0rpx;
  19. right: 20rpx;
  20. // top:0;
  21. z-index: 20000;
  22. background-color: #fff;
  23. ::v-deep .u-cell {
  24. transition: background-color 0.2s ease;
  25. &:hover {
  26. background-color: #f5f7fa;
  27. }
  28. }
  29. // 滚动条样式
  30. &::-webkit-scrollbar {
  31. width: 4px;
  32. }
  33. &::-webkit-scrollbar-track {
  34. background: #f1f1f1;
  35. border-radius: 4px;
  36. }
  37. &::-webkit-scrollbar-thumb {
  38. background: #c1c1c1;
  39. border-radius: 4px;
  40. }
  41. &::-webkit-scrollbar-thumb:hover {
  42. background: #a8a8a8;
  43. }
  44. }
  45. // 空结果提示
  46. .empty-result {
  47. margin-top: 8px;
  48. padding: 20px;
  49. border-radius: 8px;
  50. background-color: #fff;
  51. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  52. position: absolute;
  53. left: 0;
  54. right: 0;
  55. z-index: 999;
  56. }
  57. // 加载状态
  58. .loading-state {
  59. margin-top: 8px;
  60. padding: 16px;
  61. border-radius: 8px;
  62. background-color: #fff;
  63. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  64. position: absolute;
  65. left: 0;
  66. right: 0;
  67. z-index: 999;
  68. display: flex;
  69. align-items: center;
  70. justify-content: center;
  71. .loading-text {
  72. margin-left: 8px;
  73. font-size: 14px;
  74. color: #909399;
  75. }
  76. }
  77. }
  78. .img-preview-container{
  79. margin:70rpx 40rpx;
  80. .img-result-list {
  81. max-height: 1200rpx;
  82. ::v-deep .uni-scroll-view-content{
  83. display: grid;
  84. grid-template-columns: 1fr 1fr;
  85. gap: 20rpx;
  86. }
  87. }
  88. .img-result-item {
  89. display: flex;
  90. flex-direction: column;
  91. align-items: center;
  92. background-color: #f8f8f8;
  93. border-radius: 10rpx;
  94. padding-bottom: 20rpx;
  95. text-align: center;
  96. }
  97. .img-result-thumb {
  98. width: 100%;
  99. height: 250rpx;
  100. object-fit: cover;
  101. }
  102. .img-result-info {
  103. width: 100%;
  104. }
  105. .img-result-title {
  106. display: block;
  107. background-color: #333;
  108. color: white;
  109. padding: 8rpx 12rpx;
  110. font-size: 22rpx;
  111. margin-bottom: 10rpx;
  112. }
  113. .img-result-desc {
  114. display: block;
  115. font-size: 24rpx;
  116. margin-bottom: 10rpx;
  117. line-height: 1.3;
  118. text-align: left;
  119. padding: 0 20rpx;
  120. }
  121. .img-result-price {
  122. display: block;
  123. font-size: 26rpx;
  124. font-weight: bold;
  125. color: #ff4d4f;
  126. text-align: left;
  127. padding: 0 20rpx;
  128. }
  129. }