webSite.js
3.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
import request from '@/utils/request'
export function getAboutDept() {
return request({
url: `/ztx-webSite/ztxWebsite/aboutDept`,
method: 'get',
params: {}
})
}
export function getAboutDeptLocal(memId) {
return request({
url: `/ztx-webSite/ztxWebsite/local/introduce`,
method: 'get',
params: { deptCode: memId }
})
}
export function getDept(memId) {
memId = memId || '0'
return request({
url: `/ztx-webSite/ztxWebsite/aboutDept/introduce`,
method: 'get',
params: { deptCode: memId }
})
}
export function getPersonInfo(id) {
return request({
url: `/ztx-webSite/ztxWebsite/personInfo`,
method: 'get',
params: { id: id }
})
}
export function getRuleKind() {
return request({
url: `/ztx-webSite/ztxWebsite/leftRules`,
method: 'get',
params: {}
})
}
export function getNoticeSorts() {
return request({
url: `/ztx-webSite/ztxWebsite/noticeSorts`,
method: 'get'
})
}
export function getNewsSorts() {
return request({
url: `/ztx-webSite/ztxWebsite/newsSorts`,
method: 'get'
})
}
export function getNewest() {
return request({
url: `/ztx-webSite/ztxWebsite/newsList/newest`,
method: 'get'
})
}
export function getHottest() {
return request({
url: `/ztx-webSite/ztxWebsite/newsList/hottest`,
method: 'get'
})
}
export function getTeammate(query) {
return request({
url: `/ztx-webSite/ztxWebsite/countyTeam/teammate`,
method: 'get',
params: query
})
}
export function getCptsorts() {
return request({
url: `/ztx-webSite/ztxWebsite/cptService/sorts`,
method: 'get'
})
}
// 根据id查新闻列表
export function getNewsListById(query) {
return request({
url: `/ztx-webSite/website/getNoticesListBySortId`,
method: 'get',
params: query
})
}
export function getnoteListcptid(query) {
return request({
url: `/ztx/note/noteList`,
method: 'get',
params: query
})
}
export function getNewsList(query) {
return request({
url: `/ztx-webSite/website/getNoticeTopList`,
method: 'get',
params: query
})
}
// 根据id查新闻详情
export function getNewsById(query) {
return request({
url: `/ztx-webSite/website/info`,
method: 'get',
params: query
})
}
// 根据标签查询人员 label: 0 国家队 1 教练 2 裁判 3 考官 4 官员 5 国青队 6 解说 8 全民健身
export function getPersonByLabel(query) {
return request({
url: `/ztx-webSite/ztxWebsite/getPersonByLabel`,
method: 'get',
params: query
})
}
export function getBannerListBySortId(sortId) {
return request({
url: `/ztx-webSite/ztxWebsite/bannerList`,
method: 'get',
params: { sortId: sortId }
})
}
export function getHomePage() {
return request({
url: `/ztx-webSite/ztxWebsite/homePage`,
method: 'get'
})
}
export function getDropsorts() {
return request({
url: `/ztx-webSite/ztxWebsite/noDropping/sorts`,
method: 'get'
})
}
export function getWeather() {
return request({
url: '/weather',
method: 'get'
})
}
export function getMain(id) {
return request({
url: `/league/competition/detail?id=${id}&`,
method: 'get'
})
}
export function getProjectMain(id) {
return request({
url: `/league/competitionProject/${id}`,
method: 'get'
})
}
export function getCompetitionList(query) {
return request({
url: `/league/competition/getCompetitionList`,
method: 'get',
params: query
})
}
export function getCompetitionProjectList(query) {
return request({
url: `/league/competitionProject/list`,
method: 'get',
params: query
})
}
export function getProjectTab(query) {
return request({
url: `/league/competitionProjectTab/list`,
method: 'get',
params: query
})
}
export function getImgList(query) {
return request({
url: `/league/competitionImage/list`,
method: 'get',
params: query
})
}