cyl/master-0822
wangxia 3 months ago
parent 43a6e02881
commit 3613bd23b6

@ -481,6 +481,9 @@ const checkLength = (e) => {
const handleUpdateTab = (e) => { const handleUpdateTab = (e) => {
console.log(e); console.log(e);
tabInfo.value.active = e; tabInfo.value.active = e;
uni.showLoading({
title: "加载中...",
});
if (e == 0 || e == 2) { if (e == 0 || e == 2) {
getList(); getList();
} else { } else {
@ -491,7 +494,7 @@ const getSeenList = () => {};
const agencyIdByAccId = () => { const agencyIdByAccId = () => {
let accid = conversationId.split("|")[2]; let accid = conversationId.split("|")[2];
return new Promise((reso) => { return new Promise((reso) => {
G.Post(api.get_AgencyIdByAccId, { accid }, (res) => { G.Get(api.get_AgencyIdByAccId, { accid }, (res) => {
reso(res); reso(res);
}); });
}); });
@ -503,6 +506,7 @@ const searchJob = () => {
}; };
const getList = ($type = "init") => { const getList = ($type = "init") => {
loading.value = true; loading.value = true;
let parmas = { let parmas = {
pageNum: query.value.page, pageNum: query.value.page,
pageSize: query.value.size, pageSize: query.value.size,
@ -517,9 +521,11 @@ const getList = ($type = "init") => {
parmas.classify = 3; parmas.classify = 3;
parmas.beCollectedAgencyId = beCollectedAgencyId.value; parmas.beCollectedAgencyId = beCollectedAgencyId.value;
} }
G.Post(api.job_list, {}, (res) => { console.log("parmas", parmas);
G.Post(api.job_list, parmas, (res) => {
console.log("res", res); console.log("res", res);
loading.value = false; loading.value = false;
uni.hideLoading();
speed.value = res.recordCount; speed.value = res.recordCount;
query.value.isFinish = res.recordList.length; query.value.isFinish = res.recordList.length;
console.log("query.value", query.value); console.log("query.value", query.value);

Loading…
Cancel
Save