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
9b9bbfa2
Commit
9b9bbfa2
authored
Aug 08, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表修改
parent
2130dd8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
users_list.html
application/index/view/member/users_list.html
+2
-0
user.js
public/resource/js/user.js
+30
-2
No files found.
application/index/view/member/users_list.html
View file @
9b9bbfa2
...
...
@@ -435,6 +435,8 @@
<span class="btn btn-info btn3 margin-top-ld" class="reset_1">重置</span> -->
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"reset"
>
重置
</span>
<a
class=
"btn btn-info btn3 margin-top-ld user-favorites"
>
收藏夹
</a>
<a
href=
"#modal_modify_user"
data-toggle=
"modal"
class=
"btn btn-info btn3 margin-top-ld"
><i
class=
"icon-plus"
></i>
批量修改客方
</a>
...
...
public/resource/js/user.js
View file @
9b9bbfa2
...
...
@@ -81,14 +81,17 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
_doc
.
on
(
'click'
,
'#user_up'
,
function
()
{
user_type
=
'last'
;
user
.
getInfor
();
});
//下一页 获取客户详情
_doc
.
on
(
'click'
,
'#user_down'
,
function
()
{
user_type
=
'next'
;
user
.
getInfor
();
});
//客户列表 收藏夹
_doc
.
on
(
'click'
,
'.user-favorites'
,
function
()
{
user
.
getUserFavorites
();
});
// _doc.on('click', '.take-look', function(e) {//点击约带看 获取 客户姓名 编号 电话
// e.preventDefault();
// e.stopPropagation();
...
...
@@ -915,6 +918,31 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
}
});
},
getUserFavorites
:
function
(
params
)
{
//客户 收藏夹
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
url
:
'/broker/getLastOrNextUserID'
,
//上一页 下一页 调用接口
// url: 'https://pre2.tonglianjituan.com'+'/broker/getLastOrNextUserID',
type
:
'GET'
,
async
:
true
,
data
:
{
"user_id"
:
user
.
user_id
,
"agent_id"
:
user_info_obj
.
id
,
"type"
:
user_type
,
"AuthToken"
:
user_info_obj
.
AuthToken
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
)
{
user
.
user_id
=
data
.
data
.
user_id
;
user
.
Caozuo
();
user
.
getGenjincon
();
}
else
{
alert
(
data
.
msg
)
}
}
});
},
getInfor
:
function
(
params
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
...
...
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