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
77cab82e
Commit
77cab82e
authored
Aug 16, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表修改
parent
dfe8e8cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
60 deletions
+2
-60
user.js
public/resource/js/user.js
+2
-60
No files found.
public/resource/js/user.js
View file @
77cab82e
...
@@ -187,22 +187,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -187,22 +187,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
user_type
=
'next'
;
user_type
=
'next'
;
user
.
getInfor
();
user
.
getInfor
();
});
});
//客户列表 收藏夹
_doc
.
on
(
'click'
,
'.user-favorites'
,
function
()
{
user
.
getUserFavorites
();
});
// _doc.on('click', '.take-look', function(e) {//点击约带看 获取 客户姓名 编号 电话
// e.preventDefault();
// e.stopPropagation();
// $('#take_look_name').html($(this).attr("data-name"));
// $('#take_look_phone').html($(this).attr("data-phone"));
// $('#take_look_id').html($(this).attr("data-id"));
// $('#look_shop_date').val('');
// $('#note_look').val('');
// $('.look-shop').val('');
// $('.look-shop').removeAttr('data-id');
// });
//二级联动
//二级联动
user
.
getDistrict
(
function
()
{
user
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
()
{
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
()
{
...
@@ -920,25 +904,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -920,25 +904,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
var
params
=
{};
var
params
=
{};
params
.
agent_id
=
user_info_obj
.
id
;
params
.
agent_id
=
user_info_obj
.
id
;
// 并列搜索
// if($("#district_id").val()!=0){
// $("#district_id2").val('0');
// $("#guest_stores2").val('');
// console.log($("#district_id2").val());
// console.log($("#guest_stores2").val());
// };
// if($("#district_id2").val()!=0){
// $("#district_id1").val('0');
// $("#guest_stores1").val('');
// console.log($("#district_id").val());
// console.log($("#guest_stores").val());
// };
// 增加客户id的搜索 客户姓名和手机号搜索分开
// 增加客户id的搜索 客户姓名和手机号搜索分开
params
.
user_nick
=
$
.
trim
(
$
(
"input[name='user']"
).
val
());
params
.
user_nick
=
$
.
trim
(
$
(
"input[name='user']"
).
val
());
params
.
phone
=
$
.
trim
(
$
(
"input[name='phone']"
).
val
());
params
.
phone
=
$
.
trim
(
$
(
"input[name='phone']"
).
val
());
params
.
id
=
$
.
trim
(
$
(
"input[name='userID']"
).
val
());
params
.
id
=
$
.
trim
(
$
(
"input[name='userID']"
).
val
());
// user_vip_select
params
.
vip
=
$
.
trim
(
$
(
"#user_vip_select"
).
val
());
//vip筛选
params
.
vip
=
$
.
trim
(
$
(
"#user_vip_select"
).
val
());
//vip筛选
params
.
phone
=
$
.
trim
(
$
(
"input[name='phone']"
).
val
());
params
.
phone
=
$
.
trim
(
$
(
"input[name='phone']"
).
val
());
params
.
invite_phone
=
$
.
trim
(
$
(
"input[name='invite_phone']"
).
val
());
params
.
invite_phone
=
$
.
trim
(
$
(
"input[name='invite_phone']"
).
val
());
...
@@ -1110,8 +1079,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -1110,8 +1079,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
}
}
$
.
ajax
({
$
.
ajax
({
url
:
'/index/pcEditClient'
,
url
:
'/index/pcEditClient'
,
type
:
'POST'
,
type
:
'POST'
,
...
@@ -1147,35 +1114,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -1147,35 +1114,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
}
}
});
});
},
},
getUserFavorites
:
function
(
params
)
{
//客户 收藏夹
getInfor
:
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'
)));
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
$
.
ajax
({
url
:
'/broker/getLastOrNextUserID'
,
//上一页 下一页 调用接口
url
:
'/broker/getLastOrNextUserID'
,
// url: 'https://pre2.tonglianjituan.com'+'/broker/getLastOrNextUserID',
// url: 'https://pre2.tonglianjituan.com'+'/broker/getLastOrNextUserID',
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
async
:
true
,
...
...
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