太湖公益
This commit is contained in:
@@ -456,17 +456,18 @@ export default {
|
||||
this.ordersTabCLi(this.ordersTabs[0], 0);
|
||||
});
|
||||
},
|
||||
onReady() {
|
||||
// this.newList = [];
|
||||
// this.pagination = {
|
||||
// page: 1, //页码
|
||||
// limit: 20, //每页显示
|
||||
// total: 0, //总条数
|
||||
// };
|
||||
// this.$nextTick(() => {
|
||||
// this.ordersTabCLi(this.ordersTabs[0],0);
|
||||
// });
|
||||
onTabItemTap() {
|
||||
this.newList = [];
|
||||
this.pagination = {
|
||||
page: 1, //页码
|
||||
limit: 20, //每页显示
|
||||
total: 0, //总条数
|
||||
};
|
||||
this.$nextTick(() => {
|
||||
this.ordersTabCLi(this.ordersTabs[0], 0);
|
||||
});
|
||||
},
|
||||
onReady() {},
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
},
|
||||
@@ -533,7 +534,7 @@ export default {
|
||||
});
|
||||
},
|
||||
getBookList(flag, refreshflag) {
|
||||
this.isLoadingHide=false
|
||||
this.isLoadingHide = false;
|
||||
var that = this;
|
||||
// 根据tab不同,获取最新书评、最热书评、书集列表
|
||||
// uni.showLoading({
|
||||
@@ -555,7 +556,7 @@ export default {
|
||||
})
|
||||
.then((res) => {
|
||||
that.map = res.map;
|
||||
|
||||
|
||||
that.ordersTabs.map((e) => {
|
||||
if (e.value == 0 || e.value == 1 || e.value == 2) {
|
||||
if (that.map[e.value] > 0) {
|
||||
@@ -594,8 +595,8 @@ export default {
|
||||
.then((res) => {
|
||||
console.log(res, "内容获取成功");
|
||||
that.pagination.total = res.page.total;
|
||||
if(res.page.total==0){
|
||||
this.isLoadingHide=true
|
||||
if (res.page.total == 0) {
|
||||
this.isLoadingHide = true;
|
||||
}
|
||||
if (res.code == 0 && res.page && res.page.records.length > 0) {
|
||||
that.newList = that.newList.concat(res.page.records);
|
||||
|
||||
Reference in New Issue
Block a user