Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用验证码框控件时,验证码长度为6位且弹窗显示时样式问题 #200

Closed
xu932045031 opened this issue Sep 26, 2018 · 11 comments
Assignees
Labels
bug Something isn't working @Components Components related P0 Highest priority

Comments

@xu932045031
Copy link

Mand Mobile Version

1.6

Recurring Steps

在使用验证码窗控件时,验证码长度为6位且弹窗显示时验证码输入框超出dialog的宽度。
image

Expectant Behaviors

验证码长度6位时,验证码输入框不会超出弹框

Actual Behaviors

验证码长度6位时,验证码输入框会超出弹框

@xxyan0205 xxyan0205 added the P0 Highest priority label Sep 27, 2018
moyus added a commit that referenced this issue Sep 29, 2018
@moyus moyus closed this as completed Sep 29, 2018
@xxyan0205 xxyan0205 added @Components Components related bug Something isn't working labels Oct 10, 2018
@yushi105
Copy link

按照 教程实例写的,Captcha submit 函数不执行呀,怎么回事

@xxyan0205
Copy link
Collaborator

Captcha submit 函数不执行呀

怎么用的?

@yushi105
Copy link

yushi105 commented Oct 18, 2019 via email

1 similar comment
@yushi105

This comment has been minimized.

@yushi105
Copy link

Captcha submit 函数不执行呀

怎么用的?

通过浏览器引入的方式,<md-captcha
ref="captcha"
v-model="isShow"
:title="title"
maxlength=6
mask="true"
@submit="onSub"
@show="onShow"
@hide="onHide"
@send="onSend">
{{content}}

js 里面 onSub 的方法,onSub (val) {
console.log(val)
setTimout(() =>{
// 执行自己的方发
}, 300)
}
isShow 为true时,onSub 都没执行,第一行都没打印
maxlength 为-1时,点击键盘确定会执行,但是打印val 是undefined,那么怎么获取 输入的验证码呢

@supergaojian
Copy link
Collaborator

1、请确认您的mand-mobile版本号是否为v2.x
2、如果满足第一条,麻烦请提供可完整复现的最小代码
谢谢

@zouhangwithsweet
Copy link
Collaborator

http://jsbin.com 来个 demo 吧

@yushi105
Copy link

1、请确认您的mand-mobile版本号是否为v2.x
2、如果满足第一条,麻烦请提供可完整复现的最小代码
谢谢
版本为最新2.5.3

<title>mand mobile 学习</title> <style> [v-clock]{ display: none !important; } *{ padding:0; margin: 0; } .btn{ width: 100%; height: 40px; } </style>

Captcha

{{contentMsg}}
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script> <script src="js/mand.min.js"></script> <script> var app = new Vue({ el: '#app', data: { isCaptcha: false, contentMsg: '验证码已发送至 152 **** 0000', }, created() { }, methods: { onSub (val) { console.log('走入onSub函数------') setTimeout(() => { if (val.length === 6) { console.log(val) this.isCaptcha = false } else { console.log(val) } }, 300); }, onShow () {console.log('onShow');}, onHide () {console.log('onHide');}, onSend () {console.log('onSend');}, } }) </script>

@supergaojian
Copy link
Collaborator

为了更好的方便您反馈描述问题,请添加mand mobile官方交流QQ群:493305323。我们会有人帮您解决问题

@supergaojian
Copy link
Collaborator

:maxlength="6" 您这里应该这样写的,而不是 maxlength=6

@didi didi deleted a comment from supergaojian Oct 21, 2019
@didi didi deleted a comment from yushi105 Oct 21, 2019
@yushi105
Copy link

yushi105 commented Oct 21, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @Components Components related P0 Highest priority
Projects
None yet
Development

No branches or pull requests

6 participants