index.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. .img-preview-container {
  78. margin: 70rpx 40rpx;
  79. .image-section {
  80. transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  81. .image-container {
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. background-color: #f0f0f0;
  86. border-radius: 8rpx;
  87. .preview-image {
  88. width: 100%;
  89. height: 100%;
  90. object-fit: contain;
  91. }
  92. }
  93. .confirm-crop-btn-container {
  94. max-height: 0;
  95. opacity: 0;
  96. overflow: hidden;
  97. display: flex;
  98. justify-content: flex-end;
  99. width: 100%;
  100. transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  101. &.show {
  102. max-height: 100rpx;
  103. opacity: 1;
  104. margin-top: 20rpx;
  105. margin-bottom: 10rpx;
  106. }
  107. .confirm-crop-btn {
  108. margin: 0;
  109. width: fit-content;
  110. }
  111. }
  112. }
  113. .img-result-list {
  114. transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  115. max-height: 1200rpx;
  116. &.compressed {
  117. max-height: 600rpx;
  118. }
  119. ::v-deep .uni-scroll-view-content {
  120. display: grid;
  121. grid-template-columns: 1fr 1fr;
  122. gap: 20rpx;
  123. }
  124. }
  125. }
  126. .img-result-item {
  127. display: flex;
  128. flex-direction: column;
  129. align-items: center;
  130. background-color: #f8f8f8;
  131. border-radius: 10rpx;
  132. padding-bottom: 20rpx;
  133. text-align: center;
  134. }
  135. .img-result-thumb {
  136. width: 100%;
  137. height: 250rpx;
  138. object-fit: cover;
  139. }
  140. .img-result-info {
  141. width: 100%;
  142. }
  143. .img-result-title {
  144. display: block;
  145. background-color: #333;
  146. color: white;
  147. padding: 8rpx 12rpx;
  148. font-size: 22rpx;
  149. margin-bottom: 10rpx;
  150. }
  151. .img-result-desc {
  152. display: block;
  153. font-size: 24rpx;
  154. margin-bottom: 10rpx;
  155. line-height: 1.3;
  156. text-align: left;
  157. padding: 0 20rpx;
  158. }
  159. .img-result-price {
  160. display: block;
  161. font-size: 26rpx;
  162. font-weight: bold;
  163. color: #ff4d4f;
  164. text-align: left;
  165. padding: 0 20rpx;
  166. }
  167. }