修改云仓商品列表和批发商品列表
This commit is contained in:
parent
ac280a5446
commit
c722ebd9b3
@ -392,6 +392,8 @@
|
|||||||
if (this.isLoading == -1) return;
|
if (this.isLoading == -1) return;
|
||||||
this.isLoading = 1;
|
this.isLoading = 1;
|
||||||
getProductslist(this.where).then(res => {
|
getProductslist(this.where).then(res => {
|
||||||
|
this.where.limit = res.data.limit
|
||||||
|
this.where.page = res.data.page
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
this.hostProduct = [...this.hostProduct, ...res.data.list];
|
this.hostProduct = [...this.hostProduct, ...res.data.list];
|
||||||
this.isLoading = 0;
|
this.isLoading = 0;
|
||||||
|
@ -689,6 +689,8 @@
|
|||||||
if (this.isLoading == -1) return;
|
if (this.isLoading == -1) return;
|
||||||
this.isLoading = 1;
|
this.isLoading = 1;
|
||||||
getProductslist(this.where, true).then(res => {
|
getProductslist(this.where, true).then(res => {
|
||||||
|
this.where.limit = res.data.limit
|
||||||
|
this.where.page = res.data.page
|
||||||
if (stop) uni.stopPullDownRefresh();
|
if (stop) uni.stopPullDownRefresh();
|
||||||
if (reLoad) this.hostProduct = [];
|
if (reLoad) this.hostProduct = [];
|
||||||
this.hostProduct = [...this.hostProduct, ...res.data.list];
|
this.hostProduct = [...this.hostProduct, ...res.data.list];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user