diff --git a/api/member.js b/api/member.js new file mode 100644 index 0000000..e29b121 --- /dev/null +++ b/api/member.js @@ -0,0 +1,23 @@ +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 login(data) { + let url = '/login' + return http.get(url,data).then(res => { + return res; + }) +} + + +export default { + login, + medication_login, +} \ No newline at end of file diff --git a/pages/student/login/login.vue b/pages/student/login/login.vue index e12ed8d..b04cd22 100644 --- a/pages/student/login/login.vue +++ b/pages/student/login/login.vue @@ -36,7 +36,7 @@