|
|
@ -11,163 +11,164 @@
|
|
|
|
</a-col> -->
|
|
|
|
</a-col> -->
|
|
|
|
<!-- <a-col :span="1" class="box-cen"></a-col> -->
|
|
|
|
<!-- <a-col :span="1" class="box-cen"></a-col> -->
|
|
|
|
<!-- 登录 -->
|
|
|
|
<!-- 登录 -->
|
|
|
|
<a-col class="box-b" v-if="status === 1">
|
|
|
|
<a-col class="box-b" v-if="status === 1">
|
|
|
|
<a-tabs v-model="activeName" @change="tabsSwitch">
|
|
|
|
<a-tabs v-model="activeName" @change="tabsSwitch">
|
|
|
|
<!-- <a-tab-pane key="1" tab="密码登录">
|
|
|
|
<!-- <a-tab-pane key="1" tab="密码登录">
|
|
|
|
</a-tab-pane> -->
|
|
|
|
</a-tab-pane> -->
|
|
|
|
<a-tab-pane key="2" tab="验证码登录"> </a-tab-pane>
|
|
|
|
<a-tab-pane key="2" tab="验证码登录"> </a-tab-pane>
|
|
|
|
</a-tabs>
|
|
|
|
</a-tabs>
|
|
|
|
<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-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
@click="login"
|
|
|
|
|
|
|
|
style="width: 90%; margin: 30px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
登录
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
<a-row style="margin-top: 20px; margin-left: 23px">
|
|
|
|
|
|
|
|
<a-col :span="14">
|
|
|
|
|
|
|
|
<a-checkbox></a-checkbox> 我已同意用户协议
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="10">
|
|
|
|
|
|
|
|
<span class="logintext" @click="status = 3">忘记密码</span
|
|
|
|
|
|
|
|
> <span
|
|
|
|
|
|
|
|
class="logintext"
|
|
|
|
|
|
|
|
@click="status = 2"
|
|
|
|
|
|
|
|
>免费注册</span
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</a-col>
|
|
|
|
</a-row> -->
|
|
|
|
</a-row>
|
|
|
|
<a-button
|
|
|
|
</div>
|
|
|
|
type="primary"
|
|
|
|
<div class="login-input" v-else-if="activeName === '2'">
|
|
|
|
@click="login"
|
|
|
|
<a-cascader
|
|
|
|
style="width: 90%; margin: 30px"
|
|
|
|
:options="cityList"
|
|
|
|
|
|
|
|
placeholder="请选择城市"
|
|
|
|
|
|
|
|
v-model="cityvalue"
|
|
|
|
|
|
|
|
:show-search="{ filter }"
|
|
|
|
|
|
|
|
@change="onChange"
|
|
|
|
|
|
|
|
:field-names="{
|
|
|
|
|
|
|
|
label: 'name',
|
|
|
|
|
|
|
|
value: 'id',
|
|
|
|
|
|
|
|
children: 'cityList',
|
|
|
|
|
|
|
|
}"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="form">
|
|
|
|
|
|
|
|
<a-select
|
|
|
|
|
|
|
|
v-model="communityCode"
|
|
|
|
|
|
|
|
notFoundContent="该城市无可选择小区"
|
|
|
|
|
|
|
|
:disabled="cityvalue.length === 0"
|
|
|
|
|
|
|
|
placeholder="请选择小区"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select-option
|
|
|
|
登录
|
|
|
|
v-for="item in communityList"
|
|
|
|
</a-button>
|
|
|
|
:key="item.id"
|
|
|
|
<a-row style="margin-top: 20px; margin-left: 23px">
|
|
|
|
:value="item.code"
|
|
|
|
<a-col :span="14">
|
|
|
|
>{{ item.name }}</a-select-option
|
|
|
|
<a-checkbox></a-checkbox> 我已同意<a href="/#/rule" target="tar">《用户协议》</a>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="10">
|
|
|
|
|
|
|
|
<span class="logintext" @click="status = 3">忘记密码</span
|
|
|
|
|
|
|
|
> <span
|
|
|
|
|
|
|
|
class="logintext"
|
|
|
|
|
|
|
|
@click="status = 2"
|
|
|
|
|
|
|
|
>免费注册</span
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="login-input" v-else-if="activeName === '2'">
|
|
|
|
|
|
|
|
<a-cascader
|
|
|
|
|
|
|
|
:options="cityList"
|
|
|
|
|
|
|
|
placeholder="请选择城市"
|
|
|
|
|
|
|
|
v-model="cityvalue"
|
|
|
|
|
|
|
|
:show-search="{ filter }"
|
|
|
|
|
|
|
|
@change="onChange"
|
|
|
|
|
|
|
|
:field-names="{
|
|
|
|
|
|
|
|
label: 'name',
|
|
|
|
|
|
|
|
value: 'id',
|
|
|
|
|
|
|
|
children: 'cityList',
|
|
|
|
|
|
|
|
}"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="form">
|
|
|
|
|
|
|
|
<a-select
|
|
|
|
|
|
|
|
v-model="communityCode"
|
|
|
|
|
|
|
|
notFoundContent="该城市无可选择小区"
|
|
|
|
|
|
|
|
:disabled="cityvalue.length === 0"
|
|
|
|
|
|
|
|
placeholder="请选择小区"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</a-select>
|
|
|
|
<a-select-option
|
|
|
|
<a-input
|
|
|
|
v-for="item in communityList"
|
|
|
|
placeholder="请输入手机号码"
|
|
|
|
:key="item.id"
|
|
|
|
v-model="form.tel"
|
|
|
|
:value="item.code"
|
|
|
|
></a-input>
|
|
|
|
>{{ item.name }}</a-select-option
|
|
|
|
<a-input
|
|
|
|
>
|
|
|
|
placeholder="请输入验证码"
|
|
|
|
</a-select>
|
|
|
|
v-model="form.code"
|
|
|
|
<a-input
|
|
|
|
style="width: 60%"
|
|
|
|
placeholder="请输入手机号码"
|
|
|
|
></a-input>
|
|
|
|
v-model="form.tel"
|
|
|
|
</span>
|
|
|
|
></a-input>
|
|
|
|
<a-button type="primary" @click="getCode">获取验证码</a-button>
|
|
|
|
<a-input
|
|
|
|
<a-row>
|
|
|
|
placeholder="请输入验证码"
|
|
|
|
<a-col :span="12" style="margin-left: 23px"
|
|
|
|
v-model="form.code"
|
|
|
|
><a-checkbox></a-checkbox> 三天之内免登陆</a-col
|
|
|
|
style="width: 60%"
|
|
|
|
>
|
|
|
|
></a-input>
|
|
|
|
</a-row>
|
|
|
|
</span>
|
|
|
|
<a-button
|
|
|
|
<a-button type="primary" @click="getCode">获取验证码</a-button>
|
|
|
|
type="primary"
|
|
|
|
<!-- <a-row>
|
|
|
|
@click="login"
|
|
|
|
<a-col :span="12" style="margin-left: 23px"
|
|
|
|
style="
|
|
|
|
><a-checkbox></a-checkbox> 三天之内免登陆</a-col
|
|
|
|
width: 90%;
|
|
|
|
|
|
|
|
margin-left: 30px;
|
|
|
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
|
|
height:38px;
|
|
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
登录
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
<a-row style="margin-top: 20px; margin-left: 23px">
|
|
|
|
|
|
|
|
<a-col :span="14">
|
|
|
|
|
|
|
|
<a-checkbox></a-checkbox> 我已同意用户协议
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="10">
|
|
|
|
|
|
|
|
<span class="logintext" @click="status = 3">忘记密码</span
|
|
|
|
|
|
|
|
> <span
|
|
|
|
|
|
|
|
class="logintext"
|
|
|
|
|
|
|
|
@click="status = 2"
|
|
|
|
|
|
|
|
>免费注册</span
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</a-col>
|
|
|
|
</a-row> -->
|
|
|
|
</a-row>
|
|
|
|
<a-button
|
|
|
|
</div>
|
|
|
|
type="primary"
|
|
|
|
</a-col>
|
|
|
|
@click="login"
|
|
|
|
<!-- 注册 -->
|
|
|
|
style="
|
|
|
|
<a-col class="box-b" v-if="status === 2">
|
|
|
|
width: 90%;
|
|
|
|
<div class="cardTitle">新建账号</div>
|
|
|
|
margin-left: 30px;
|
|
|
|
<a-form-model
|
|
|
|
margin-top: 20px;
|
|
|
|
ref="ruleForm"
|
|
|
|
height:38px;
|
|
|
|
:model="form"
|
|
|
|
margin-bottom: 10px;
|
|
|
|
:rules="rules"
|
|
|
|
|
|
|
|
layout="vertical"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-form-model-item ref="tel" label="手机号码" prop="tel">
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
v-model="form.tel"
|
|
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
|
|
placeholder="请输入手机号"
|
|
|
|
|
|
|
|
@blur="
|
|
|
|
|
|
|
|
() => {
|
|
|
|
|
|
|
|
$refs.tel.onFieldBlur();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
"
|
|
|
|
/>
|
|
|
|
>
|
|
|
|
<a-row style="margin-top: 20px">
|
|
|
|
登录
|
|
|
|
<a-col :span="16" style="margin-right: 10px">
|
|
|
|
</a-button>
|
|
|
|
<a-input
|
|
|
|
<a-row style="margin-top: 20px; margin-left: 23px">
|
|
|
|
style="width: 100%"
|
|
|
|
<a-col :span="14">
|
|
|
|
v-model="form.verificationCode"
|
|
|
|
<a-checkbox v-model="isChecked"></a-checkbox> 我已同意<a href="/#/rule" target="tar">《用户协议》</a>
|
|
|
|
placeholder="请输入验证码"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-col :span="10">
|
|
|
|
<a-button type="primary" @click="getCode"
|
|
|
|
<span class="logintext" @click="status = 3">忘记密码</span
|
|
|
|
>获取验证码</a-button
|
|
|
|
> <span
|
|
|
|
|
|
|
|
class="logintext"
|
|
|
|
|
|
|
|
@click="status = 2"
|
|
|
|
|
|
|
|
>免费注册</span
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
</a-form-model-item>
|
|
|
|
</div>
|
|
|
|
<a-form-model-item label="设置密码" prop="psw">
|
|
|
|
</a-col>
|
|
|
|
<a-input placeholder="请输入密码" />
|
|
|
|
<!-- 注册 -->
|
|
|
|
</a-form-model-item>
|
|
|
|
<a-col class="box-b" v-if="status === 2">
|
|
|
|
<a-form-model-item label="确认密码" prop="confirmPsw">
|
|
|
|
<div class="cardTitle">新建账号</div>
|
|
|
|
<a-input placeholder="请再次输入密码" />
|
|
|
|
<a-form-model
|
|
|
|
</a-form-model-item>
|
|
|
|
ref="ruleForm"
|
|
|
|
<a-form-model-item>
|
|
|
|
:model="form"
|
|
|
|
<a-button type="primary" style="width: 100%"> 确定 </a-button>
|
|
|
|
:rules="rules"
|
|
|
|
</a-form-model-item>
|
|
|
|
layout="vertical"
|
|
|
|
<a-form-model-item>
|
|
|
|
>
|
|
|
|
<span>已有账号?</span
|
|
|
|
<a-form-model-item ref="tel" label="手机号码" prop="tel">
|
|
|
|
><span class="logintext" @click="status = 1">登录</span>
|
|
|
|
<a-input
|
|
|
|
</a-form-model-item>
|
|
|
|
v-model="form.tel"
|
|
|
|
</a-form-model>
|
|
|
|
style="width: 100%"
|
|
|
|
</a-col>
|
|
|
|
placeholder="请输入手机号"
|
|
|
|
|
|
|
|
@blur="
|
|
|
|
|
|
|
|
() => {
|
|
|
|
|
|
|
|
$refs.tel.onFieldBlur();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<a-row style="margin-top: 20px">
|
|
|
|
|
|
|
|
<a-col :span="16" style="margin-right: 10px">
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
|
|
v-model="form.verificationCode"
|
|
|
|
|
|
|
|
placeholder="请输入验证码"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="6">
|
|
|
|
|
|
|
|
<a-button type="primary" @click="getCode"
|
|
|
|
|
|
|
|
>获取验证码</a-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item label="设置密码" prop="psw">
|
|
|
|
|
|
|
|
<a-input placeholder="请输入密码" />
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item label="确认密码" prop="confirmPsw">
|
|
|
|
|
|
|
|
<a-input placeholder="请再次输入密码" />
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item>
|
|
|
|
|
|
|
|
<a-button type="primary" style="width: 100%"> 确定 </a-button>
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
<a-form-model-item>
|
|
|
|
|
|
|
|
<span>已有账号?</span
|
|
|
|
|
|
|
|
><span class="logintext" @click="status = 1">登录</span>
|
|
|
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
</a-form-model>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
<!-- 找回密码 -->
|
|
|
|
<!-- 找回密码 -->
|
|
|
|
<a-col class="box-b" v-if="status === 3">
|
|
|
|
<a-col class="box-b" v-if="status === 3">
|
|
|
|
<div class="cardTitle">找回密码</div>
|
|
|
|
<div class="cardTitle">找回密码</div>
|
|
|
@ -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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|