| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- // 远程搜索选择组件样式
- .remote-search-select {
- width: 100%;
- position: relative;
- .search-container {
- display: flex;
- gap: 10rpx;
- }
- // 搜索结果列表
- .result-list {
- height: 400rpx;
- margin-top: 8rpx;
- border-radius: 8px;
- overflow-y: auto;
- overflow-x: hidden;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- position: absolute;
- left: 0rpx;
- right: 20rpx;
- // top:0;
- z-index: 20000;
- background-color: #fff;
-
- ::v-deep .u-cell {
- transition: background-color 0.2s ease;
-
- &:hover {
- background-color: #f5f7fa;
- }
- }
-
- // 滚动条样式
- &::-webkit-scrollbar {
- width: 4px;
- }
-
- &::-webkit-scrollbar-track {
- background: #f1f1f1;
- border-radius: 4px;
- }
-
- &::-webkit-scrollbar-thumb {
- background: #c1c1c1;
- border-radius: 4px;
- }
-
- &::-webkit-scrollbar-thumb:hover {
- background: #a8a8a8;
- }
- }
-
- // 空结果提示
- .empty-result {
- margin-top: 8px;
- padding: 20px;
- border-radius: 8px;
- background-color: #fff;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- position: absolute;
- left: 0;
- right: 0;
- z-index: 999;
- }
-
- // 加载状态
- .loading-state {
- margin-top: 8px;
- padding: 16px;
- border-radius: 8px;
- background-color: #fff;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- position: absolute;
- left: 0;
- right: 0;
- z-index: 999;
- display: flex;
- align-items: center;
- justify-content: center;
-
- .loading-text {
- margin-left: 8px;
- font-size: 14px;
- color: #909399;
- }
- }
- }
- .img-preview-container{
- margin:70rpx 40rpx;
- .img-result-list {
- max-height: 1200rpx;
- ::v-deep .uni-scroll-view-content{
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 20rpx;
-
- }
- }
-
- .img-result-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- background-color: #f8f8f8;
- border-radius: 10rpx;
- padding-bottom: 20rpx;
- text-align: center;
- }
-
- .img-result-thumb {
- width: 100%;
- height: 250rpx;
- object-fit: cover;
- }
-
- .img-result-info {
- width: 100%;
- }
-
- .img-result-title {
- display: block;
- background-color: #333;
- color: white;
- padding: 8rpx 12rpx;
- font-size: 22rpx;
- margin-bottom: 10rpx;
- }
-
- .img-result-desc {
- display: block;
- font-size: 24rpx;
- margin-bottom: 10rpx;
- line-height: 1.3;
- text-align: left;
- padding: 0 20rpx;
- }
-
- .img-result-price {
- display: block;
- font-size: 26rpx;
- font-weight: bold;
- color: #ff4d4f;
- text-align: left;
- padding: 0 20rpx;
- }
- }
|