智慧教务系统UniApp前端项目(使用中2025-0517)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

177 lines
3.3 KiB

import http from '../common/axios.js'
// 账号密码登录
function medication_login(data) {
let url = '/dnseyeapi/Login/login'
return http.post(url, data).then(res => {
return res;
})
}
// 发送短信验证码
function VerificationCode(data) {
let url = '/dnseyeapi/Login/VerificationCode'
return http.post(url, data).then(res => {
return res;
})
}
// 短信验证码登录
function codelogin(data) {
let url = '/dnseyeapi/Login/codelogin'
return http.post(url, data).then(res => {
return res;
})
}
// 微信小程序登录
function wechatminilogin(data) {
let url = '/dnseyeapi/Login/wechatminilogin'
return http.post(url, data).then(res => {
return res;
})
}
//创建用药提醒
function medication_create(data) {
let url = '/dnseyeapi/Medication/add'
return http.post(url, data).then(res => {
return res;
})
}
//编辑用药提醒
function subscribe(data) {
let url = '/dnseyeapi/Medication/subscribe'
return http.post(url, data).then(res => {
return res;
})
}
//修改订阅状态
function medication_edit(data) {
let url = '/dnseyeapi/Medication/edit'
return http.post(url, data).then(res => {
return res;
})
}
//提醒记录
function homelist(data) {
let url = '/dnseyeapi/Medication/homelist'
return http.post(url, data).then(res => {
return res;
})
}
//更改是否用药状态
function updatestatus(data) {
let url = '/dnseyeapi/Medication/updatestatus'
return http.post(url, data).then(res => {
return res;
})
}
//更改是否提醒状态
function enablereminder(data) {
let url = '/dnseyeapi/Medication/enablereminder'
return http.post(url, data).then(res => {
return res;
})
}
//更改单条是否提醒状态
function enablereminders(data) {
let url = '/dnseyeapi/Medication/enablereminders'
return http.post(url, data).then(res => {
return res;
})
}
//删除提醒
function deletereminder(data) {
let url = '/dnseyeapi/Medication/deletereminder'
return http.post(url, data).then(res => {
return res;
})
}
//提醒管理
function remindermanage(data) {
let url = '/dnseyeapi/Medication/remindermanage'
return http.post(url, data).then(res => {
return res;
})
}
//搜索结果点击
function homesingle(data) {
let url = '/dnseyeapi/Medication/homesingle'
return http.post(url, data).then(res => {
return res;
})
}
//获取最新提醒
function getuptodate(data) {
let url = '/dnseyeapi/Myinfo/getuptodate'
return http.post(url, data).then(res => {
return res;
})
}
//picker值
function picker(data) {
let url = '/dnseyeapi/Medication/picker'
return http.post(url, data).then(res => {
return res;
})
}
//获取没有订阅的药品名称
function determine(data) {
let url = '/dnseyeapi/Medication/determine'
return http.post(url, data).then(res => {
return res;
})
}
//修改订阅状态
function determinetype(data) {
let url = '/dnseyeapi/Medication/determinetype'
return http.post(url, data).then(res => {
return res;
})
}
//获取分享图片
function shareimage() {
let url = '/dnseyeapi/Medication/shareimage'
return http.post(url).then(res => {
return res;
})
}
export default {
medication_create,
VerificationCode,
codelogin,
// register,
wechatminilogin,
medication_login,
getuptodate,
medication_edit,
homelist,
updatestatus,
enablereminder,
deletereminder,
remindermanage,
homesingle,
subscribe,
enablereminders,
picker,
determine,
determinetype,
shareimage
}