|
@@ -1,6 +1,20 @@
|
|
|
import request from "./request.js"
|
|
|
|
|
|
-
|
|
|
+// 特定时间
|
|
|
+export function getgrey(data) {
|
|
|
+ return request({
|
|
|
+ url: '/api/index/company',
|
|
|
+ method: 'get',
|
|
|
+ data
|
|
|
+ });
|
|
|
+}
|
|
|
+export function index(data) {
|
|
|
+ return request({
|
|
|
+ url: '/api/index',
|
|
|
+ method: 'get',
|
|
|
+ data
|
|
|
+ });
|
|
|
+}
|
|
|
// 文章详情
|
|
|
export function details(data,id) {
|
|
|
return request({
|
|
@@ -13,7 +27,7 @@ export function details(data,id) {
|
|
|
// 获取文章列表
|
|
|
export function getArticList(data,id,page,limit) {
|
|
|
return request({
|
|
|
- url: '/api/Article/lst?ifyid='+id+'&page='+page+'&limit='+limit,
|
|
|
+ url: '/api/Article/lst?ifyid='+id+'&order=releasetime desc',
|
|
|
method: 'get',
|
|
|
data
|
|
|
});
|
|
@@ -29,9 +43,9 @@ export function getList(data,id) {
|
|
|
}
|
|
|
|
|
|
// 爱心榜
|
|
|
-export function getlaveList(data,page,limit) {
|
|
|
+export function getlaveList(data) {
|
|
|
return request({
|
|
|
- url: '/api/lave/lst&page='+page+'&limit='+limit,
|
|
|
+ url: '/api/lave/lst',
|
|
|
method: 'get',
|
|
|
data
|
|
|
});
|
|
@@ -47,9 +61,9 @@ export function getvolunteerList(data) {
|
|
|
}
|
|
|
|
|
|
// 搜索
|
|
|
-export function getSearch(data,value,page,limit) {
|
|
|
+export function getSearch(data) {
|
|
|
return request({
|
|
|
- url: '/api/Article/lst?ifyid=0&key='+value+'&page='+page+'&limit='+limit,
|
|
|
+ url: '/api/Article/lst?ifyid=0&order=releasetime',
|
|
|
method: 'get',
|
|
|
data
|
|
|
});
|
|
@@ -57,7 +71,7 @@ export function getSearch(data,value,page,limit) {
|
|
|
// 志愿者搜索
|
|
|
export function getvSearch(data,value,page,limit) {
|
|
|
return request({
|
|
|
- url: '/api/Article/lst?ifyid=21&key='+value+'&page='+page+'&limit='+limit,
|
|
|
+ url: '/api/Article/lst?ifyid=21&key='+value+'&page='+page+'&limit='+limit+'&order=releasetime',
|
|
|
method: 'get',
|
|
|
data
|
|
|
});
|