|
|
@ -126,7 +126,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item v-if="editphone === true || editemail === true"> |
|
|
|
|
|
|
|
<el-row :gutter="36"> |
|
|
|
|
|
|
|
<el-col :span="18"> |
|
|
|
|
|
|
|
<div id="captcha" ref="captcha"></div> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="下载域名"> |
|
|
|
<el-form-item label="下载域名"> |
|
|
|
<el-row :gutter="36"> |
|
|
|
<el-row :gutter="36"> |
|
|
@ -176,8 +182,8 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {getAuthcTokenFun, registerFun, userinfos} from '@/restful' |
|
|
|
import {changeInfoFun, getAuthcTokenFun, userinfos} from '@/restful' |
|
|
|
import {deepCopy} from "@/utils"; |
|
|
|
import {deepCopy, geetest} from "@/utils"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: "FirUserProfileInfo", |
|
|
|
name: "FirUserProfileInfo", |
|
|
@ -185,6 +191,7 @@ |
|
|
|
return { |
|
|
|
return { |
|
|
|
userinfo: { |
|
|
|
userinfo: { |
|
|
|
srccode: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg', |
|
|
|
srccode: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg', |
|
|
|
|
|
|
|
authcode: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
orguserinfo: {}, |
|
|
|
orguserinfo: {}, |
|
|
|
editphone: false, |
|
|
|
editphone: false, |
|
|
@ -193,13 +200,17 @@ |
|
|
|
edituser_name: false, |
|
|
|
edituser_name: false, |
|
|
|
editposition: false, |
|
|
|
editposition: false, |
|
|
|
cptch: {"cptch_image": '', "cptch_key": '', "length": 8}, |
|
|
|
cptch: {"cptch_image": '', "cptch_key": '', "length": 8}, |
|
|
|
|
|
|
|
form: {}, |
|
|
|
} |
|
|
|
} |
|
|
|
}, methods: { |
|
|
|
}, methods: { |
|
|
|
get_auth_code() { |
|
|
|
get_auth_code() { |
|
|
|
registerFun(data => { |
|
|
|
changeInfoFun(data => { |
|
|
|
if (data.code === 1000) { |
|
|
|
if (data.code === 1000) { |
|
|
|
this.cptch = data.data; |
|
|
|
this.cptch = data.data; |
|
|
|
this.userinfo.cptch_key = this.cptch.cptch_key; |
|
|
|
this.userinfo.cptch_key = this.cptch.cptch_key; |
|
|
|
|
|
|
|
if (this.userinfo.authcode) { |
|
|
|
|
|
|
|
this.userinfo.authcode = ''; |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
|
message: data.msg, |
|
|
|
message: data.msg, |
|
|
@ -316,17 +327,12 @@ |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.$refs.domain_name.$el.children[0].style.backgroundColor = '#f6ffdc'; |
|
|
|
this.$refs.domain_name.$el.children[0].style.backgroundColor = '#f6ffdc'; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, do_get_auth_token(params) { |
|
|
|
getsmsemailcode(act, target) { |
|
|
|
|
|
|
|
let picode = { |
|
|
|
|
|
|
|
"authcode": this.userinfo.authcode, |
|
|
|
|
|
|
|
"cptch_key": this.cptch.cptch_key, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
getAuthcTokenFun(data => { |
|
|
|
getAuthcTokenFun(data => { |
|
|
|
if (data.code === 1000) { |
|
|
|
if (data.code === 1000) { |
|
|
|
this.userinfo.act = act; |
|
|
|
this.userinfo.act = params.act; |
|
|
|
let msg = '您正在修改手机号码,验证码已经发送您手机'; |
|
|
|
let msg = '您正在修改手机号码,验证码已经发送您手机'; |
|
|
|
if (act === "email") { |
|
|
|
if (params.act === "email") { |
|
|
|
msg = '您正在修改邮箱,验证码已经发送您邮箱'; |
|
|
|
msg = '您正在修改邮箱,验证码已经发送您邮箱'; |
|
|
|
} |
|
|
|
} |
|
|
|
this.$notify({ |
|
|
|
this.$notify({ |
|
|
@ -339,7 +345,24 @@ |
|
|
|
this.$message.error(data.msg) |
|
|
|
this.$message.error(data.msg) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, {"methods": 'POST', 'data': {'act': act, 'target': target, 'ext': picode}}) |
|
|
|
}, {"methods": 'POST', 'data': params}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
getsmsemailcode(act, target) { |
|
|
|
|
|
|
|
let picode = { |
|
|
|
|
|
|
|
"authcode": this.userinfo.authcode, |
|
|
|
|
|
|
|
"cptch_key": this.cptch.cptch_key, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
let params = { |
|
|
|
|
|
|
|
'act': act, 'target': target, 'ext': picode |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
if (this.cptch.geetest) { |
|
|
|
|
|
|
|
this.form.email = target; |
|
|
|
|
|
|
|
geetest(this, params, (n_params) => { |
|
|
|
|
|
|
|
this.do_get_auth_token(n_params); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.do_get_auth_token(params); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, mounted() { |
|
|
|
}, mounted() { |
|
|
|
this.$store.dispatch('douserInfoIndex', 0); |
|
|
|
this.$store.dispatch('douserInfoIndex', 0); |
|
|
|