This commit is contained in:
wzz
2024-08-05 09:14:54 +08:00
parent 1dd22ddb54
commit fb7d0cc232
22 changed files with 300 additions and 1137 deletions

View File

@@ -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)
}
}
},
};