import httpRequest from '@/composables/useHttp' // 分类详情 export function articleCategoryDetails (markCode: string) { return httpRequest.get(`/api/cms/articleCategory/markCode/${markCode}`) } // 研究简报 // 研究报告字典 export function dictListData (data: any) { return httpRequest.post(`/basedata/dict/listData`, data) } export const researchReportListData = (data: any) => { return httpRequest.post('/report/researchReport/pageList', data); } // 研究报告列表 export function researchReportPageList (data: any) { return httpRequest.post(`/report/researchReport/pageList`, data) } // 研究报告详情 export function researchReportForm (param: any) { return httpRequest.get(`/report/researchReport/form`, { params: param }) } export function configList (param: any) { return httpRequest.get(`/basedata/config/findListByKeys`, { params: param }) } export function customerInfoSave (data: any) { return httpRequest.post(`/basedata/customerInfo/save`, data) } //行研简报 // 行研简报类别 export function bulletinCategory_Api (data: any) { return httpRequest.post(`/report/researchBriefReport/categoryList`, data) } // 查询全部分类 export function allClassfiy_Api (data: any) { return httpRequest.post(`/report/researchBriefReport/categoryPage`, data) } export function bulletinPage_Api (data: any) { return httpRequest.post(`/report/researchBriefReport/pageList`, data) } // 简报精选简报 export function bulletinWinnow_Api (param: any) { return httpRequest.get(`/report/researchBriefReport/choicenessReports`, { params: param }) } // 简报热门报告 export function bulletinHots_Api (param: any) { return httpRequest.get(`/report/researchBriefReport/hotReports`, { params: param }) } // 简报详情 export const bulletinDetail_Api = (param: any) => { return httpRequest.get(`/report/researchBriefReport/form`, { params: param }) }; // 登录 export const login_Api = (data: any) => { return httpRequest.post(`/report/websiteUser/login`, data) }; // 注册 export const register_Api = (data: any) => { return httpRequest.post(`/report/websiteUser/register`, data) }; // 下载文件 export const getDownUrl_Api = (data: any) => { return httpRequest.post(`/report/websiteUserOrder/downFile`, data) }; // 支付宝pc端预支付 响应地址 export const getPayOrder_Api = (data: any) => { return httpRequest.post(`/report/websiteUserOrder/payOrder`, data) }; // // 简报支付详情 export const bulletinDetailPay_Api = (data: any) => { return httpRequest.post(`/report/websiteUserOrder/orderDetail`, data) }; // 列表 export const carouselListData = (param: any) => { return httpRequest.get(`/basedata/carousel/listData`, { params: param || {} }) }; // export const carouselListData = async (param: any): Promise => { // return await httpRequest.get('/basedata/carousel/listData', { params: param }) // } // 登出 export const logOut_Api = (param: any) => { return httpRequest.get(`/report/websiteUser/logout`, { params: param || {} }) }; // 用户-找回密码的邮件 export const email_Api = (data: any) => { return httpRequest.post(`/report/websiteUser/getWuValidCode`, data) }; // 研究报告和咨询 export const reportAndMarketListData = (param: any) => { return httpRequest.get(`/basedata/home/mapData`, { params: param || {} }) }; // 热门报告 export const hotResearchList = (param: any) => { return httpRequest.get(`/report/researchReport/hotReports`, { params: param || {} }) }; export const marketInfoPageList = (data: any) => { return httpRequest.post(`/report/marketInfo/pageList`, data) }; export const marketInfoDetailList = (param: any) => { return httpRequest.get(`/report/marketInfo/detailList`, { params: param || {} }) }; // 修改信息 export const updateInfo_Api = (data: any) => { return httpRequest.post(`/report/websiteUser/updateUser`, data) }; // 个人中心-我的信息 export const getUser_Api = (param: any) => { return httpRequest.get(`/report/websiteUser/getUserInfo`, { params: param || {} }) }; // 个人中心-我的订单 export const getMyOrder_Api = (data: any) => { return httpRequest.post(`/report/websiteUserOrder/orderList`, data) }; // 个人中心 - 我的下载; export const getMyDoen_Api = (data: any) => { return httpRequest.post(`/report/websiteUserOrder/downList`, data) }; // 支付取消 export const closePay_Api = (data: any) => { return httpRequest.post("report/websiteUserOrder/cancelOrder", data); }; // 修改密码 export const updatePwd_Api = (data: any) => { return httpRequest.post("/report/websiteUser/updatePwd", data); }; // 发布日期 export const researchReportPublishDateList = (param: any) => { return httpRequest.post("/report/researchReport/publishDateList", { params: param || {} }); }; // 类别 export const researchReportCategoryList = (data: any) => { return httpRequest.post('/report/researchReport/categoryList', data); } // 分类详情 export const articleCategoryDetails1 = (markCode: string) => { return httpRequest.get(`/api/cms/articleCategory/markCode/${markCode}`, { params: {} }) } // 用户-找回密码 export const forget_Api = (data: string) => { return httpRequest.post("/report/websiteUser/forgetPwd", data); } // 创建支付订单 英文支付 export const createOrder_Api = (data: any) => { return httpRequest.post("/api/report/websiteUserResearchOrder/payOrder", data); }; // 执行扣款 export const payOrder_Api = (data: any) => { return httpRequest.post("/api/report/websiteUserResearchOrder/pay/asyncNotify", data); }; // 个人中心-我的订单 英文 export const websiteUserResearchOrderList = (data: any) => { return httpRequest.post("/api/report/websiteUserResearchOrder/orderList", data); }; // 取消订单 export const websiteUserResearchCancelOrder = (data: any) => { return httpRequest.post("/api/report/websiteUserResearchOrder/cancelOrder", data); }; // 更换邮箱 英文支付 export const websiteUserResearchOrderUpdateEmail = (data: any) => { return httpRequest.post("/api/report/websiteUserResearchOrder/updateEmail", data); };