This commit is contained in:
xiaozhiyong
2023-05-30 10:07:12 +08:00
parent 81556f26a0
commit 6b0e5e7399
11 changed files with 921 additions and 114 deletions

View File

@@ -43,20 +43,10 @@
// // this.oilCompanyInfoList = JSON.parse(decodeURI(options.item))
// }
},
onShow() {
// this.getDriversList()
},
// onReachBottom() {
// // this.getData.currentPage += 1
// this.getDriversList()
// },
methods: {
seleFn(item) {
clearTimeout(this.timer)
this.$set(item,'isChecked',!item.isChecked)
uni.$emit('yunSiteServiceStation', item)
this.timer = setTimeout(() => {
uni.navigateBack()
@@ -70,31 +60,15 @@
})
return
}
// this.getData.currentPage = 1
this.getDriversList()
},
getDriversList() {
getDriversList() {
serve.getSiteChannelList(this.getData).then(res => {
if (res.code !== 20000) return
if (res.code !== 20000) return
let data = res.data.map(item => {
item['isChecked'] = false
return item
})
// data.forEach(item => {
// this.oilCompanyInfoList.forEach(secItem =>{
// if(secItem.id === item.id) {
// item['isChecked'] = true
// }
// })
// })
// if (this.getData.currentPage !== 1) {
// this.stationList = this.stationList.concat(data);
// return
// }
})
this.stationList = data
})
},