| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- import http from '@/utils/http'
- const headers = {
- "Content-Type": "application/json;charset=UTF-8"
- }
- // ------- 微信公众号授权 ---------------------
- // 获取微信授权信息
- export function apiGetWxAuth(params) {
- return http({ method: 'get', url: '/wechat/web_access_token/', params })
- }
- // 绑定微信 openid
- export function apiPostWxOpenId(data) {
- return http({ method: 'post', url: '/wechat/bind_openid_patient/', data })
- }
- // ------- 登录 ------------------------
- // 手机号查询患者预约详情,登录前判断
- export function apiGetClinicInfo(params) {
- return http({ method: 'get', url: '/returnvisit/phone_clinic_list/', params })
- }
- // 获取手机短信验证码
- export function apiGetMobileCode(params) {
- return http({ method: 'get', url: '/user/sms/', params })
- }
- // 手机号登录
- export function apiPostLogin(data) {
- return http({ method: 'post', url: '/user/phone_login/', data})
- }
- // 登出
- export function apiGetLogout(params) {
- return http({ method: 'get', url: '/user/logout/', params })
- }
- // 选择集团
- export function apiPostGroupCheck(data) {
- return http({ method: 'post', url: '/org/choose_group/', data })
- }
- // 获取用户信息
- export function apiGetUserInfo(data) {
- return http({ method: 'get', url: '/user/info/', data })
- }
- // ---------- 业务 -------------------------------------
- // 查询患者预约患者列表
- export function apiGetPatientList(params) {
- return http({ method: 'get', url: '/returnvisit/patient_clinic_list/', params })
- }
- // 查询患者信息
- export function apiGetPatientInfo(params) {
- return http({ method: 'get', url: '/returnvisit/patient_clinic_info/', params })
- }
- // 补充就诊人详情
- export function apiPostPatientInfo(data) {
- return http({ method: 'post', url: 'returnvisit/supply_patient_info/', data })
- }
- // 查询随诊人详情
- export function apiGetFollowInfo(params) {
- return http({ method: 'get', url: '/returnvisit/folower_clinic_info/', params })
- }
- // 提交随诊人详情
- export function apiPostFollowInfo(data) {
- return http({ method: 'post', url: '/returnvisit/supply_follower_info/', data })
- }
- // 获取问卷题目
- export function apiGetVolumeInfo(params) {
- return http({ method: 'get', url: '/returnvisit/quest_detail_list/', params })
- }
- // 保存问卷
- export function apiPostVolumeInfo(data) {
- return http({ method: 'post', url: '/returnvisit/fill_quest_info/', data })
- }
- // 获取问卷结果
- export function apiGetVolumeResult(params) {
- return http({ method: 'get', url: '/returnvisit/quest_result_info/', params })
- }
- // 获取问卷列表
- export function apiGetVolumeList(params) {
- return http({ method: 'get', url: '/orgdict/get_topic_list/', params })
- }
- // 保存问卷列表
- export function apiPostVolumeResult(data) {
- return http({ method: 'post', url: '/orgdict/add_detail/', data, headers })
- }
|