|
|
@@ -1,9 +1,9 @@ |
|
|
|
<template> |
|
|
|
<el-dialog title="" :visible.sync="dialogVisible" width="512px" > |
|
|
|
<el-dialog title="" :visible.sync="dialogVisible" width="512px" :close-on-click-modal="false" > |
|
|
|
<div class="login"> |
|
|
|
<div class="top"> |
|
|
|
登录体验更多 |
|
|
|
<i class="icon el-icon-close" @click="dialogVisible = false"></i> |
|
|
|
<i class="icon el-icon-close" @click="close"></i> |
|
|
|
</div> |
|
|
|
<h6>会员登录</h6> |
|
|
|
<el-form ref="form" :rules="rules" :model="form" label-width="0px"> |
|
|
@@ -68,6 +68,10 @@ export default { |
|
|
|
changeLoginType(val) { |
|
|
|
this.loginFlag = val |
|
|
|
}, |
|
|
|
close() { |
|
|
|
this.dialogVisible = false |
|
|
|
this.$emit('close') |
|
|
|
}, |
|
|
|
sendCode() { |
|
|
|
if (!this.form.phone) { |
|
|
|
this.$message({ |
|
|
@@ -111,8 +115,9 @@ export default { |
|
|
|
message: '注册成功', |
|
|
|
type: 'success' |
|
|
|
}); |
|
|
|
this.dialogVisible = false |
|
|
|
this.close() |
|
|
|
} else { |
|
|
|
this.getCode() |
|
|
|
this.$message({ |
|
|
|
message: res.data.message, |
|
|
|
type: 'warning' |
|
|
@@ -133,8 +138,9 @@ export default { |
|
|
|
message: '登录成功', |
|
|
|
type: 'success' |
|
|
|
}); |
|
|
|
this.dialogVisible = false |
|
|
|
this.close() |
|
|
|
} else { |
|
|
|
this.getCode() |
|
|
|
this.$message({ |
|
|
|
message: res.data.message, |
|
|
|
type: 'warning' |
|
|
@@ -151,7 +157,13 @@ export default { |
|
|
|
message: '登录成功', |
|
|
|
type: 'success' |
|
|
|
}); |
|
|
|
this.dialogVisible = false |
|
|
|
this.close() |
|
|
|
} else { |
|
|
|
this.getCode() |
|
|
|
this.$message({ |
|
|
|
message: res.data.message, |
|
|
|
type: 'warning' |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|