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
adce43a0
Commit
adce43a0
authored
Sep 12, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邀请注册 人数
parent
dea0ff21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
27 deletions
+19
-27
inviteStatisticsList.js
public/resource/js/inviteStatisticsList.js
+14
-22
invite_statistics_list_template_tpl.html
...esource/template/invite_statistics_list_template_tpl.html
+5
-5
No files found.
public/resource/js/inviteStatisticsList.js
View file @
adce43a0
...
@@ -21,14 +21,14 @@
...
@@ -21,14 +21,14 @@
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
//二级联动
//二级联动
invitation
.
getDistrict
(
function
(){
invitation
.
getDistrict
(
function
(){
_doc
.
on
(
'input'
,
'#district_id
, #district_id2
'
,
function
(){
_doc
.
on
(
'input'
,
'#district_id'
,
function
(){
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
){
if
(
_id
&&
_id
!=
'0'
){
invitation
.
getDistrictStoreList
(
_id
,
function
(
_data
){
invitation
.
getDistrictStoreList
(
_id
,
function
(
_data
){
// var _str = '';
// var _str = '';
var
_str
=
'<option value="
0
">全部</option>'
;
var
_str
=
'<option value="">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
});
...
@@ -49,37 +49,30 @@
...
@@ -49,37 +49,30 @@
});
});
},
},
getList
:
function
(
pageNo
)
{
getList
:
function
(
pageNo
)
{
console
.
log
(
$
(
'#customer_name'
).
val
());
console
.
log
(
$
(
'#start_date'
).
val
());
console
.
log
(
$
(
'#shop_name'
).
val
());
invitation
.
pageNo
=
pageNo
;
invitation
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
create_time_start
=
$
(
'#create_time_start'
).
val
();
params
.
start_time
=
$
(
'#create_time_start'
).
val
();
params
.
create_time_end
=
$
(
'#create_time_end'
).
val
();
params
.
end_time
=
$
(
'#create_time_end'
).
val
();
params
.
district_id
=
$
(
'#district_id'
).
val
()
*
1
;
params
.
district_id
=
$
(
'#district_id'
).
val
();
params
.
store_id
=
$
(
'#guest_stores'
).
val
()
*
1
;
params
.
store_id
=
$
(
'#guest_stores'
).
val
();
params
.
user_name
=
$
(
'#user_name'
).
val
();
params
.
page_no
=
invitation
.
pageNo
;
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
//跟进搜索
params
.
page_size
=
invitation
.
pageSize
;
params
.
report_agent_phone
=
$
(
'#report_agent_phone'
).
val
();
if
(
params
.
start_time
==
''
||
params
.
end_time
==
''
||
params
.
district_id
==
''
){
params
.
report_agent_name
=
$
(
'#report_agent_name'
).
val
();
alert
(
'请选择时间和部门'
);
params
.
house_title
=
$
(
'#house_title'
).
val
();
return
;
params
.
shop_type
=
$
(
'#shop_type'
).
val
()
*
1
;
//跟进搜索
}
params
.
pageNo
=
invitation
.
pageNo
;
params
.
pageSize
=
invitation
.
pageSize
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/
marchInList
'
,
//拜访列表
url
:
'/index/
getFirstLoginTotal
'
,
//拜访列表
data
:
params
,
data
:
params
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'invite_statistics_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'invite_statistics_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
));
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
invitation
.
pageSize
,
invitation
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
invitation
.
pageSize
,
invitation
.
getList
);
...
@@ -116,7 +109,6 @@
...
@@ -116,7 +109,6 @@
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
});
$
(
"#district_id"
).
append
(
str
);
$
(
"#district_id"
).
append
(
str
);
$
(
"#district_id2"
).
append
(
str
);
fn
&&
fn
();
fn
&&
fn
();
}
}
}
}
...
...
public/resource/template/invite_statistics_list_template_tpl.html
View file @
adce43a0
<script
id=
"invite_statistics_list_tpl"
type=
"text/template"
>
<script
id=
"invite_statistics_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
&&
it
[
0
]
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'
user
_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
district
_name'
]
%
]
<
/td
>
<
td
>
[
%=
hideTel
(
it
[
item
][
'
user_phon
e'
])
%
]
<
/td
>
<
td
>
[
%=
hideTel
(
it
[
item
][
'
store_nam
e'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
create_ti
me'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
na
me'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
report_agent_name
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
num
'
]
%
]
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
...
...
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