提交 7394bbdb authored 作者: lihuihui's avatar lihuihui

touxiangxiugai

上级 857dd5a0
......@@ -33,4 +33,8 @@ export default class OtherAction extends BaseACTION {
* 调用个人信心 - 修改密码
*/
updatePwd (obj) { return Other.updatePwd(obj).then(res => res) }
/**
* 调用个人信息 - 上传头像
*/
updatePic (obj) { return Other.updatePic(obj).then(res => res) }
}
......@@ -28,4 +28,8 @@ export default class OtherAPI extends BaseAPI {
* @param {[string]} obj.service 这里 一直是定值 h5.ezijing.com
*/
updatePwd = (obj = {}) => this.post('/user_center/change_password', _.assignIn(obj, { service: 'h5.ezijing.com' }), { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/**
* 个人信息 - 上传头像
*/
updatePic = (obj = {}) => this.post('/v3/storage/upload/avatar', obj, { headers: { 'Content-Type': 'multipart/form-data' } })
}
......@@ -99,7 +99,7 @@ export default {
const loading = this.$loading({ lock: true, text: '', spinner: '', background: 'rgba(255, 255, 255, 0.9)' })
request({
component: this,
actionName: 'loginAction',
actionName: 'Other',
functionName: 'updatePic',
data: this.file,
thenCallback: data => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论