|
|
@ -20,11 +20,11 @@
|
|
|
|
<div class="login-input" v-if="activeName === '1'">
|
|
|
|
<div class="login-input" v-if="activeName === '1'">
|
|
|
|
<a-input placeholder="请输入手机号码"></a-input>
|
|
|
|
<a-input placeholder="请输入手机号码"></a-input>
|
|
|
|
<a-input type="password" placeholder="请输入密码"></a-input>
|
|
|
|
<a-input type="password" placeholder="请输入密码"></a-input>
|
|
|
|
<a-row>
|
|
|
|
<!-- <a-row>
|
|
|
|
<a-col :span="12" style="margin-left: 23px"
|
|
|
|
<a-col :span="12" style="margin-left: 23px"
|
|
|
|
><a-checkbox></a-checkbox> 三天之内免登陆</a-col
|
|
|
|
><a-checkbox></a-checkbox> 三天之内免登陆</a-col
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</a-row>
|
|
|
|
</a-row> -->
|
|
|
|
<a-button
|
|
|
|
<a-button
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
@click="login"
|
|
|
|
@click="login"
|
|
|
@ -34,7 +34,7 @@
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
<a-row style="margin-top: 20px; margin-left: 23px">
|
|
|
|
<a-row style="margin-top: 20px; margin-left: 23px">
|
|
|
|
<a-col :span="14">
|
|
|
|
<a-col :span="14">
|
|
|
|
<a-checkbox></a-checkbox> 我已同意用户协议
|
|
|
|
<a-checkbox></a-checkbox> 我已同意<a href="/#/rule" target="tar">《用户协议》</a>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="10">
|
|
|
|
<a-col :span="10">
|
|
|
|
<span class="logintext" @click="status = 3">忘记密码</span
|
|
|
|
<span class="logintext" @click="status = 3">忘记密码</span
|
|
|
@ -46,6 +46,7 @@
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="login-input" v-else-if="activeName === '2'">
|
|
|
|
<div class="login-input" v-else-if="activeName === '2'">
|
|
|
|
<a-cascader
|
|
|
|
<a-cascader
|
|
|
|
:options="cityList"
|
|
|
|
:options="cityList"
|
|
|
@ -85,11 +86,11 @@
|
|
|
|
></a-input>
|
|
|
|
></a-input>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<a-button type="primary" @click="getCode">获取验证码</a-button>
|
|
|
|
<a-button type="primary" @click="getCode">获取验证码</a-button>
|
|
|
|
<a-row>
|
|
|
|
<!-- <a-row>
|
|
|
|
<a-col :span="12" style="margin-left: 23px"
|
|
|
|
<a-col :span="12" style="margin-left: 23px"
|
|
|
|
><a-checkbox></a-checkbox> 三天之内免登陆</a-col
|
|
|
|
><a-checkbox></a-checkbox> 三天之内免登陆</a-col
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</a-row>
|
|
|
|
</a-row> -->
|
|
|
|
<a-button
|
|
|
|
<a-button
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
@click="login"
|
|
|
|
@click="login"
|
|
|
@ -105,7 +106,7 @@
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
<a-row style="margin-top: 20px; margin-left: 23px">
|
|
|
|
<a-row style="margin-top: 20px; margin-left: 23px">
|
|
|
|
<a-col :span="14">
|
|
|
|
<a-col :span="14">
|
|
|
|
<a-checkbox></a-checkbox> 我已同意用户协议
|
|
|
|
<a-checkbox v-model="isChecked"></a-checkbox> 我已同意<a href="/#/rule" target="tar">《用户协议》</a>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="10">
|
|
|
|
<a-col :span="10">
|
|
|
|
<span class="logintext" @click="status = 3">忘记密码</span
|
|
|
|
<span class="logintext" @click="status = 3">忘记密码</span
|
|
|
@ -235,6 +236,7 @@ export default {
|
|
|
|
tel: "",
|
|
|
|
tel: "",
|
|
|
|
code: "",
|
|
|
|
code: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
isChecked: false,
|
|
|
|
communityCode: undefined,
|
|
|
|
communityCode: undefined,
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
tel: [
|
|
|
|
tel: [
|
|
|
@ -334,7 +336,11 @@ export default {
|
|
|
|
if (this.communityCode === undefined) {
|
|
|
|
if (this.communityCode === undefined) {
|
|
|
|
this.$message.error("先选择小区");
|
|
|
|
this.$message.error("先选择小区");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
if (this.isChecked == false) {
|
|
|
|
|
|
|
|
this.$message.error("请阅读并同意《用户协议》");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
};
|
|
|
|
loginTel(this.form).then((res) => {
|
|
|
|
loginTel(this.form).then((res) => {
|
|
|
|
if (res.code === 200) {
|
|
|
|
if (res.code === 200) {
|
|
|
|
this.$message.success(res.msg);
|
|
|
|
this.$message.success(res.msg);
|
|
|
@ -352,10 +358,10 @@ export default {
|
|
|
|
this.$message.error("先选择小区");
|
|
|
|
this.$message.error("先选择小区");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(this.getCommunityCode);
|
|
|
|
|
|
|
|
sendTelCode(this.form).then((res) => {
|
|
|
|
sendTelCode(this.form).then((res) => {
|
|
|
|
if (res) {
|
|
|
|
if (res) {
|
|
|
|
this.$message.success(res.msg + " " + res.data);
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
this.$message.success(res.msg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|