|
|
@ -167,8 +167,10 @@ function getSms() {
|
|
|
|
$("#sms").html("请求中");
|
|
|
|
$("#sms").html("请求中");
|
|
|
|
smsstatus = false;
|
|
|
|
smsstatus = false;
|
|
|
|
|
|
|
|
|
|
|
|
$("#bankdialog").show();
|
|
|
|
var sms=document.getElementById("sms");
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
|
|
/* $("#bankdialog").show();
|
|
|
|
|
|
|
|
return ; */
|
|
|
|
//获取短信验证码
|
|
|
|
//获取短信验证码
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
type: "POST",
|
|
|
|
type: "POST",
|
|
|
@ -188,7 +190,6 @@ function getSms() {
|
|
|
|
var time=60;
|
|
|
|
var time=60;
|
|
|
|
if (validCode) {
|
|
|
|
if (validCode) {
|
|
|
|
validCode=false;
|
|
|
|
validCode=false;
|
|
|
|
var sms=document.getElementById("sms");
|
|
|
|
|
|
|
|
var t=setInterval(function () {
|
|
|
|
var t=setInterval(function () {
|
|
|
|
time--;
|
|
|
|
time--;
|
|
|
|
sms.innerText=time+"秒"
|
|
|
|
sms.innerText=time+"秒"
|
|
|
@ -196,7 +197,6 @@ function getSms() {
|
|
|
|
if (time==0) {
|
|
|
|
if (time==0) {
|
|
|
|
clearInterval(t);
|
|
|
|
clearInterval(t);
|
|
|
|
sms.innerText="获取短信验证码";
|
|
|
|
sms.innerText="获取短信验证码";
|
|
|
|
|
|
|
|
|
|
|
|
juege.inherit="";
|
|
|
|
juege.inherit="";
|
|
|
|
validCode=true;
|
|
|
|
validCode=true;
|
|
|
|
smsstatus = true;
|
|
|
|
smsstatus = true;
|
|
|
@ -207,15 +207,14 @@ function getSms() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
if (res.status== 2) { // 未签约
|
|
|
|
if (res.status== 2) { // 未签约
|
|
|
|
// 展示未签约页面
|
|
|
|
// 展示未签约页面
|
|
|
|
|
|
|
|
$("#sign_mibile").html($("#phoneNo").val());
|
|
|
|
$("#bankdialog").show();
|
|
|
|
$("#bankdialog").show();
|
|
|
|
sms.innerText="获取短信验证码";
|
|
|
|
|
|
|
|
smsstatus = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sms.innerText="获取短信验证码";
|
|
|
|
sms.innerText="获取短信验证码";
|
|
|
|
$("#tipmsg").html(res.info);
|
|
|
|
// $("#tipmsg").html(res.info);
|
|
|
|
$("#msgdialog").show();
|
|
|
|
// $("#msgdialog").show();
|
|
|
|
smsstatus = true;
|
|
|
|
smsstatus = true;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -295,8 +294,11 @@ function getSignSms() {
|
|
|
|
var code = $("#sign_code").val();
|
|
|
|
var code = $("#sign_code").val();
|
|
|
|
if (!code) {
|
|
|
|
if (!code) {
|
|
|
|
$("#tipmsg").html('参数不能为空');
|
|
|
|
$("#tipmsg").html('参数不能为空');
|
|
|
|
$("#msgdialog").show();
|
|
|
|
$("#bankdialog").hide();
|
|
|
|
|
|
|
|
$("#msgdialog").show();
|
|
|
|
|
|
|
|
tiptype = 2;
|
|
|
|
signflag = true;
|
|
|
|
signflag = true;
|
|
|
|
|
|
|
|
return ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
type: "POST",
|
|
|
|
type: "POST",
|
|
|
@ -359,6 +361,11 @@ $(function() {
|
|
|
|
/* $("#close_tip").click(function() {
|
|
|
|
/* $("#close_tip").click(function() {
|
|
|
|
$("#msgdialog").hide();
|
|
|
|
$("#msgdialog").hide();
|
|
|
|
}); */
|
|
|
|
}); */
|
|
|
|
|
|
|
|
$("#close_img").click(function() {
|
|
|
|
|
|
|
|
$("#msgdialog").hide();
|
|
|
|
|
|
|
|
$("#bankdialog").hide();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tipok,#close_tip").click(function() {
|
|
|
|
$("#tipok,#close_tip").click(function() {
|
|
|
|
if (tiptype == 0) {
|
|
|
|
if (tiptype == 0) {
|
|
|
@ -411,8 +418,8 @@ $(function() {
|
|
|
|
<div class="js_dialog" id="bankdialog" style="display: none;">
|
|
|
|
<div class="js_dialog" id="bankdialog" style="display: none;">
|
|
|
|
<div class="weui-mask"></div>
|
|
|
|
<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 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;">
|
|
|
|
<div id="" 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;">
|
|
|
|
<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 style="font-size: .28rem;margin-top: .3rem; flex-grow:1;text-align: center;">银行卡签约</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="margin:.3rem .3rem;text-align: left;">
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
</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 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>
|
|
|
|
</div>
|
|
|
|