Commit 59698e43 by heshihao

feat: 代码格式修改

parent 63c2b205
import api from '@/utils/http'
import api from "@/utils/http";
const assess = {
DownList: "/api/address/DownList",
......@@ -15,61 +14,37 @@ const assess = {
SearchFactory: "/api/address/SearchFactory",
SearchBuild: "/api/address/SearchBuild",
CheckDetail: "/api/address/CheckDetail",
}
};
// 编辑 查看 详情
const CheckDetail = ({
id, carrier_type
}) => {
const CheckDetail = ({ id, carrier_type }) => {
return api.post(assess.CheckDetail, {
id, carrier_type
})
}
const SearchLand = ({
key_words,
land_nature,
industry_name,
land_name,
district_name,
page,
perpage
}) => {
id,
carrier_type,
});
};
const SearchLand = ({ key_words, land_nature, industry_name, land_name, district_name, page, perpage }) => {
return api.post(assess.SearchLand, {
key_words,
land_nature,
industry_name,
land_name,
land_code: '',
land_code: "",
district_name,
page,
per_page: perpage
})
}
const SearchFactory = ({
industry_name,
key_words,
factory_name,
district_name,
page,
perpage
}) => {
per_page: perpage,
});
};
const SearchFactory = ({ industry_name, key_words, factory_name, district_name, page, perpage }) => {
return api.post(assess.SearchFactory, {
industry_name,
key_words,
factory_name,
district_name,
page,
per_page: perpage
})
}
const SearchBuild = ({
key_words,
industry_name,
build_name,
build_type,
district_name,
page,
perpage
}) => {
per_page: perpage,
});
};
const SearchBuild = ({ key_words, industry_name, build_name, build_type, district_name, page, perpage }) => {
return api.post(assess.SearchBuild, {
key_words,
industry_name,
......@@ -77,9 +52,9 @@ const SearchBuild = ({
build_type,
district_name,
page,
per_page: perpage
})
}
per_page: perpage,
});
};
// const ChooseAddress = (industry_id,
// product,
// budget,
......@@ -103,15 +78,7 @@ const SearchBuild = ({
// key_words
// })
// }
const SearchAll = ({
key_words,
industry_name,
district_name,
carrier_type_id,
preference,
page,
per_page
}) => {
const SearchAll = ({ key_words, industry_name, district_name, carrier_type_id, preference, page, per_page }) => {
return api.post(assess.SearchAll, {
key_words,
industry_name,
......@@ -119,39 +86,36 @@ const SearchAll = ({
carrier_type_id,
preference,
page,
per_page
})
}
const DefaultAddress = (
district,
page,
perpage) => {
per_page,
});
};
const DefaultAddress = (district, page, perpage) => {
return api.post(assess.DefaultAddress, {
district,
page,
perpage,
})
}
});
};
// 产业集群
const DownList = () => {
return api.get(assess.DownList)
}
return api.get(assess.DownList);
};
const ShowArea = ({ district_name }) => {
return api.post(assess.ShowArea, {
district_name
})
}
district_name,
});
};
const ShowCarrierRate = ({ district_name }) => {
return api.post(assess.ShowCarrierRate, {
district_name
})
}
district_name,
});
};
const ShowCarrierEnergy = () => {
return api.get(assess.ShowCarrierEnergy)
}
return api.get(assess.ShowCarrierEnergy);
};
const GetLoansRate = () => {
return api.get(assess.GetLoansRate)
}
return api.get(assess.GetLoansRate);
};
export default {
SearchAll,
......@@ -165,7 +129,5 @@ export default {
SearchLand,
SearchFactory,
SearchBuild,
CheckDetail
}
CheckDetail,
};
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