Commit 9b294834 by 梁建民

js

parent b7fbbe93
Showing with 6 additions and 17 deletions
......@@ -14,7 +14,7 @@
if (res.errcode === 0) {
//更新时间
$('.time').html('更新时间:'+res.data.update_time);
$('.time').html('更新时间:' + res.data.update_time);
//更新认证信息
if (id) {
......@@ -53,10 +53,10 @@
}
}else if(res.errcode === 107012){
} else if (res.errcode === 107012) {
$(".certisno").show();
}
});
......@@ -89,26 +89,15 @@
//新增会员认证信息
layui.form.on('submit(addauth)', function (data) {
//编辑id
var id = Util.getRequest('id'), url = '', params;
$(data.elem).addClass("layui-btn-disabled");
if (!opt.isClick) {
opt.isClick = true;
var param_add = $.extend({}, data.field, {token: opt.token}); //新增参数
var param_edit = $.extend({}, data.field, {token: opt.token, id: id});//编辑参数
id ? url = apis.editAuth : url = apis.addAuth;
id ? params = param_edit : params = param_add;
var params = $.extend({}, data.field, {token: opt.token}); //新增参数
IcController.getData(url, 'GET', params, function (res) {
IcController.getData(apis.addAuth, 'GET', params, function (res) {
if (res.errcode === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment