Merge branch 'test' of e.coding.net:g-cphe0354/duanju/new_app into gyq
This commit is contained in:
35
api/index/index.js
Normal file
35
api/index/index.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import http from '@/http/http.js'
|
||||
|
||||
// 获取弹窗信息
|
||||
export const announcement = (data) => {
|
||||
return http.request({
|
||||
url: '/announcement',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 获取公告
|
||||
export const messageselectMessage = (data) => {
|
||||
return http.request({
|
||||
url: '/message/selectMessage',
|
||||
data: {
|
||||
page: 1,
|
||||
limit: 5,
|
||||
state: 1
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取推荐视频
|
||||
export const courseselectCourse = (data) => {
|
||||
return http.request({
|
||||
url: '/course/selectCourse',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 搜索
|
||||
export const selectCourseTitles = (data) => {
|
||||
return http.request({
|
||||
url: '/course/selectCourseTitles',
|
||||
data
|
||||
})
|
||||
}
|
||||
13
api/init.js
Normal file
13
api/init.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import http from '@/http/http.js'
|
||||
|
||||
export async function init() {
|
||||
|
||||
//热搜词
|
||||
http.request({
|
||||
url: 'common/type/249',
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync('moreSearch', res.data.value)
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user