import fetch from '@/common/fetch.js'; import BASE_URL from './base.js'; const USER_REGISTER = BASE_URL + '/webserver/userInfo/saveUserRegInfo.do' const USER_LOGIN = BASE_URL + '/webserver/userInfo/verifyUserLoginInfo.do' const USER_UPDATE = BASE_URL + '/webserver/userInfo/modifyPersonPassword.do' // 用户注册 export function registerUser(data) { return fetch.post(USER_REGISTER, data, {}, {'content-type': 'application/x-www-form-urlencoded'}).then(res => res); } // 用户登录 export function loginUser(data) { return fetch.post(USER_LOGIN, data, {}, {'content-type': 'application/x-www-form-urlencoded'}).then(res => res); } // 用户修改密码 export function updateUser(data) { return fetch.post(USER_UPDATE, data, {}, {'content-type': 'application/x-www-form-urlencoded'}).then(res => res); }