liudan 1 year ago
parent 68d29da286
commit 5ac6634bd5
  1. 13
      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<Math.ceil(this.total/10);i++){
for(let i=0;i<Math.ceil(this.total/res.data.per_page);i++){
this.pagesList.push({
name:`${i+1}`
})

Loading…
Cancel
Save