注销账号等待接口
This commit is contained in:
parent
292d2f0a36
commit
c851a2b173
86
js/cancellation.js
Normal file
86
js/cancellation.js
Normal file
@ -0,0 +1,86 @@
|
||||
mui.plusReady(function(){
|
||||
var wait = 120;
|
||||
|
||||
function time() {
|
||||
|
||||
if(wait == 0) {
|
||||
$('#mobileCode').removeAttr("disabled");
|
||||
$('#mobileCode').val("重新发送");
|
||||
wait = 120;
|
||||
} else {
|
||||
$('#mobileCode').attr("disabled", true);
|
||||
$('#mobileCode').val("重新发送(" + wait + ")");
|
||||
wait--;
|
||||
setTimeout(function() {
|
||||
time();
|
||||
},
|
||||
1000)
|
||||
}
|
||||
|
||||
}
|
||||
$(".photos").on("tap", 'img', function() {
|
||||
var _input = $(this).parent().parent().parent().prev()[0];
|
||||
UP.init(_input.id, "test", this.id)
|
||||
openCamera()
|
||||
})
|
||||
var token = localStorage.getItem('token');
|
||||
mui.ajax(qlgUrl('app/users/editPhone'), {
|
||||
headers: {
|
||||
"HYH-Token": token
|
||||
},
|
||||
data: {},
|
||||
dataType: 'json', //服务器返回json格式数据
|
||||
type: 'post', //HTTP请求类型
|
||||
timeout: 10000, //超时时间设置为10秒;
|
||||
success: function(data) { //服务器返回响应,根据响应结果,分析是否登录成功;
|
||||
var data = toJson(data);
|
||||
if (data.status == 1) {
|
||||
data = data.data;
|
||||
if (data.userPhone) {
|
||||
$('#userPhone').val(data.userPhone);
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
mui('.row').on('tap', '#mobileCode', function() {
|
||||
var that = $(this);
|
||||
|
||||
that.attr("disabled", true);
|
||||
alert('功能开发中');
|
||||
// mui.ajax(hyhUrl('app/users/backpayCode'), {
|
||||
//
|
||||
// data: {},
|
||||
// dataType: 'json', //服务器返回json格式数据
|
||||
// type: 'post', //HTTP请求类型
|
||||
// timeout: 10000, //超时时间设置为10秒
|
||||
// success: function(data) {
|
||||
// var data = toJson(data);
|
||||
// //服务器返回响应,根据响应结果,分析是否登录成功;
|
||||
// if(data.status == 1) {
|
||||
// time();
|
||||
// } else {
|
||||
// alert(data.msg)
|
||||
// }
|
||||
// that.removeAttr('disabled');
|
||||
// },
|
||||
//
|
||||
// error: function(xhr, type, errorThrown) {
|
||||
// //异常处理;
|
||||
// // alert(type)
|
||||
// // alert(type);
|
||||
// }
|
||||
// });
|
||||
})
|
||||
mui('.down').on('tap', '#true', function() {
|
||||
var phoneCode = $('#phoneCode').val();
|
||||
var that = $(this);
|
||||
if(phoneCode == '') {
|
||||
alert('验证码不能为空!');
|
||||
return;
|
||||
} else if(phoneCode.length < 4) {
|
||||
alert('验证码格式不正确!');
|
||||
return;
|
||||
}
|
||||
alert('功能开发中');
|
||||
})
|
||||
})
|
@ -24,7 +24,36 @@
|
||||
<div>三、请您更深入了解避免以后后悔莫及!</div>
|
||||
</div>
|
||||
<textarea class="shadown_wai" id="reason" name="reason" rows="" cols="" placeholder="请输入注销账号申请内容"></textarea>
|
||||
|
||||
<div class="renzhengphoto shadown_wai">
|
||||
<label for="">手持身份证照片</label>
|
||||
<input type="hidden" value='' class='handholdId inp' id="handholdId">
|
||||
<div class='photos'>
|
||||
<span></span>
|
||||
<div class="photos_con">
|
||||
<div class="regConfirm photo">
|
||||
<img src="" class='ossfile' id='handholdIdPic' alt="">
|
||||
<span class=""></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row shadown_wai">
|
||||
<img src="../img/icon_phone1.png" />
|
||||
<span class="s1">操作人:</span>
|
||||
<input type="text" name="userName" id="userName" value="" placeholder="请输入操作人姓名" />
|
||||
</div>
|
||||
<div class="row shadown_wai">
|
||||
<img src="../img/icon_phone1.png" />
|
||||
<span class="s1">手机号:</span>
|
||||
<input type="text" readonly="readonly" name="userPhone" id="userPhone" value="" placeholder="请输入手机号" />
|
||||
</div>
|
||||
<div class="row shadown_wai">
|
||||
<img src="../img/icon_pwd1.png" />
|
||||
<span class="s1">验证码:</span>
|
||||
<input class="yzm" type="text" name="phoneCode" id="phoneCode" value="" maxlength="6" placeholder="请输入验证码" />
|
||||
<input class="codeBtn" type="button" id="mobileCode" value="获取验证码"></input>
|
||||
<input class="codeBtn" type="button" id="mobileCode1" value="获取验证码" style="display: none;"></input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="down clearfix">
|
||||
<div class="btn shadown_wai" id="true">确定</div>
|
||||
@ -41,9 +70,9 @@
|
||||
parent.appendChild(element);
|
||||
|
||||
element.onload = function() {
|
||||
var style = [JZL.getCssUrl('setting_recive.css'), JZL.getCssUrl('login.css'), JZL.getCssUrl('sha.css'), JZL.getCssUrl('setting.css'), JZL.getCssUrl("global.css"), JZL.getCssUrl("header.css")];
|
||||
var style = [JZL.getCssUrl('login.css'), JZL.getCssUrl('sha.css'), JZL.getCssUrl('setting.css'), JZL.getCssUrl("global.css"), JZL.getCssUrl("header.css")];
|
||||
JZL.css_init(style);
|
||||
var script = [JZL.getJsUrl('setting_recive.js'), JZL.getJsUrl('common.js')];
|
||||
var script = [JZL.getJsUrl('cancellation.js'), JZL.getJsUrl('common.js')];
|
||||
JZL.js_init(script);
|
||||
setTimeout(function() {
|
||||
parent.style.visibility = "visible";
|
||||
|
Loading…
x
Reference in New Issue
Block a user