285 lines
5.7 KiB
JavaScript
285 lines
5.7 KiB
JavaScript
import service from './request';
|
|
|
|
export function getJsapiSignature(appid,url) {
|
|
return service({
|
|
url:'/oauth2/getJsapiSignature/'+appid,
|
|
method: 'get',
|
|
params:{
|
|
url:url,
|
|
|
|
}
|
|
})
|
|
}
|
|
export function oauth2greet(appid,officeId,code) {
|
|
return service({
|
|
url:'/oauth2/greet/'+appid+'/'+officeId,
|
|
method: 'get',
|
|
params:{
|
|
code:code
|
|
|
|
}
|
|
})
|
|
}
|
|
export function getIndex() {
|
|
return service({
|
|
url:'/index',
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function queryDepars() {
|
|
return service({
|
|
url:'/officeserve/queryDepars',
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function queryPage(pageNum,title) {
|
|
return service({
|
|
url:'/interact/queryPage',
|
|
method: 'post',
|
|
data:{
|
|
pageNum:pageNum,
|
|
pageSize :10 ,
|
|
title:title
|
|
|
|
}
|
|
})
|
|
}
|
|
export function queryNoticeList() {
|
|
return service({
|
|
url:'/notice/queryNoticeList',
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function clickArticle(article_id) {
|
|
return service({
|
|
url:'/article/clickArticle/'+article_id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function Articleread(article_id) {
|
|
return service({
|
|
url:'/article/read/'+article_id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function Articlecollect(article_id,collect_flag) {
|
|
return service({
|
|
url:'/article/collect/'+article_id+'/'+collect_flag,
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function Articledetail(article_id) {
|
|
return service({
|
|
url:'/article/detail/'+article_id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function queryClickArticle(pageNum) {
|
|
return service({
|
|
url:'/article/queryClickArticle',
|
|
method: 'post',
|
|
data:{
|
|
// ceecId: 0,
|
|
pageNum:pageNum,
|
|
pageSize :10 ,
|
|
// tagId:0,
|
|
// title:'string'
|
|
}
|
|
})
|
|
}
|
|
export function queryColectArticle() {
|
|
return service({
|
|
url:'/article/queryColectArticle',
|
|
method: 'post'
|
|
})
|
|
}
|
|
export function queryReadArticle() {
|
|
return service({
|
|
url:'/article/queryReadArticle',
|
|
method: 'post'
|
|
})
|
|
}
|
|
export function getArticleList(url,pageNum,ceecId,title,mediaType,tagId) {
|
|
return service({
|
|
url:url,
|
|
method: 'post',
|
|
data:{
|
|
ceecId:ceecId ,
|
|
pageNum:pageNum,
|
|
pageSize :10 ,
|
|
tagId:tagId,
|
|
title:title,
|
|
mediaType:mediaType
|
|
}
|
|
})
|
|
}
|
|
export function getCeecArticleList(pageNum,ceecId,tagId,title) {
|
|
return service({
|
|
url:'/ceecArticleList',
|
|
method: 'post',
|
|
data:{
|
|
ceecId:ceecId ,
|
|
pageNum:pageNum,
|
|
pageSize :10 ,
|
|
tagId:tagId,
|
|
title:title
|
|
}
|
|
})
|
|
}
|
|
export function advise(content) {
|
|
return service({
|
|
url:'/advise/add',
|
|
method: 'post',
|
|
data:{
|
|
content:content ,
|
|
|
|
}
|
|
})
|
|
}
|
|
export function advisequeryPage(pageNum) {
|
|
return service({
|
|
url:'/advise/queryPage',
|
|
method: 'post',
|
|
data:{
|
|
pageNum:pageNum,
|
|
pageSize :10 ,
|
|
|
|
}
|
|
})
|
|
}
|
|
export function queryAddressTime(week) {
|
|
return service({
|
|
url:'/outpatient/queryAddressTime',
|
|
method: 'post',
|
|
data:{
|
|
week:week,
|
|
|
|
|
|
}
|
|
})
|
|
}
|
|
export function getmy() {
|
|
return service({
|
|
url:'/user/my',
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function queryList() {
|
|
return service({
|
|
url:'/medicalStaff/queryList',
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function medicalStaff(id) {
|
|
return service({
|
|
url:'/medicalStaff/get/'+id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function userInfo() {
|
|
return service({
|
|
url:'/user/info',
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function diseaseList() {
|
|
return service({
|
|
url:'/user/diseaseList',
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function educationalList() {
|
|
return service({
|
|
url:'/user/educationalList',
|
|
method: 'get'
|
|
})
|
|
}
|
|
export function positionList() {
|
|
return service({
|
|
url:'/user/positionList',
|
|
method: 'get'
|
|
})
|
|
}
|
|
// export function userUpdate(birthday,city,disease,district,educational,height,mobile,name,occupation,province,sex,weight) {
|
|
// return service({
|
|
// url:'/user/update',
|
|
// method: 'post',
|
|
// data:{
|
|
// birthday: birthday,
|
|
// city:city,
|
|
// disease: disease,
|
|
// district: district,
|
|
// educational:educational,
|
|
// height:height,
|
|
// mobile: mobile,
|
|
// name: name,
|
|
// occupation: occupation,
|
|
// province: province,
|
|
// sex:sex,
|
|
// weight: weight
|
|
// }
|
|
// })
|
|
// }
|
|
export function userUpdate(formData){
|
|
return service({
|
|
url:'/user/update',
|
|
method: 'post',
|
|
data:formData
|
|
})
|
|
}
|
|
export function medicalStaffqueryPage(pageNum,name) {
|
|
return service({
|
|
url:'/medicalStaff/queryPage',
|
|
method: 'post',
|
|
data:{
|
|
name:name,
|
|
pageNum:pageNum,
|
|
pageSize :10 ,
|
|
|
|
}
|
|
})
|
|
}
|
|
export function livequeryPage(pageNum) {
|
|
return service({
|
|
url:'/live/queryPage',
|
|
method: 'post',
|
|
data:{
|
|
pageNum:pageNum,
|
|
pageSize :10 ,
|
|
|
|
}
|
|
})
|
|
}
|
|
|
|
export function questionnaire(pageNum) {
|
|
return service({
|
|
url:'/questionnaire/queryPage',
|
|
method: 'post',
|
|
data:{
|
|
pageNum:pageNum,
|
|
pageSize :10 ,
|
|
|
|
}
|
|
})
|
|
}
|
|
|
|
// export function addCorrection(id,catalog_id,content) {
|
|
// return service({
|
|
// url:'/book/drughand/addCorrection',
|
|
// method: 'post',
|
|
// params:{
|
|
// id:id,
|
|
// catalog_id:catalog_id,
|
|
// content:content
|
|
// }
|
|
// })
|
|
// }
|
|
|
|
export const imgurl='https://health-edu.oss-cn-beijing.aliyuncs.com/';
|
|
// export const greet="http://dev.edu.igandan.com/gdxz-h5/oauth2/index/";
|
|
export const greet="https://h5.ixuanjiao.com/api/oauth2/index/";
|
|
// export const roootUrl='http://dev.edu.igandan.com/h5/index.html?officeid=';
|
|
// export const roootUrl='https://xuanjiao.igandan.com/h5/index.html?officeid=';
|
|
export const roootUrl='https://h5.ixuanjiao.com/index.html?officeid=';
|
|
export const fromwexin='&frommywexin=wx';
|
|
export const frommywexin='?frommywexin=wx'; |