|
|
@ -1,7 +1,7 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="bs-login">
|
|
|
|
<div class="bs-login">
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
:visible.sync="dialogTableVisible"
|
|
|
|
:visible.sync="dialogVisible"
|
|
|
|
:show-close="false"
|
|
|
|
:show-close="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
@ -35,11 +35,11 @@
|
|
|
|
>登录</el-button
|
|
|
|
>登录</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div class="login-wrap-content__agreement flex felx-start">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
@click="onAgreementSelect"
|
|
|
|
class="wrap-content-agreement-icons"
|
|
|
|
class="login-wrap-content__agreement flex felx-start"
|
|
|
|
@click="onAgreementSelect"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="wrap-content-agreement-icons">
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
v-if="isAcceptAgreement"
|
|
|
|
v-if="isAcceptAgreement"
|
|
|
|
class="icon-choose"
|
|
|
|
class="icon-choose"
|
|
|
@ -48,7 +48,7 @@
|
|
|
|
<span v-else class="icon-unchoose"></span>
|
|
|
|
<span v-else class="icon-unchoose"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span class="wrap-content-agreement__text flex-1">
|
|
|
|
<span class="wrap-content-agreement__text flex-1">
|
|
|
|
同意《用户协议》和《隐私协议》,首次 登陆将自动注册
|
|
|
|
同意《用户协议》和《隐私协议》,首次登录将自动注册
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -101,11 +101,17 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
...mapState(["token"]),
|
|
|
|
...mapState(["token"]),
|
|
|
|
dialogTableVisible: {
|
|
|
|
dialogVisible: {
|
|
|
|
get() {
|
|
|
|
get() {
|
|
|
|
return this.visible;
|
|
|
|
return this.visible;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
set(val) {
|
|
|
|
set(val) {
|
|
|
|
|
|
|
|
if (!val) {
|
|
|
|
|
|
|
|
Object.assign(this.form, {
|
|
|
|
|
|
|
|
phone: "",
|
|
|
|
|
|
|
|
verificationCode: "",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
this.$emit("update:visible", val);
|
|
|
|
this.$emit("update:visible", val);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -159,7 +165,7 @@ export default {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
this.dialogTableVisible = false;
|
|
|
|
this.dialogVisible = false;
|
|
|
|
this.$store.commit("setToken", result.token);
|
|
|
|
this.$store.commit("setToken", result.token);
|
|
|
|
this.$store.dispatch("getUserInfo");
|
|
|
|
this.$store.dispatch("getUserInfo");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -167,7 +173,7 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onClose() {
|
|
|
|
onClose() {
|
|
|
|
this.dialogTableVisible = false;
|
|
|
|
this.dialogVisible = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -227,6 +233,7 @@ export default {
|
|
|
|
color: #999999;
|
|
|
|
color: #999999;
|
|
|
|
font-size: 12px;
|
|
|
|
font-size: 12px;
|
|
|
|
margin-top: 25px;
|
|
|
|
margin-top: 25px;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
.wrap-content-agreement-icons {
|
|
|
|
.wrap-content-agreement-icons {
|
|
|
|
cursor: pointer;
|
|
|
|
cursor: pointer;
|
|
|
|
.icon-unchoose {
|
|
|
|
.icon-unchoose {
|
|
|
|