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
148e3f13
Commit
148e3f13
authored
Aug 28, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收藏客户修改
parent
52ef868a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
20 deletions
+28
-20
myCollectionUserList.js
public/resource/js/myCollectionUserList.js
+1
-1
user.js
public/resource/js/user.js
+26
-18
user_template_tpl.html
public/resource/template/user_template_tpl.html
+1
-1
No files found.
public/resource/js/myCollectionUserList.js
View file @
148e3f13
...
...
@@ -132,7 +132,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
alert
(
"禁用失败!"
)
alert
(
data
.
msg
)
}
}
});
...
...
public/resource/js/user.js
View file @
148e3f13
...
...
@@ -163,27 +163,35 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
this
).
parent
().
remove
();
});
//收藏 取消收藏
$
(
document
).
delegate
(
".is_show"
,
"click"
,
function
()
{
//点击禁用
$
(
document
).
delegate
(
".is_show"
,
"click"
,
function
()
{
//点击收藏 取消收藏
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
user
.
baohu
=
$
(
this
).
attr
(
"data-baohu"
);
user
.
agentbaohu
=
$
(
this
).
attr
(
"data-agent"
);
if
(
!
confirm
(
'是否继续?'
))
{
return
;
}
user
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
params
=
{
};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
==
"收藏"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-default is_show'
);
params
.
type
=
1
;
$
(
this
).
html
(
'取消收藏'
);
}
else
if
(
str
==
"取消收藏"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-info is_show'
);
params
.
type
=
2
;
$
(
this
).
html
(
'收藏'
);
}
else
{
params
.
type
=
3
;
};
if
((
user_info_obj
.
id
*
1
==
user
.
agentbaohu
*
1
)
||
user
.
baohu
*
1
){
user
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
params
=
{
};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
==
"收藏"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-default is_show'
);
params
.
type
=
1
;
$
(
this
).
html
(
'取消收藏'
);
}
else
if
(
str
==
"取消收藏"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-info is_show'
);
params
.
type
=
2
;
$
(
this
).
html
(
'收藏'
);
}
else
{
params
.
type
=
3
;
};
}
else
{
alert
(
'该客户在保护期内,暂不能收藏'
);
return
;
}
checkLogin
();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
...
...
public/resource/template/user_template_tpl.html
View file @
148e3f13
...
...
@@ -52,7 +52,7 @@
<
td
width
=
"16%"
>
[
%
if
((
check_auth
(
'auth_vip'
)
&&
it
[
item
][
'vip'
]
*
1
)
||
(
it
[
item
][
'agent_id'
]
*
1
==
0
)
||
(
it
[
item
][
'agent_id'
]
*
1
==
it
[
item
][
'current_agent_id'
]
*
1
)
||
(
check_auth
(
'index/useraction_search'
)
&&
it
[
item
][
'vip'
]
*
1
==
0
))
{
%
]
<
a
class
=
"btn1 caozuo genj_ure caozuo-add-color [%= getLoaclId(it[item]['id']) %]"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
data
-
baohu
=
'[%= it[item]["is_outstrip_twenty_four_hours"] %]'
data
-
agent
=
'[%= it[item]["agent_id"] %]'
>
详情
/
跟进
<
/a> 
;
<
a
class
=
"btn1 is_show [%= sw(it[item]['is_collect']) %]"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
cid
=
'[%= it[item]["is_collect"] %]'
>
<
a
class
=
"btn1 is_show [%= sw(it[item]['is_collect']) %]"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
cid
=
'[%= it[item]["is_collect"] %]'
data
-
baohu
=
'[%= it[item]["is_outstrip_twenty_four_hours"] %]'
data
-
agent
=
'[%= it[item]["agent_id"] %]'
>
[
%
if
(
it
[
item
][
"is_collect"
]
==
2
)
{
%
]
收藏
[
%
}
else
if
(
it
[
item
][
"is_collect"
]
==
1
)
{
%
]
...
...
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