diff --git a/src/api/optimize.js b/src/api/optimize.js index e384b03..e21f444 100644 --- a/src/api/optimize.js +++ b/src/api/optimize.js @@ -1,54 +1,43 @@ -import request from '@/config/request_java'; +import request from '@/config/request'; export const APIOptimize = { - getExpertList, // 获取专家列表 - getTalkList, // 获取养育话题列表 - addTalkLabels, // 新增养育话题标签 - getCampList, // 获取训练营列表 - getCampRecommendList // 获取训练营推荐列表 + getCampList, // 获取训练营列表 + getTrainingCampDetail, //获取训练营-详情-简介+内容 + getTrainingCampDetailComment, //获取训练营-详情-评论 + comment //评论课程 }; export default APIOptimize; -// 获取专家列表 -function getExpertList(id) { +// 获取训练营列表 +function getCampList(params) { return request({ - url: `/java_api/optimize/getExpertList`, - method: 'get', - params: { id } + url: `/api/HealthyCMS/GetTrainingCamp`, + method: 'post', + data: params }); } - -// 获取养育话题列表 -function getTalkList(id) { - return request({ - url: `/java_api/optimize/getTalkList`, - method: 'get', - params: { id } - }); - } - -// 新增养育话题标签 -function addTalkLabels(params) { - return request({ - url: `/java_api/optimize/addTalkLabels`, - method: 'post', - data: params - }); - } - -// 获取训练营列表 -function getCampList(id) { +// 获取训练营-详情-简介+内容 +function getTrainingCampDetail(data) { return request({ - url: `/java_api/optimize/getCampList`, - method: 'get', - params: { id } + url: `/api/HealthyCMS/GetTrainingCampDetail`, + method: 'post', + params: data + }); +} +// 获取训练营-详情-评论 +function getTrainingCampDetailComment(params) { + return request({ + url: `/api/HealthyCMS/GetTrainingCampDetailComment`, + method: 'post', + data: params }); } -// 获取训练营推荐列表 -function getCampRecommendList() { +//评论课程 +function comment(params) { return request({ - url: `/java_api/optimize/getCampRecommendList`, - method: 'get' + url: `/api/HealthyCMS/Comment`, + method: 'post', + data: params }); -} \ No newline at end of file +} diff --git a/src/components/TabBar.vue b/src/components/TabBar.vue index 3ef59ce..c38c962 100644 --- a/src/components/TabBar.vue +++ b/src/components/TabBar.vue @@ -1,6 +1,6 @@