1
This commit is contained in:
@@ -94,32 +94,26 @@
|
||||
this.getOrder()
|
||||
},
|
||||
async getOrder() {
|
||||
uni.request({
|
||||
url: uni.conf.baseUrl + 'store/industrylist',
|
||||
data: {
|
||||
//参数
|
||||
name: this.keyword,
|
||||
page: this.page
|
||||
},
|
||||
method: 'POST', //请求方式,必须为大写
|
||||
success: res => {
|
||||
setTimeout(() => {
|
||||
if (this.page == 1) {
|
||||
this.subCategoryList = res.data.msg;
|
||||
this.loadStatus = 'loadmore'
|
||||
} else {
|
||||
this.subCategoryList.push(...res.data.msg);
|
||||
}
|
||||
if (res.data.msg.length == 20) {
|
||||
this.loadStatus = 'loadmore';
|
||||
} else {
|
||||
this.loadStatus = 'nomore';
|
||||
}
|
||||
console.log('接口返回------', res);
|
||||
}, 500)
|
||||
|
||||
}
|
||||
});
|
||||
let res = await this.api.storeindustrylist({
|
||||
name: this.keyword,
|
||||
page: this.page
|
||||
})
|
||||
if (res) {
|
||||
setTimeout(() => {
|
||||
if (this.page == 1) {
|
||||
this.subCategoryList = res.msg;
|
||||
this.loadStatus = 'loadmore'
|
||||
} else {
|
||||
this.subCategoryList.push(...res.msg);
|
||||
}
|
||||
if (res.msg.length == 20) {
|
||||
this.loadStatus = 'loadmore';
|
||||
} else {
|
||||
this.loadStatus = 'nomore';
|
||||
}
|
||||
console.log('接口返回------', res);
|
||||
}, 500)
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user