Commit bca9fbda by 陈浩建

调整-用户个人信息保护承诺弹窗

parent 6797536c
...@@ -76,7 +76,8 @@ ...@@ -76,7 +76,8 @@
</a-input> </a-input>
</a-form-item> </a-form-item>
<div style="top:10px;float: left;font-size: 12px;color: #8b8b8b"> <div style="top:10px;float: left;font-size: 12px;color: #8b8b8b">
<a-checkbox v-model="single"></a-checkbox>&nbsp;我已阅读<a @click="commitmentSubmit">《用户个人信息保护承诺书》</a> <a-checkbox v-model="single" disabled></a-checkbox>&nbsp;
我已阅读<a @click="commitmentSubmit">《用户个人信息保护承诺书》</a>
</div><br/> </div><br/>
<div class="register"><router-link :to="{path: '/user/register'}">找回密码</router-link></div> <div class="register"><router-link :to="{path: '/user/register'}">找回密码</router-link></div>
<a-form-item style="margin-top:24vw/@vw"> <a-form-item style="margin-top:24vw/@vw">
...@@ -99,7 +100,7 @@ ...@@ -99,7 +100,7 @@
</two-step-captcha> </two-step-captcha>
<LeakProofModel :v-model="LeakProofModel"></LeakProofModel> <LeakProofModel :v-model="LeakProofModel"></LeakProofModel>
<commitment ref="commitment" :countNum="countNum" @appendData="appendData" v-show="commitment"></commitment> <commitment ref="commitment" :countNum="countNum" @appendData="appendData" v-show="commitment"></commitment>
</div> </div>
</div> </div>
</template> </template>
...@@ -128,7 +129,7 @@ export default { ...@@ -128,7 +129,7 @@ export default {
flag:false, flag:false,
LeakProofModel:true, LeakProofModel:true,
commitment:false, commitment:false,
countNum:15, countNum:10,
single:false, single:false,
buttondata:"登录", buttondata:"登录",
customActiveKey: "tab1", customActiveKey: "tab1",
...@@ -218,13 +219,16 @@ export default { ...@@ -218,13 +219,16 @@ export default {
}, },
appendData(data) { appendData(data) {
this.single = data; this.single = data.single;
this.commitment = data.commitment;
}, },
commitmentSubmit(){ commitmentSubmit(){
if(!this.flag){
this.countNum = 0;
}
this.commitment = true; this.commitment = true;
this.flag = true; this.flag = true;
this.$refs.commitment.setTimer(); this.$refs.commitment.setTimer();
return;
}, },
handleSubmit() { handleSubmit() {
if(!this.flag){ if(!this.flag){
...@@ -358,6 +362,7 @@ export default { ...@@ -358,6 +362,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/less/style'; @import '~@/assets/less/style';
.main{ .main{
.code-button{ .code-button{
...@@ -380,6 +385,8 @@ export default { ...@@ -380,6 +385,8 @@ export default {
} }
.register{ .register{
margin-bottom: 10vw/@vw; margin-bottom: 10vw/@vw;
font-size: 12px;
width: 50px;
} }
.form{ .form{
width: calc(100% - 666vw/@vw); width: calc(100% - 666vw/@vw);
...@@ -516,4 +523,8 @@ export default { ...@@ -516,4 +523,8 @@ export default {
.valid-error .ant-select-selection__placeholder { .valid-error .ant-select-selection__placeholder {
color: #f5222d; color: #f5222d;
} }
</style> .ant-modal-wrap{
top:10%
}
</style>
\ No newline at end of file
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
<script> <script>
export default { export default {
name: "Leak-proof-model",
data () { data () {
return { return {
modal: true, modal: true,
...@@ -28,6 +27,5 @@ export default { ...@@ -28,6 +27,5 @@ export default {
} }
</script> </script>
<style scoped> <style>
</style> </style>
\ No newline at end of file
<template> <template>
<a-modal <a-modal
title="用户个人信息保护承诺书" title="用户个人信息保护承诺书"
v-model="modal" v-model="modal"
...@@ -17,7 +18,6 @@ ...@@ -17,7 +18,6 @@
<script> <script>
export default { export default {
name: "Leak-proof-model",
data () { data () {
return { return {
modal: true, modal: true,
...@@ -36,8 +36,7 @@ export default { ...@@ -36,8 +36,7 @@ export default {
}, },
methods: { methods: {
ok () { ok () {
this.$emit("appendData",this.single); this.$emit("appendData", {single:this.single,modal:false});
this.modal = false
}, },
setTimer(){ setTimer(){
this.countDown = this.countNum; this.countDown = this.countNum;
...@@ -57,5 +56,4 @@ export default { ...@@ -57,5 +56,4 @@ export default {
</script> </script>
<style scoped> <style scoped>
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment