Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
bd8ed3f1
Commit
bd8ed3f1
authored
Apr 28, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关键词上色
parent
886ef1c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+1
-0
public.js
public/resource/js/public.js
+5
-0
remark_follow_template_tpl.html
public/resource/template/remark_follow_template_tpl.html
+1
-1
No files found.
public/resource/js/RemarkFollowIndex.js
View file @
bd8ed3f1
...
...
@@ -1621,6 +1621,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
params
.
user_id
=
$
(
"#customer_name_id"
).
val
();
//区域
params
.
agent_id
=
user
.
agent_id_phone
;
//跟进人 下拉式搜索
params
.
site_id
=
$
(
'.user_city_choose_site_list'
).
val
();
localStorage
.
setItem
(
'key_words_liu'
,
params
.
content
);
if
(
$
(
'#user_city_choose'
).
val
()
==
310100
){
//城市
// params.city = '上海市';
...
...
public/resource/js/public.js
View file @
bd8ed3f1
...
...
@@ -298,6 +298,11 @@ function dealPunctuation(str) {//处理跟进内容 多个标点符号 截取
return
(
str
+
'!!!!!'
).
replace
(
/!!!!!/g
,
''
).
replace
(
/!!!!!/g
,
''
).
replace
(
/
\?\?\?\?\?
/g
,
''
).
replace
(
/?????/g
,
''
).
replace
(
/。。。。。/g
,
''
);
}
function
labelKeyWords
(
str
)
{
//关键词标色
var
key_
=
localStorage
.
getItem
(
'key_words_liu'
)
return
(
str
).
replace
(
key_
,
'<span class="text-danger">'
+
key_
+
'</span>'
);
}
/**
* 如果提示框存在任何问题,可以通过注释alert这个方法,使提示框恢复到之前的默认效果
* 自定义提示框修改
...
...
public/resource/template/remark_follow_template_tpl.html
View file @
bd8ed3f1
...
...
@@ -31,7 +31,7 @@
[
%
}
else
{
%
]
【无效】
[
%
}
%
]
[
%=
dealPunctuation
(
it
[
item
][
'content'
]
)
%
]
[
%=
labelKeyWords
(
dealPunctuation
(
it
[
item
][
'content'
])
)
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'admin'
]
%
]
<
/td
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment