From 5ac6634bd5a91d6d20d1c569a699c5eb63c98eb1 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Thu, 19 Oct 2023 16:56:34 +0800 Subject: [PATCH] 1 --- pages/qianggou/productList.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pages/qianggou/productList.vue b/pages/qianggou/productList.vue index bfad1bd..db472ce 100644 --- a/pages/qianggou/productList.vue +++ b/pages/qianggou/productList.vue @@ -59,7 +59,7 @@ export default { total:0, pagesList: [], page:1, - limit:10, + limit:20, warehouse_id:null, } }, @@ -67,9 +67,10 @@ export default { methods:{ refrenshHandle(){ - uni.redirectTo({ - url: '/pages/qianggou/productList?page='+this.page //写你的路径 - }); + this.getGoodsList() + // uni.redirectTo({ + // url: '/pages/qianggou/productList?page='+this.page //写你的路径 + // }); }, backHandle(){ uni.switchTab({ @@ -78,11 +79,11 @@ export default { }, getGoodsList(){ this.pagesList=[] - getGoodsList({page:this.page,limit:10,warehouse_id:this.warehouse_id}).then(res=>{ + getGoodsList({page:this.page,limit:20,warehouse_id:this.warehouse_id}).then(res=>{ this.goodsList = res.data.data; this.total = res.data.total; - for(let i=0;i