index.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. transition: all 0.3s ease;
  81. .image-section {
  82. transition: all 0.3s ease;
  83. margin-bottom: 30rpx;
  84. &.expanded {
  85. margin-bottom: 40rpx;
  86. }
  87. .image-container {
  88. position: relative;
  89. margin-bottom: 20rpx;
  90. overflow: hidden;
  91. border-radius: 10rpx;
  92. .preview-image {
  93. width: 100%;
  94. height: 300rpx;
  95. object-fit: cover;
  96. transition: all 0.3s ease;
  97. &.zoomed {
  98. height: 500rpx;
  99. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.15);
  100. }
  101. }
  102. .crop-overlay {
  103. position: absolute;
  104. top: 0;
  105. left: 0;
  106. right: 0;
  107. bottom: 0;
  108. background-color: rgba(0, 0, 0, 0.5);
  109. display: flex;
  110. flex-direction: column;
  111. justify-content: center;
  112. align-items: center;
  113. .crop-area {
  114. position: absolute;
  115. border: 2rpx solid #409eff;
  116. background-color: rgba(64, 158, 255, 0.2);
  117. cursor: move;
  118. .resize-handle {
  119. position: absolute;
  120. width: 20rpx;
  121. height: 20rpx;
  122. border: 2rpx solid #409eff;
  123. background-color: #fff;
  124. border-radius: 50%;
  125. touch-action: none;
  126. &.top-left {
  127. top: -10rpx;
  128. left: -10rpx;
  129. cursor: nw-resize;
  130. }
  131. &.top-right {
  132. top: -10rpx;
  133. right: -10rpx;
  134. cursor: ne-resize;
  135. }
  136. &.bottom-left {
  137. bottom: -10rpx;
  138. left: -10rpx;
  139. cursor: sw-resize;
  140. }
  141. &.bottom-right {
  142. bottom: -10rpx;
  143. right: -10rpx;
  144. cursor: se-resize;
  145. }
  146. &.top {
  147. top: -10rpx;
  148. left: 50%;
  149. transform: translateX(-50%);
  150. cursor: n-resize;
  151. }
  152. &.bottom {
  153. bottom: -10rpx;
  154. left: 50%;
  155. transform: translateX(-50%);
  156. cursor: s-resize;
  157. }
  158. &.left {
  159. left: -10rpx;
  160. top: 50%;
  161. transform: translateY(-50%);
  162. cursor: w-resize;
  163. }
  164. &.right {
  165. right: -10rpx;
  166. top: 50%;
  167. transform: translateY(-50%);
  168. cursor: e-resize;
  169. }
  170. }
  171. }
  172. .crop-controls {
  173. position: absolute;
  174. top: 20rpx;
  175. left: 0;
  176. right: 0;
  177. display: flex;
  178. flex-direction: column;
  179. align-items: center;
  180. gap: 10rpx;
  181. .crop-hint {
  182. color: #fff;
  183. font-size: 24rpx;
  184. margin-bottom: 10rpx;
  185. background-color: rgba(0, 0, 0, 0.5);
  186. padding: 5rpx 15rpx;
  187. border-radius: 20rpx;
  188. }
  189. }
  190. }
  191. .confirm-crop-btn {
  192. position: absolute;
  193. bottom: 20rpx;
  194. right: 20rpx;
  195. z-index: 999;
  196. }
  197. }
  198. .img-result-container{
  199. display: flex;
  200. justify-content: space-between;
  201. }
  202. }
  203. .img-result-list {
  204. max-height: 1000rpx;
  205. transition: all 0.3s ease;
  206. &.compressed {
  207. max-height: 600rpx;
  208. }
  209. ::v-deep .uni-scroll-view-content{
  210. display: grid;
  211. grid-template-columns: 1fr 1fr;
  212. gap: 20rpx;
  213. }
  214. }
  215. .img-result-item {
  216. display: flex;
  217. flex-direction: column;
  218. align-items: center;
  219. background-color: #f8f8f8;
  220. border-radius: 10rpx;
  221. padding-bottom: 20rpx;
  222. text-align: center;
  223. transition: transform 0.2s ease, box-shadow 0.2s ease;
  224. &:hover {
  225. transform: translateY(-5rpx);
  226. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  227. }
  228. }
  229. .img-result-thumb {
  230. width: 100%;
  231. height: 250rpx;
  232. object-fit: cover;
  233. border-top-left-radius: 10rpx;
  234. border-top-right-radius: 10rpx;
  235. }
  236. .img-result-info {
  237. width: 100%;
  238. }
  239. .img-result-title {
  240. display: block;
  241. background-color: #333;
  242. color: white;
  243. padding: 8rpx 12rpx;
  244. font-size: 22rpx;
  245. margin-bottom: 10rpx;
  246. }
  247. .img-result-desc {
  248. display: block;
  249. font-size: 24rpx;
  250. margin-bottom: 10rpx;
  251. line-height: 1.3;
  252. text-align: left;
  253. padding: 0 20rpx;
  254. }
  255. .img-result-price {
  256. display: block;
  257. font-size: 26rpx;
  258. font-weight: bold;
  259. color: #ff4d4f;
  260. text-align: left;
  261. padding: 0 20rpx;
  262. }
  263. }