Commit ba2f04f6 authored by xishifeng's avatar xishifeng

优化处理

parent 1fe9e235
...@@ -270,7 +270,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -270,7 +270,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
var _htmlTemp = ''; var _htmlTemp = '';
$.each(data.data, function(i, v) { $.each(data.data, function(i, v) {
_htmlTemp += '<tr><td>{0}</td><td>{1}</td><td>{2}</td></tr>'.stringFormatObj({ _htmlTemp += '<tr><td>{0}</td><td>{1}</td><td>{2}</td></tr>'.stringFormatObj({
'0': v.step, '0': dealPunctuation(v.step),
'1': v.agent_name, '1': v.agent_name,
'2': v.create_time '2': v.create_time
}) })
......
...@@ -1423,7 +1423,7 @@ if(data.code == 200) { ...@@ -1423,7 +1423,7 @@ if(data.code == 200) {
var _htmlTemp = ''; var _htmlTemp = '';
$.each(data.data, function(i, v) { $.each(data.data, function(i, v) {
_htmlTemp += '<tr><td>{0}</td><td>{1}</td><td>{2}</td></tr>'.stringFormatObj({ _htmlTemp += '<tr><td>{0}</td><td>{1}</td><td>{2}</td></tr>'.stringFormatObj({
'0': v.step, '0': dealPunctuation(v.step),
'1': v.agent_name, '1': v.agent_name,
'2': v.create_time '2': v.create_time
}) })
......
...@@ -265,7 +265,7 @@ define(['doT', 'text!temp/my_collection_shop_template_tpl.html', 'css!style/home ...@@ -265,7 +265,7 @@ define(['doT', 'text!temp/my_collection_shop_template_tpl.html', 'css!style/home
var _htmlTemp = ''; var _htmlTemp = '';
$.each(data.data, function(i, v) { $.each(data.data, function(i, v) {
_htmlTemp += '<tr><td>{0}</td><td>{1}</td><td>{2}</td></tr>'.stringFormatObj({ _htmlTemp += '<tr><td>{0}</td><td>{1}</td><td>{2}</td></tr>'.stringFormatObj({
'0': v.step, '0': dealPunctuation(v.step),
'1': v.agent_name, '1': v.agent_name,
'2': v.create_time '2': v.create_time
}) })
......
...@@ -275,4 +275,8 @@ function hideStr(str){ ...@@ -275,4 +275,8 @@ function hideStr(str){
//处理url信息,改为当前域名的协议 //处理url信息,改为当前域名的协议
function urlDeal(urlStr, httpStr) { function urlDeal(urlStr, httpStr) {
return urlStr.replace(/(http|https):\/\//g, (httpStr ? (httpStr + ':') : location.protocol) + '//'); return urlStr.replace(/(http|https):\/\//g, (httpStr ? (httpStr + ':') : location.protocol) + '//');
} }
\ No newline at end of file
function dealPunctuation(str) {
return str.replace(/!!!!!/g, '').replace(/!!!!!/g, '').replace(/?????/g, '').replace(/?????/g, '').replace(/。。。。。/g, '');
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<tr class="text-center"> <tr class="text-center">
<!--对接接口--> <!--对接接口-->
<td>[%= it[item]['create_time'] %]</td> <td>[%= it[item]['create_time'] %]</td>
<td width="47%" class="text-left follow-up-home">[%= it[item]['follow_up_info'] %]</td> <td width="47%" class="text-left follow-up-home">[%= dealPunctuation(it[item]['follow_up_info']) %]</td>
<td>[%= it[item]['name'] %]</td> <td>[%= it[item]['name'] %]</td>
<td>[%= it[item]['house_id'] %]</td> <td>[%= it[item]['house_id'] %]</td>
<td> <td>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
【无效】 【无效】
[% } %] [% } %]
[% } %] [% } %]
[%= it[item]['content'] %] [%= dealPunctuation(it[item]['content']) %]
</td> </td>
<td>[%= it[item]['admin'] %]</td> <td>[%= it[item]['admin'] %]</td>
<td> <td>
......
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