You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import http from '../utils/http'
|
|
|
|
import request from '../utils/request'
|
|
|
|
//
|
|
|
|
/**
|
|
|
|
* @parms resquest 请求地址 例如:http://197.82.15.15:8088/request/...
|
|
|
|
* @param '/testIp'代表vue-cil中config,index.js中配置的代理
|
|
|
|
*/
|
|
|
|
const baseUrl =
|
|
|
|
process.env.NODE_ENV === "development" ? "" : config.baseUrl.pro;
|
|
|
|
// get请求
|
|
|
|
const testApi = {
|
|
|
|
getListAPI(params) {
|
|
|
|
return http.get('/api/joke/list', params)
|
|
|
|
},
|
|
|
|
postFormAPI(params) {
|
|
|
|
return http.post('/api/user/reg', params)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default testApi
|
|
|
|
export function prcCollectionListForGov (params) {
|
|
|
|
return request({
|
|
|
|
url: '/api/PartyApi/PrcCollectionListForGov',
|
|
|
|
method: 'post',
|
|
|
|
data: params,
|
|
|
|
params
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getVegetableOutputList (params) {
|
|
|
|
return request({
|
|
|
|
url: '/api/resi/partymember/screenenterpriseoutput/yifengScreen/getVegetableOutputList',
|
|
|
|
method: 'GET',
|
|
|
|
params
|
|
|
|
})
|
|
|
|
}
|
|
|
|
//种业资讯列表
|
|
|
|
export function seedNewsScreenList (params) {
|
|
|
|
return request({
|
|
|
|
url: '/api/resi/partymember/yifengScreen/seedNewsScreenList',
|
|
|
|
method: 'GET',
|
|
|
|
params
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 种业资讯详情
|
|
|
|
export function seedNewsScreenDetail (id) {
|
|
|
|
return request({
|
|
|
|
url: `/api/resi/partymember/yifengScreen/seedNewsScreenDetail/${id}`,
|
|
|
|
method: 'GET'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 种都力量-企业详情
|
|
|
|
export function getVegetableOutputListDetail () {
|
|
|
|
return request({
|
|
|
|
url: '/api/resi/partymember/screenenterpriseoutput/yifengScreen/getVegetableOutputListDetail',
|
|
|
|
method: 'GET'
|
|
|
|
})
|
|
|
|
}
|