Commit 47c93755 authored by agping's avatar agping

修改

parent b16eb189
......@@ -1345,6 +1345,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
if(typeof data === 'object') {
if (data.code == 200) {
var temp = document.getElementById('remark_follow_tpl').innerHTML;
var doTtmpl = doT.template(temp);
$("#follow_list").html(doTtmpl(data.data.data.list));
......
<script id="remark_follow_tpl" type="text/template">
[% var sw=function(s){switch(Number(s)){case 2:return"btn-info";case 1:return"btn-default"}}; %]
[% var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));%]
[% if(it[0]) { %]
[% for(var item in it){ %]
<tr class="text-center">
......@@ -30,7 +32,7 @@
<td>[%= hideTel(it[item]['user_phone']) %]</td>
<td width="16%">
[% if((check_auth('auth_vip') && it[item]['vip']) || (it[item]['agent_id'] == 0) || (it[item]['agent_id'] == it[item]['current_agent_id']) || (check_auth('index/useraction_search') && it[item]['vip'] == 0 && it[item]["is_outstrip_twenty_four_hours"]*1)) { %]
[% if((check_auth('auth_vip') && it[item]['vip']) || (it[item]['agent_id'] == 0) || (it[item]['agent_id'] == user_info_obj.id) || (check_auth('index/useraction_search') && it[item]['vip'] == 0 && it[item]["is_outstrip_twenty_four_hours"]*1)) { %]
<a class="btn1 caozuo genj_ure btn-success" href="#modal-record" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["user_id"] %]' data-agentId='[%= it[item]["agent_id"] %]' data-name='[%= it[item]["user_name"] %]'>详情/跟进</a>&nbsp;
[% if(it[item]['agent_id'] == it[item]['current_agent_id'] || check_auth('index/pcEditClient')) { %]
......
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