|
@ -80,25 +80,28 @@ |
|
|
detailOptions: [], |
|
|
detailOptions: [], |
|
|
detailGiveupOptions: [], |
|
|
detailGiveupOptions: [], |
|
|
type: 'assemble', |
|
|
type: 'assemble', |
|
|
|
|
|
title:"" |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
// 装配收货:type = 'assemble' |
|
|
// 装配收货:type = 'assemble' |
|
|
// 预生产收货:type = 'predict' |
|
|
// 预生产收货:type = 'predict' |
|
|
props: { |
|
|
// props: { |
|
|
title: { |
|
|
// title: { |
|
|
type: String, |
|
|
// type: String, |
|
|
default: '' |
|
|
// default: '' |
|
|
}, |
|
|
// }, |
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
onLoad(option){ |
|
|
|
|
|
this.title = option.title |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
mounted() { |
|
|
onShow(){ |
|
|
this.detailOptions = getDetailOption(); |
|
|
this.detailOptions = getDetailOption(); |
|
|
this.detailGiveupOptions = getDetailGiveupOption(); |
|
|
this.detailGiveupOptions = getDetailGiveupOption(); |
|
|
this.getList('refresh'); |
|
|
this.getList('refresh'); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onPullDownRefresh() { |
|
|
onPullDownRefresh() { |
|
|
this.getList('refresh'); |
|
|
this.getList('refresh'); |
|
|
}, |
|
|
}, |
|
@ -123,18 +126,16 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onReachBottom() { |
|
|
|
|
|
console.log('onReachBottom', this.loadingType) |
|
|
|
|
|
//避免多次触发 |
|
|
|
|
|
if (this.loadingType == 'loading' || this.loadingType == 'noMore') { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
this.getList("more"); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
onReachBottom() { |
|
|
|
|
|
console.log('onReachBottom', this.loadingType) |
|
|
|
|
|
//避免多次触发 |
|
|
|
|
|
if (this.loadingType == 'loading' || this.loadingType == 'noMore') { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
this.getList("more"); |
|
|
|
|
|
}, |
|
|
|
|
|
refresh() { |
|
|
|
|
|
this.getList('refresh'); |
|
|
|
|
|
}, |
|
|
|
|
|
getList(type) { |
|
|
getList(type) { |
|
|
let that = this; |
|
|
let that = this; |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|