diff --git a/api/medication.js b/api/medication.js index 4491303..e29b121 100644 --- a/api/medication.js +++ b/api/medication.js @@ -8,170 +8,16 @@ function medication_login(data) { }) } -// 发送短信验证码 -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 => { +//登录 +function login(data) { + let url = '/login' + return http.get(url,data).then(res => { return res; }) } export default { - medication_create, - VerificationCode, - codelogin, - // register, - wechatminilogin, + login, medication_login, - getuptodate, - medication_edit, - homelist, - updatestatus, - enablereminder, - deletereminder, - remindermanage, - homesingle, - subscribe, - enablereminders, - picker, - determine, - determinetype, - shareimage } \ No newline at end of file diff --git a/common/config.js b/common/config.js index ee6ec31..059450c 100644 --- a/common/config.js +++ b/common/config.js @@ -1,5 +1,11 @@ -const Api_url='https://medication.zeyan.wang/' -const img_domian = 'https://medication.zeyan.wang/' +// 线上地址 +// const Api_url='http://146.56.228.75:20021/api' +// const img_domian = 'http://146.56.228.75:20021/' + +//本地测试地址 +const Api_url='http://zhjw.cc/api' +const img_domian = 'http://zhjw.cc/' + const IsDemo = false // const Api_url_B='http://hycrm.zeyan.wang/api/hygl' diff --git a/components/AQ/AQUplodeImgMulti.vue b/components/AQ/AQUplodeImgMulti.vue index f98b09f..253fb87 100644 --- a/components/AQ/AQUplodeImgMulti.vue +++ b/components/AQ/AQUplodeImgMulti.vue @@ -99,7 +99,7 @@ import {Api_url} from "../../common/config"; }, //上传接口地址 - uploadApiUrl: `${Api_url}api/upload/memberStore`, + uploadApiUrl: `${Api_url}api/file/image`, // 上传图片的样式 imageStyles: { diff --git a/pages/market/my/set_up.vue b/pages/market/my/set_up.vue index af5d87e..1849ad5 100644 --- a/pages/market/my/set_up.vue +++ b/pages/market/my/set_up.vue @@ -8,7 +8,7 @@ 清空缓存 - 退出账号 + 退出账号 @@ -21,6 +21,16 @@ } }, methods: { + //退出登陆 + logOut(){ + //清空用户缓存数据 + uni.removeStorageSync('userInfo'); + //跳转登陆页面 + uni.navigateTo({ + url: '/pages/student/login/login' + }) + }, + privacy_agreement(type){ uni.navigateTo({ url: '/pages/common/privacy_agreement?type='+type diff --git a/pages/student/login/login.vue b/pages/student/login/login.vue index 0031fb4..87887cf 100644 --- a/pages/student/login/login.vue +++ b/pages/student/login/login.vue @@ -36,12 +36,14 @@