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
37c41628
Commit
37c41628
authored
Nov 22, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表 客户跟进列表 加收藏
parent
cb74827d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
2 deletions
+107
-2
users_list.html
application/index/view/member/users_list.html
+8
-0
remark_follow_index.html
application/index/view/remark/remark_follow_index.html
+7
-0
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+46
-1
user.js
public/resource/js/user.js
+46
-1
No files found.
application/index/view/member/users_list.html
View file @
37c41628
...
...
@@ -357,6 +357,12 @@
.ld-Marheight-tags
{
margin-top
:
20px
;
}
/*收藏样式*/
#user_is_collect
{
margin-left
:
30px
;
font-weight
:
600
;
cursor
:
pointer
;
}
</style>
<!--导航star-->
...
...
@@ -722,6 +728,8 @@
<div
class=
"user_up_con"
>
<span
id=
"user_up"
class=
"ld-Marheight text-primary ld-Marheight"
>
上一条客户
</span>
<span
id=
"user_down"
class=
"ld-Marheight text-primary ld-Marheight"
>
下一条客户
</span>
<span
id=
'user_is_collect'
class=
'ld-Marheight text-primary'
>
收藏
</span>
</div>
</div>
<div
class=
"modal-body modal-body1"
>
...
...
application/index/view/remark/remark_follow_index.html
View file @
37c41628
...
...
@@ -332,6 +332,12 @@
.ld-Marheight-tags
{
margin-top
:
20px
;
}
/*收藏样式*/
#user_is_collect
{
margin-left
:
30px
;
font-weight
:
600
;
cursor
:
pointer
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
...
...
@@ -421,6 +427,7 @@
<div
class=
"user_up_con"
>
<span
id=
"user_up"
class=
"ld-Marheight text-primary"
>
上一条客户
</span>
<span
id=
"user_down"
class=
"ld-Marheight text-primary"
>
下一条客户
</span>
<span
id=
'user_is_collect'
class=
'ld-Marheight text-primary'
>
收藏
</span>
</div>
</div>
<div
class=
"modal-body modal-body1"
>
...
...
public/resource/js/RemarkFollowIndex.js
View file @
37c41628
...
...
@@ -136,6 +136,44 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//自动筛选 区域
_doc
.
on
(
'input'
,
'#user_area_choose'
,
function
()
{
user
.
getList
();
});
//客户详情跟进 取消收藏
_doc
.
on
(
'click'
,
'#user_is_collect'
,
function
()
{
if
(
!
confirm
(
'是否继续?'
))
{
return
;
}
var
params
=
{
};
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
==
"收藏"
)
{
params
.
type
=
1
;
$
(
this
).
html
(
'取消收藏'
);
}
else
if
(
str
==
"取消收藏"
)
{
params
.
type
=
2
;
$
(
this
).
html
(
'收藏'
);
}
else
{
params
.
type
=
3
;
};
checkLogin
();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
'url'
:
'/broker/addCollectUser'
,
//客户收藏 取消收藏
data
:
{
"agents_id"
:
user_info_obj
.
id
,
"status"
:
params
.
type
,
"user_id"
:
user
.
user_id
,
"AuthToken"
:
user_info_obj
.
AuthToken
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
alert
(
"禁用失败!"
)
}
}
});
});
//城市 区域 筛选
_doc
.
on
(
'input'
,
'#user_city_add,#user_city_edit'
,
function
()
{
...
...
@@ -1301,7 +1339,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
'type'
:
'GET'
,
'url'
:
'/index/useraction_search'
,
data
:
{
"user_id"
:
user
.
user_id
"user_id"
:
user
.
user_id
,
'agent_id'
:
user_info_obj
.
id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
...
...
@@ -1326,6 +1365,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
"#take_look_name"
).
html
(
data
.
data
.
user_info
.
user_name
);
//约带看姓名
$
(
"#take_look_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//约带看手机号
$
(
"#take_look_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//约带看id
//收藏客户 取消收藏
if
(
data
.
data
.
user_info
.
is_collect
==
2
){
$
(
'#user_is_collect'
).
html
(
'收藏'
);
}
else
{
$
(
'#user_is_collect'
).
html
(
'取消收藏'
);
};
//vip客户 查看权限
if
(
user
.
agent_id_call_vip
*
1
==
1
){
if
(
check_auth
(
'auth_vip'
)
||
(
user
.
agent_id_call
*
1
==
user
.
agent_id_call_current
*
1
)
||
(
data
.
data
.
user_info
.
is_can_look
==
0
)){
...
...
public/resource/js/user.js
View file @
37c41628
...
...
@@ -280,6 +280,44 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
_doc
.
on
(
'click'
,
'#look_shop_date'
,
function
()
{
$
(
'.datetimepicker'
).
show
();
});
//客户详情跟进 取消收藏
_doc
.
on
(
'click'
,
'#user_is_collect'
,
function
()
{
if
(
!
confirm
(
'是否继续?'
))
{
return
;
}
var
params
=
{
};
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
==
"收藏"
)
{
params
.
type
=
1
;
$
(
this
).
html
(
'取消收藏'
);
}
else
if
(
str
==
"取消收藏"
)
{
params
.
type
=
2
;
$
(
this
).
html
(
'收藏'
);
}
else
{
params
.
type
=
3
;
};
checkLogin
();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
'url'
:
'/broker/addCollectUser'
,
//客户收藏 取消收藏
data
:
{
"agents_id"
:
user_info_obj
.
id
,
"status"
:
params
.
type
,
"user_id"
:
user
.
user_id
,
"AuthToken"
:
user_info_obj
.
AuthToken
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
alert
(
"禁用失败!"
)
}
}
});
});
//上一页 获取客户详情
_doc
.
on
(
'click'
,
'#user_up'
,
function
()
{
user_type
=
'last'
;
...
...
@@ -1534,7 +1572,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
'type'
:
'GET'
,
'url'
:
'/index/useraction_search'
,
data
:
{
"user_id"
:
user
.
user_id
"user_id"
:
user
.
user_id
,
'agent_id'
:
user_info_obj
.
id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
...
...
@@ -1561,6 +1600,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
"#take_look_name"
).
html
(
data
.
data
.
user_info
.
user_name
);
//约带看姓名
$
(
"#take_look_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//约带看手机号
$
(
"#take_look_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//约带看id
//收藏客户 取消收藏
if
(
data
.
data
.
user_info
.
is_collect
==
2
){
$
(
'#user_is_collect'
).
html
(
'收藏'
);
}
else
{
$
(
'#user_is_collect'
).
html
(
'取消收藏'
);
};
//vip客户 查看权限
if
(
user
.
agent_id_call_vip
*
1
==
1
){
if
(
check_auth
(
'auth_vip'
)
||
(
user
.
agent_id_call
*
1
==
user
.
agent_id_call_current
*
1
)
||
(
data
.
data
.
user_info
.
is_can_look
==
0
)){
...
...
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