快捷支付 未签约处理

master
tpingzhang 5 years ago
parent aa6e695914
commit d68a6e7856

@ -167,8 +167,10 @@ function getSms() {
$("#sms").html("请求中");
smsstatus = false;
$("#bankdialog").show();
return ;
var sms=document.getElementById("sms");
/* $("#bankdialog").show();
return ; */
//获取短信验证码
$.ajax({
type: "POST",
@ -188,7 +190,6 @@ function getSms() {
var time=60;
if (validCode) {
validCode=false;
var sms=document.getElementById("sms");
var t=setInterval(function () {
time--;
sms.innerText=time+"秒"
@ -196,7 +197,6 @@ function getSms() {
if (time==0) {
clearInterval(t);
sms.innerText="获取短信验证码";
juege.inherit="";
validCode=true;
smsstatus = true;
@ -208,14 +208,13 @@ function getSms() {
else {
if (res.status== 2) { // 未签约
// 展示未签约页面
$("#sign_mibile").html($("#phoneNo").val());
$("#bankdialog").show();
sms.innerText="获取短信验证码";
smsstatus = true;
}
sms.innerText="获取短信验证码";
$("#tipmsg").html(res.info);
$("#msgdialog").show();
// $("#tipmsg").html(res.info);
// $("#msgdialog").show();
smsstatus = true;
}
@ -295,8 +294,11 @@ function getSignSms() {
var code = $("#sign_code").val();
if (!code) {
$("#tipmsg").html('参数不能为空');
$("#bankdialog").hide();
$("#msgdialog").show();
tiptype = 2;
signflag = true;
return ;
}
$.ajax({
type: "POST",
@ -359,6 +361,11 @@ $(function() {
/* $("#close_tip").click(function() {
$("#msgdialog").hide();
}); */
$("#close_img").click(function() {
$("#msgdialog").hide();
$("#bankdialog").hide();
});
$("#tipok,#close_tip").click(function() {
if (tiptype == 0) {
@ -411,8 +418,8 @@ $(function() {
<div class="js_dialog" id="bankdialog" style="display: none;">
<div class="weui-mask"></div>
<div class="weui-dialog" style="width: 6.3rem;max-width: 6.3rem;display: flex;flex-direction:column;padding-bottom: .3rem;">
<div style="width: 100%;text-align: left;height: .6rem;display: flex;">
<img src="__IMG__/close-black.png" style="width: .3rem;height: .3rem;margin: .3rem 0 0 .3rem;">
<div id="" style="width: 100%;text-align: left;height: .6rem;display: flex;">
<img id="close_img" src="__IMG__/close-black.png" style="width: .3rem;height: .3rem;margin: .3rem 0 0 .3rem;">
<div style="font-size: .28rem;margin-top: .3rem; flex-grow:1;text-align: center;">银行卡签约</div>
</div>
<div style="margin:.3rem .3rem;text-align: left;">
@ -429,7 +436,7 @@ $(function() {
<a id="sign_sms" onclick="getSignSms()" href="javascript:;" class="weui-btn" style="width: 1.5rem;font-size: .24rem;background-color: #21B1EB;color: #fff;border-radius: .1rem;height: .5rem;line-height:.5rem;">获取验证码</a>
</div>
</div>
<div style="width: 100%;text-align: center;display: flex;justify-content:center;margin-top: .3rem;">
<div id="close" style="width: 100%;text-align: center;display: flex;justify-content:center;margin-top: .3rem;">
<div onclick="signcontract();" id="sign_contract" style="width: 5.3rem;height: .6rem;background-color: #21B1EB;color: #ffffff;font-size: .28rem;border-radius:5px;line-height: .6rem;">
确认
</div>

Loading…
Cancel
Save