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