Commit 5db2345f authored by 王建威's avatar 王建威

bug fix

parent 9b956690
...@@ -118,7 +118,6 @@ ...@@ -118,7 +118,6 @@
this.cate_id_2 = cate_id+''; this.cate_id_2 = cate_id+'';
} }
this.tabIndex = index; this.tabIndex = index;
this.$refs.pagination.parentsChangeCurrent(1);
uni.request({ uni.request({
url: '/uni/api/credit_goods/get_credit_second_goods', url: '/uni/api/credit_goods/get_credit_second_goods',
method: 'POST', method: 'POST',
...@@ -134,6 +133,11 @@ ...@@ -134,6 +133,11 @@
{ page } = res.data; { page } = res.data;
this.goods_list = credit_goods_list; this.goods_list = credit_goods_list;
this.page = page; this.page = page;
if(credit_goods_list instanceof Array) {
setTimeout(() => {
this.$refs.pagination.parentsChangeCurrent(1);
}, 0);
}
!!cb && cb(); !!cb && cb();
} }
}); });
...@@ -181,7 +185,11 @@ ...@@ -181,7 +185,11 @@
this.page = page; this.page = page;
!!cb && cb(); !!cb && cb();
this.tabIndex = -1; this.tabIndex = -1;
if(credit_goods_list instanceof Array) {
setTimeout(() => {
this.$refs.pagination.parentsChangeCurrent(1); this.$refs.pagination.parentsChangeCurrent(1);
}, 0);
}
} }
}); });
}, },
......
...@@ -116,7 +116,6 @@ ...@@ -116,7 +116,6 @@
this.cate_id_1 = ''; this.cate_id_1 = '';
} }
this.tabIndex = index; this.tabIndex = index;
this.$refs.pagination.parentsChangeCurrent(1);
uni.request({ uni.request({
url: '/uni/api/credit_goods/get_credit_all_goods', url: '/uni/api/credit_goods/get_credit_all_goods',
method: 'POST', method: 'POST',
...@@ -132,6 +131,11 @@ ...@@ -132,6 +131,11 @@
{ page } = res.data; { page } = res.data;
this.goods_list = credit_goods_list; this.goods_list = credit_goods_list;
this.page = page; this.page = page;
if(credit_goods_list instanceof Array) {
setTimeout(() => {
this.$refs.pagination.parentsChangeCurrent(1);
}, 0);
}
!!cb && cb(); !!cb && cb();
} }
}); });
...@@ -171,7 +175,11 @@ ...@@ -171,7 +175,11 @@
this.page = page; this.page = page;
!!cb && cb(); !!cb && cb();
this.tabIndex = -1; this.tabIndex = -1;
if(credit_goods_list instanceof Array) {
setTimeout(() => {
this.$refs.pagination.parentsChangeCurrent(1); this.$refs.pagination.parentsChangeCurrent(1);
}, 0);
}
} }
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment