111
This commit is contained in:
+41
-10
@@ -3,7 +3,7 @@ const loadingTime = 500;
|
||||
const showLog = false;
|
||||
const api = {
|
||||
wxLogin(data) {
|
||||
return request('/login/wechat_mobile_login', data, 'post', true);
|
||||
return request('/login/wechat/mobile', data, 'post', true);
|
||||
},
|
||||
mobileLogin(data) {
|
||||
return request('/login/mobile_login', data, 'post', true);
|
||||
@@ -13,17 +13,48 @@ const api = {
|
||||
},
|
||||
|
||||
getHomeData(data) { //首页数据
|
||||
return request('/index', data, 'get', true);
|
||||
return request('/index/clinical', data, 'get', true);
|
||||
},
|
||||
getClassify(id) { //获取分类详情
|
||||
return request('/class/' + id, {}, 'get', true);
|
||||
},
|
||||
getClassifyList() { //获取分类详情
|
||||
return request('/class/list', {}, 'get', false);
|
||||
},
|
||||
getQuestionPage(data) { //获取问题列表-分页
|
||||
return request('/question/page', data, 'post', true, 'application/json');
|
||||
getHomeStatics(data) { //首页统计数据
|
||||
return request('/clinical/stats', data, 'get', true);
|
||||
},
|
||||
getArticleDetail(id) { //获取详情
|
||||
return request('/clinical/article/'+id,{}, 'get', true);
|
||||
},
|
||||
getVideoDetail(id) { //获取详情
|
||||
return request('/clinical/video/'+id,{}, 'get', true);
|
||||
},
|
||||
collectArticle(id){
|
||||
return request('/api/clinical/article/collect/'+id, {}, 'post',false);
|
||||
},
|
||||
cancelCollectArticle(id){
|
||||
return request('/api/clinical/article/collect/'+id, {}, 'delete',false);
|
||||
},
|
||||
collectVideo(id){
|
||||
return request('/api/clinical/video/collect/'+id, {}, 'post',false);
|
||||
},
|
||||
cancelCollectVideo(id){
|
||||
return request('/api/clinical/video/collect/'+id,{}, 'delete',false);
|
||||
},
|
||||
searchArticle(data){
|
||||
return request('/clinical/article/search', data, 'post',true,'application/json');
|
||||
},
|
||||
searchVideo(data){
|
||||
return request('/clinical/video/search', data, 'post',true,'application/json');
|
||||
},
|
||||
searchDoctor(data){
|
||||
return request('/clinical/doctor/search', data, 'post',true,'application/json');
|
||||
},
|
||||
searchHospital(data){
|
||||
return request('/clinical/hospital/search', data, 'post',true,'application/json');
|
||||
},
|
||||
getStaticDoctor(id){
|
||||
return request('/clinical/stats/doctor/'+id, data={}, 'post',false);
|
||||
},
|
||||
getStaticHospital(id){
|
||||
return request('/clinical/stats/hospital/'+id, data={}, 'post',false);
|
||||
},
|
||||
|
||||
queryList(data) {
|
||||
const listCount = 24;
|
||||
return _queryList(data, listCount);
|
||||
|
||||
Reference in New Issue
Block a user