Browse Source

任务扫描Go列表超出滚动+去重

hella_online_20240829
yufei0306 4 months ago
parent
commit
e6e606ca0e
  1. 13
      src/mycomponents/jobList/jobList.vue

13
src/mycomponents/jobList/jobList.vue

@ -37,7 +37,11 @@ import { onShow } from '@dcloudio/uni-app';
}, },
methods:{ methods:{
openList(list){ openList(list){
this.list = list list.forEach(item=>{
if(!this.list.find(subItem=>subItem.title==item.title)){
this.list.push(item)
}
})
this.$refs.listPopup.open('center') this.$refs.listPopup.open('center')
}, },
selectItem(item,index){ selectItem(item,index){
@ -54,15 +58,20 @@ import { onShow } from '@dcloudio/uni-app';
align-items: center; align-items: center;
.list{ .list{
width: 80%; width: 80%;
max-height:80vh;
overflow-y: auto;
border-radius: 10px !important; border-radius: 10px !important;
overflow: hidden;
.slot-image{ .slot-image{
width: 40rpx; width: 40rpx;
} }
.go{ .go{
color: rgb(60, 156, 255); color: rgb(60, 156, 255);
} }
} }
} }
.list ::v-deep .uni-list--border{
border: 1rpx solid #e5e5e5;
}
</style> </style>
Loading…
Cancel
Save