|
|
|
/*
|
|
|
|
* Copyright (c) 2019.
|
|
|
|
* author: wally
|
|
|
|
* email: 18603454788@163.com
|
|
|
|
*/
|
|
|
|
import axios from 'axios';
|
|
|
|
let { proxyUrl, msgUrl } = require('@/config/setting');
|
|
|
|
|
|
|
|
const greenvalley = `${proxyUrl}/greenvalley`;
|
|
|
|
// const page = `${greenvalley}/page`; // 创新平台相关操作
|
|
|
|
const policy = `${proxyUrl}/policy/policy`; // 创新政策相关接口
|
|
|
|
const activity = `${greenvalley}/activity`; // 创新政策相关接口
|
|
|
|
const Business = `${greenvalley}/Business`; // 衍生企业和合作伙伴查询
|
|
|
|
const carousel = `${greenvalley}/carousel`; // 轮播图相关接口
|
|
|
|
const page = `${greenvalley}/page`; // 页面详情相关接口
|
|
|
|
const achInstr = `${greenvalley}/achInstr`; // 轮播图相关接口
|
|
|
|
const service = `${greenvalley}/service`; // 服务相关接口
|
|
|
|
const user = `${greenvalley}/user`; // 用户相关接口
|
|
|
|
const product = `${greenvalley}/product`; // 产品相关接口
|
|
|
|
const tutorRelated = `${greenvalley}/tutorRelated`; // 导师相关接口
|
|
|
|
|
|
|
|
// websocket基础地址
|
|
|
|
export const WS_BASE_URL = msgUrl;
|
|
|
|
|
|
|
|
// 查询政策列表
|
|
|
|
export const selLikePolicy = params => axios.post(`${policy}/selLikePolicy`, params);
|
|
|
|
|
|
|
|
// 查询政策详情
|
|
|
|
export const selPolicy = params => axios.post(`${policy}/selPolicy`, params);
|
|
|
|
|
|
|
|
// 申请加入三大平台
|
|
|
|
export const JoinPlatform = params => axios.post(`${greenvalley}/platform/JoinPlatform`, params);
|
|
|
|
|
|
|
|
// 创新平台申请加入
|
|
|
|
export const CreatingPlatformAdd = params => axios.post(`${greenvalley}/creatingPlatform/add`, params);
|
|
|
|
|
|
|
|
// 上传附件
|
|
|
|
export const upload = `${greenvalley}/file/upload`;
|
|
|
|
|
|
|
|
// 加入我们
|
|
|
|
export const joinUs = params => axios.post(`${greenvalley}/PersonApply/joinUs`, params);
|
|
|
|
|
|
|
|
// 查询轮播图
|
|
|
|
export const queryRotation = params => axios.post(`${carousel}/query`, params);
|
|
|
|
|
|
|
|
// 查询行业政策列表
|
|
|
|
export const industryInfo = params => axios.post(`${greenvalley}/industryInfo/beforeSearch`, params);
|
|
|
|
|
|
|
|
// 查询活动公告列表
|
|
|
|
export const front = params => axios.post(`${activity}/query/front`, params);
|
|
|
|
|
|
|
|
// 申请加入活动
|
|
|
|
export const apply = params => axios.post(`${activity}/apply`, params);
|
|
|
|
|
|
|
|
// 查询衍生企业
|
|
|
|
export const frontSearchFriend = params => axios.post(`${Business}/FrontSearchFriend`, params);
|
|
|
|
|
|
|
|
// 查询合作伙伴
|
|
|
|
export const frontSearchCompany = params => axios.post(`${Business}/FrontSearchCompany`, params);
|
|
|
|
|
|
|
|
// 介绍页面详情查询
|
|
|
|
export const getPageDetail = params => axios.post(`${page}/detail`, params);
|
|
|
|
|
|
|
|
// 分类查询
|
|
|
|
export const selModel = params => axios.post(`${achInstr}/selModel`, params);
|
|
|
|
|
|
|
|
// 仪器列表查询
|
|
|
|
export const selInstrument = params => axios.post(`${achInstr}/selInstrument`, params);
|
|
|
|
|
|
|
|
// 仪器详情查询
|
|
|
|
export const selInstrumentMes = params => axios.post(`${achInstr}/selInstrumentMes`, params);
|
|
|
|
|
|
|
|
// 通过研究院(实验室)Id查询仪器列表
|
|
|
|
export const selInstrumentByRes = params => axios.post(`${achInstr}/selInstrumentByRes`, params);
|
|
|
|
|
|
|
|
// 研究院(实验室)列表查询
|
|
|
|
export const searchFront = params => axios.post(`${greenvalley}/institute/searchFront`, params);
|
|
|
|
|
|
|
|
// 研究院团队详情查询
|
|
|
|
export const teamSearch = params => axios.post(`${greenvalley}/teamGuide/teamSearch`, params);
|
|
|
|
|
|
|
|
// 成果列表查询
|
|
|
|
export const selRes = params => axios.post(`${achInstr}/selRes`, params);
|
|
|
|
|
|
|
|
// 成果详情查询
|
|
|
|
export const selResMes = params => axios.post(`${achInstr}/selResMes`, params);
|
|
|
|
|
|
|
|
// 服务列表查询
|
|
|
|
export const selService = params => axios.post(`${greenvalley}/serviceProject/selService`, params);
|
|
|
|
|
|
|
|
// 服务详情查询
|
|
|
|
export const selContent = params => axios.post(`${greenvalley}/serviceProject/selContent`, params);
|
|
|
|
|
|
|
|
// 查询用户购物车
|
|
|
|
export const SearchCar = params => axios.post(`${service}/SearchCar`, params);
|
|
|
|
// 服务/设备/成果直接申请(意向填报)
|
|
|
|
export const serviceApply = params => axios.post(`${service}/serviceApply`, params);
|
|
|
|
// 加入购物车
|
|
|
|
export const addCar = params => axios.post(`${service}/addCar`, params);
|
|
|
|
|
|
|
|
// 查询用户购物车
|
|
|
|
export const searchCar = params => axios.post(`${service}/SearchCar`, params);
|
|
|
|
|
|
|
|
// 加入购物车后购买
|
|
|
|
export const carAndBuy = params => axios.post(`${service}/CarAndBuy`, params);
|
|
|
|
|
|
|
|
// 登录人信息
|
|
|
|
export const getUserSer = params => axios.post(`${user}/userSer`, params);
|
|
|
|
|
|
|
|
// 查询 产品列表
|
|
|
|
export const selProduct = params => axios.post(`${product}/selProduct`, params);
|
|
|
|
|
|
|
|
// 查询 产品列表 详情
|
|
|
|
export const selProductMes = params => axios.post(`${product}/selProductMes`, params);
|
|
|
|
|
|
|
|
// 查询 创业导师
|
|
|
|
export const selTeacher = () => axios.post(`${tutorRelated}/selTeacher`);
|
|
|
|
|
|
|
|
// 入驻企业申请
|
|
|
|
export const Settled = params => axios.post(`${greenvalley}/place/apply`, params);
|
|
|
|
|
|
|
|
// 入驻企业名录查询
|
|
|
|
export const searchEnt = params => axios.post(`${greenvalley}/place/searchFront`, params);
|