更新
This commit is contained in:
@@ -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
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user