Commit 9b294834 by 梁建民

js

parent b7fbbe93
Showing with 4 additions and 15 deletions
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
if (res.errcode === 0) { if (res.errcode === 0) {
//更新时间 //更新时间
$('.time').html('更新时间:'+res.data.update_time); $('.time').html('更新时间:' + res.data.update_time);
//更新认证信息 //更新认证信息
if (id) { if (id) {
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
} }
}else if(res.errcode === 107012){ } else if (res.errcode === 107012) {
$(".certisno").show(); $(".certisno").show();
...@@ -89,26 +89,15 @@ ...@@ -89,26 +89,15 @@
//新增会员认证信息 //新增会员认证信息
layui.form.on('submit(addauth)', function (data) { layui.form.on('submit(addauth)', function (data) {
//编辑id
var id = Util.getRequest('id'), url = '', params;
$(data.elem).addClass("layui-btn-disabled"); $(data.elem).addClass("layui-btn-disabled");
if (!opt.isClick) { if (!opt.isClick) {
opt.isClick = true; opt.isClick = true;
var param_add = $.extend({}, data.field, {token: opt.token}); //新增参数 var params = $.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;
IcController.getData(url, 'GET', params, function (res) { IcController.getData(apis.addAuth, 'GET', params, function (res) {
if (res.errcode === 0) { 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