|
@@ -4,8 +4,8 @@
|
|
|
<el-divider />
|
|
|
<i class="iconfont" :class="item.icon" style="font-size: 26px; margin-left: 20px;" />
|
|
|
<span style="margin-left: 20px;">{{ item.name }}</span>
|
|
|
- <span v-if="!ruleForm.email" style="margin-left: 20px; color: #666666">{{ item.desc }}</span>
|
|
|
- <span v-if="ruleForm.email" style="margin-left: 20px; color: #666666">{{ item.prompt }}</span>
|
|
|
+ <span v-if="!interfaceEmail" style="margin-left: 20px; color: #666666">{{ item.desc }}</span>
|
|
|
+ <span v-if="interfaceEmail" style="margin-left: 20px; color: #666666">{{ item.prompt }}</span>
|
|
|
</div>
|
|
|
<el-divider />
|
|
|
<cy-dialog ref="phonebinding" title="手机绑定">
|
|
@@ -182,6 +182,7 @@ export default {
|
|
|
email: '',
|
|
|
emailCode: ''
|
|
|
},
|
|
|
+ interfaceEmail: '',
|
|
|
rules: {},
|
|
|
phonebinding: 0,
|
|
|
password: 0,
|
|
@@ -195,6 +196,7 @@ export default {
|
|
|
handler(newV) {
|
|
|
if (this.deatilsInfo && Object.keys(newV).length) {
|
|
|
const { mobile, email } = JSON.parse(JSON.stringify(newV))
|
|
|
+ this.interfaceEmail = email
|
|
|
this.ruleForm = {
|
|
|
passwordMobile: mobile,
|
|
|
emailMobile: mobile,
|
|
@@ -329,6 +331,7 @@ export default {
|
|
|
emailBind(params).then(() => {
|
|
|
this.$message.success('邮箱绑定成功')
|
|
|
this.$refs.emailbinding.show = false
|
|
|
+ this.$router.go(0)
|
|
|
})
|
|
|
},
|
|
|
passwordConsistency() {
|