Browse Source

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

hella_online_20240829
yufei0306 6 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:{
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')
},
selectItem(item,index){
@ -54,15 +58,20 @@ import { onShow } from '@dcloudio/uni-app';
align-items: center;
.list{
width: 80%;
max-height:80vh;
overflow-y: auto;
border-radius: 10px !important;
overflow: hidden;
.slot-image{
width: 40rpx;
}
.go{
color: rgb(60, 156, 255);
}
}
}
.list ::v-deep .uni-list--border{
border: 1rpx solid #e5e5e5;
}
</style>
Loading…
Cancel
Save