Commit de93cd92 authored by ZhuChunYang's avatar ZhuChunYang

导入名单功能更新

parent c440c496
...@@ -136,7 +136,7 @@ class CoinReleaseMemberController extends BaseController ...@@ -136,7 +136,7 @@ class CoinReleaseMemberController extends BaseController
unset($value[6]); unset($value[6]);
} }
//$result = CoinReleaseMember::implode($data); //$result = CoinReleaseMember::implode($data);
return ['code' => 0, 'msg' => '预览成功','data' => $data]; return ['code' => 0, 'msg' => '预览成功','data' => $data,'count' => count($data)];
} else { } else {
return ['code' => -1, 'msg' => '规则不存在']; return ['code' => -1, 'msg' => '规则不存在'];
} }
......
...@@ -41,7 +41,8 @@ upload.render({ ...@@ -41,7 +41,8 @@ upload.render({
tr_data += '<tr><td>'+data[i][1]+'</td><td>'+data[i][2]+'</td><td>'+data[i][3]+'</td></tr>'; tr_data += '<tr><td>'+data[i][1]+'</td><td>'+data[i][2]+'</td><td>'+data[i][3]+'</td></tr>';
} }
if(res.code == 0){ if(res.code == 0){
var html = '<table class="layui-table">' + var count_html = '<p style="color:#0000ff">共导入<b style="color:red">'+res.count+'</b>条记录:'+'</p>';
var html = count_html + '<table class="layui-table">' +
'<colgroup>\n' + '<colgroup>\n' +
'<col width="150">' + '<col width="150">' +
'<col width="150">' + '<col width="150">' +
......
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 to comment