注销除接口及实际测试

This commit is contained in:
Jerry Yan 2020-08-16 15:21:09 +08:00
parent bc07aeb462
commit a5e58506a6
2 changed files with 24 additions and 25 deletions

View File

@ -46,30 +46,29 @@ mui.plusReady(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.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();

View File

@ -31,7 +31,7 @@
class="r2">收款信息管理</span><img class="youjiantou" src="../img/youjiantou.png" /></div>
</div>
<div class="loginout shadown_wai">退出登录</div>
<div class="footer cancellation shadown_wai hide">注销账号</div>
<div class="footer cancellation shadown_wai">注销账号</div>
</body>
<script src="../js/mui.min.js"></script>
<script src="../js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>