Authored by 郭成尧

verify-dialog-style-adjust

<div class="safe-check-tip">
您正在使用礼品卡支付,为了保障 您的安全,请进行安全验证。 验证码已发送至{{mobile}}手机号
<p>您正在使用礼品卡支付,为了保障 您的安全,请进行安全验证。</p>
<p>验证码已发送至{{mobile}}手机号</p>
</div>
<div class="safe-check-form">
<div class="input-group">
<input name="verifyCode" type="text" placeholder="短信验证码">
<input name="verifyCode" type="number" placeholder="请输入验证码">
<button id="getVerifyCodeBtn" class="get-verify-code-btn disable">重新获取 (60秒)</button>
</div>
<div class="tip">{{message}}</div>
</div>
\ No newline at end of file
... ...
... ... @@ -62,10 +62,12 @@ class OrderEnsure extends Page {
* @param {手机号} mobile
* @param {弹窗确定事件的回调} sureCallback
*/
showSafeCheckDialog(mobile, sureCallback) {
showSafeCheckDialog(renderData, sureCallback) {
dialog.showDialog({
hasHeader: '安全验证',
dialogText: safeCheckBoxHbs({ mobile: mobile }),
dialogText: safeCheckBoxHbs(Object.assign(renderData, {
mobile: this.selector.userMobile.val()
})),
hasFooter: {
leftBtnText: '取消',
rightBtnText: '确定'
... ... @@ -133,7 +135,7 @@ class OrderEnsure extends Page {
* 获取验证码倒计时
*/
countDown() {
let count = 9;
let count = 59;
let itime;
let $getVerifyCodeBtn = $('#getVerifyCodeBtn');
... ...
... ... @@ -270,7 +270,9 @@ function submitOrder(verifyCode) {
} else if (res.code === 409) {
richTip.show(res.message, res.buttons);
} else if (res.code === 411) {
orderEnsure.showSafeCheckDialog('123456789', submitOrder);
orderEnsure.showSafeCheckDialog({
message: res.message
}, submitOrder);
} else if (res.message) {
tip.show(res.message);
}
... ...