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
64f84791
Commit
64f84791
authored
Oct 22, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表 修改
parent
08e18347
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
users_list.html
application/index/view/member/users_list.html
+2
-1
user.js
public/resource/js/user.js
+26
-3
No files found.
application/index/view/member/users_list.html
View file @
64f84791
...
@@ -796,7 +796,8 @@
...
@@ -796,7 +796,8 @@
</td>
</td>
<td>
<td>
<span
class=
"fore-span"
>
客户所属城市:
</span>
<span
class=
"fore-span"
>
客户所属城市:
</span>
<span
class=
"fore-span"
></span>
<span
class=
"shangpu_tags_area_detail fore-span"
>
</span>
</td>
</td>
<td>
<td>
...
...
public/resource/js/user.js
View file @
64f84791
...
@@ -375,6 +375,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -375,6 +375,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
document
).
delegate
(
".add-user-new"
,
"click"
,
function
()
{
//新增客户
$
(
document
).
delegate
(
".add-user-new"
,
"click"
,
function
()
{
//新增客户
user
.
agent_id
=
''
;
user
.
agent_id
=
''
;
// user.initializationCityFunctionAdd();
// user.initializationCityFunctionAdd();
$
(
'#shangpu_tags_area'
).
html
(
''
);
user
.
getSiteTags
();
//获取站点 城市
user
.
getSiteTags
();
//获取站点 城市
});
});
// 跟进的提交按钮 点击
// 跟进的提交按钮 点击
...
@@ -422,7 +423,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -422,7 +423,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user
.
detailTabIndex
=
0
;
user
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
user
.
Caozuo
();
user
.
getSiteTagsEdit
();
});
});
//点击缓存
//点击缓存
...
@@ -1544,7 +1546,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1544,7 +1546,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
'.user_call'
).
hide
();
$
(
'.user_call'
).
hide
();
}
}
checkLogin
();
checkLogin
();
user
.
getSiteTagsEdit
();
//获取站点 城市
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/useraction_search'
,
'url'
:
'/index/useraction_search'
,
...
@@ -1578,10 +1579,20 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1578,10 +1579,20 @@ 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_name"
).
html
(
data
.
data
.
user_info
.
user_name
);
//约带看姓名
$
(
"#take_look_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//约带看手机号
$
(
"#take_look_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//约带看手机号
$
(
"#take_look_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//约带看id
$
(
"#take_look_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//约带看id
//获取 站点城市
//获取 站点城市(编辑)
data
.
data
.
user_info
[
'site_ids'
]
&&
$
.
each
(
$
(
'.roomTagEdit'
),
function
(
i
,
item
)
{
data
.
data
.
user_info
[
'site_ids'
]
&&
$
.
each
(
$
(
'.roomTagEdit'
),
function
(
i
,
item
)
{
~
data
.
data
.
user_info
[
'site_ids'
].
indexOf
(
item
.
getAttribute
(
'data-id'
))
&&
(
item
.
checked
=
'checked'
);
~
data
.
data
.
user_info
[
'site_ids'
].
indexOf
(
item
.
getAttribute
(
'data-id'
))
&&
(
item
.
checked
=
'checked'
);
});
});
//获取 站点城市(详情)
var
site_detail
=
''
;
data
.
data
.
user_info
[
'site_ids'
]
&&
$
.
each
(
$
(
'.roomTagDetail'
),
function
(
i
,
item
)
{
if
(
~
data
.
data
.
user_info
[
'site_ids'
].
indexOf
(
item
.
getAttribute
(
'data-id'
))){
site_detail
=
item
.
value
+
','
+
site_detail
;
}
});
$
(
'.shangpu_tags_area_detail'
).
show
();
$
(
'.shangpu_tags_area_detail'
).
html
(
site_detail
);
var
sw
=
function
(
s
){
var
sw
=
function
(
s
){
switch
(
Number
(
s
))
switch
(
Number
(
s
))
{
case
0
:
return
""
;
{
case
0
:
return
""
;
...
@@ -1855,6 +1866,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1855,6 +1866,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
},
//获取站点 标签 (编辑)
//获取站点 标签 (编辑)
getSiteTagsEdit
:
function
()
{
getSiteTagsEdit
:
function
()
{
$
(
'.shangpu_tags_area_edit '
).
html
(
''
);
$
(
'.shangpu_tags_area_detail'
).
html
(
''
);
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/getSiteList'
,
url
:
'/index/getSiteList'
,
...
@@ -1872,7 +1885,17 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1872,7 +1885,17 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
'1'
:
item
.
id
'1'
:
item
.
id
});
});
});
});
$
(
'.shangpu_tags_area_detail'
).
hide
();
var
_htmlTempDetail
=
''
;
$
.
each
(
_data
.
data
.
list
,
function
(
i
,
item
)
{
_htmlTempDetail
+=
'<label class="checkbox-inline"><input type="checkbox" class="roomTagDetail" id="" value="{0}" data-id="{1}" name="shangpu_tags[]">{0}</label>'
.
stringFormatObj
({
'0'
:
item
.
name
,
'1'
:
item
.
id
});
});
$
(
'.shangpu_tags_area_edit'
).
append
(
_htmlTemp
);
$
(
'.shangpu_tags_area_edit'
).
append
(
_htmlTemp
);
$
(
'.shangpu_tags_area_detail'
).
append
(
_htmlTempDetail
);
user
.
Caozuo
();
}
else
{
}
else
{
alert
(
_data
[
'msg'
]);
alert
(
_data
[
'msg'
]);
}
}
...
...
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