diff --git a/api/api.js b/api/api.js new file mode 100644 index 0000000..81f343e --- /dev/null +++ b/api/api.js @@ -0,0 +1,23 @@ +import http from '../common/axios.js' + +//全部api接口 +export default { + //教师端登陆 + personnelLogin(data = {}) { + let url = '/personnelLogin' + return http.post(url, data).then(res => { + return res; + }) + }, + + //修改销售人员详情 + memberEdit(data = {}) { + let url = '/member/member_edit' + return http.post(url, data).then(res => { + return res; + }) + }, + + + +} \ No newline at end of file diff --git a/common/config.js b/common/config.js index 949925a..9e76a6b 100644 --- a/common/config.js +++ b/common/config.js @@ -1,10 +1,10 @@ -// 线上地址 -const Api_url='http://146.56.228.75:20021/api' -const img_domian = 'http://146.56.228.75:20021/' +// 线上测试地址 +// const Api_url='http://aaaaaaaa.hksywl.cn/api' +// const img_domian = 'http://aaaaaaaa.hksywl.cn/' //本地测试地址 -// const Api_url='http://zhjw.cc/api' -// const img_domian = 'http://zhjw.cc/' +const Api_url='http://zhjw.cc/api' +const img_domian = 'http://zhjw.cc/' const IsDemo = false diff --git a/pages/student/login/login.vue b/pages/student/login/login.vue index a7a4e20..80ca008 100644 --- a/pages/student/login/login.vue +++ b/pages/student/login/login.vue @@ -37,16 +37,19 @@