Commit 09370a92 authored by agping's avatar agping

修改

parent d3632b31
<script id="user_list_tpl" type="text/template">
[% if(it[0]) { %]
[% for(var item in it){ %]
<tr>
<td>[%= it[item]['id'] %]</td>
<td>
[% if(it[item]["user_name"] != null) { %]
[%= it[item]["user_name"] %]
[% } %]
</td>
<td>[%= hideTel(it[item]["user_phone"]) %]</td>
<td>[%= it[item]["create_time"] %]</td>
<td>
[% if(it[item]["follow_time"] != null) { %]
[%= it[item]["follow_time"] %]
[% } %]
</td>
<td>
[% if(it[item]["status"] == -1) { %]
未注册
[% }else if(it[item]["status"] == 0) { %]
注册
[% }else{ %]
删除
[% } %]
</td>
<td>
[% if (it[item]['first_login_time'] == null){ %]
[% }else{ %]
[% } %]
</td>
<td>
[% if (it[item]['user_nick'] != null){ %]
[%= it[item]["user_nick"] %]
[% } %]
</td>
<td>
[% if (it[item]['registration_time'] != null){ %]
[%= it[item]["registration_time"] %]
[% } %]
</td>
<td>
[% if (it[item]['first_login_time'] != null){ %]
[%= it[item]["first_login_time"] %]
[% } %]
</td>
<td>
<a class="btn1 btn-success caozuo" href="#modal-record" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["id"] %]'>
详细信息
</a>
<a class="btn1 btn-success genj_ure" href="#modal-add" data-toggle="modal" data-id='[%= it[item]["id"] %]'>
跟进
</a>
<a class="btn1 btn-success take-look" href="#modal-takeLook" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-name='[%= it[item]["user_name"] %]' data-phone='[%= it[item]["user_phone"] %]'>
约带看
</a>
<!--<a class="btn1 btn-danger " href="#modal-delete" data-toggle="modal" onclick="delete_user(this)" data-id='[%= it[item]["id"] %]'>-->
<!--删除-->
<!--</a>-->
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="7" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
[% if(it[0]) { %] [% for(var item in it){ %]
<tr>
<td>[%= it[item]['id'] %]</td>
<td>
[% if(it[item]["user_name"] != null) { %] [%= it[item]["user_name"] %] [% } %]
</td>
<td>[%= hideTel(it[item]["user_phone"]) %]</td>
<td>[%= it[item]["create_time"] %]</td>
<td>
[% if(it[item]["follow_time"] != null) { %] [%= it[item]["follow_time"] %] [% } %]
</td>
<td>
[% if(it[item]["status"] == -1) { %] 未注册 [% }else if(it[item]["status"] == 0) { %] 注册 [% }else{ %] 删除 [% } %]
</td>
<td>
[% if (it[item]['first_login_time'] == null){ %] [% }else{ %] [% } %]
</td>
<td>
[% if (it[item]['user_nick'] != null){ %] [%= it[item]["user_nick"] %] [% } %]
</td>
<td>
[% if (it[item]['registration_time'] != null){ %] [%= it[item]["registration_time"] %] [% } %]
</td>
<td>
[% if (it[item]['first_login_time'] != null){ %] [%= it[item]["first_login_time"] %] [% } %]
</td>
<td>
[% if((check_auth('auth_vip ') && it[item]['vip']) || (it[item]['agent_id'] == it[item]['current_agent_id'])) { %]
<a class="btn1 btn-success caozuo" href="#modal-record" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["id"] %]'>
详细信息
</a>
<a class="btn1 btn-success genj_ure" href="#modal-add" data-toggle="modal" data-id='[%= it[item]["id"] %]'>
跟进
</a>
<a class="btn1 btn-success take-look" href="#modal-takeLook" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-name='[%= it[item]["user_name"] %]' data-phone='[%= it[item]["user_phone"] %]'>
约带看
</a>
[% } %]
<!--<a class="btn1 btn-danger " href="#modal-delete" data-toggle="modal" onclick="delete_user(this)" data-id='[%= it[item]["id"] %]'>-->
<!--删除-->
<!--</a>-->
</td>
</tr>
[% } %] [% }else{ %]
<tr>
<td colspan="7" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
\ No newline at end of file
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