|
|
@@ -183,7 +183,16 @@ export default {
|
|
|
console.log(' this.menuTimeObj',this.menuTimeObj, dateDefaultOption)
|
|
|
// console.log('userShopAll',this.setUserShopAll())
|
|
|
|
|
|
- this.init();
|
|
|
+ // this.init();
|
|
|
+ },
|
|
|
+ onReachBottom() {
|
|
|
+ if (!this.list.finished) {
|
|
|
+ this._list().then((res) => {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['setUserShopAll']),
|
|
|
@@ -221,7 +230,7 @@ export default {
|
|
|
this._list();
|
|
|
},
|
|
|
_list() {
|
|
|
- return getStockDetailApi(this.params).then(res => {
|
|
|
+ return getStockDetailApi({...this.params,page: this.list.page,}).then(res => {
|
|
|
this.completes(res);
|
|
|
});
|
|
|
}
|