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
2c2895e6
Commit
2c2895e6
authored
Dec 11, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台
parent
9a53dd23
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1338 additions
and
7 deletions
+1338
-7
BlackList.php
application/index/controller/BlackList.php
+23
-0
PkList.php
application/index/controller/PkList.php
+8
-0
blackListCon.html
application/index/view/blackList/blackListCon.html
+212
-0
agent.html
application/index/view/broker/agent.html
+158
-4
index.html
application/index/view/notice/index.html
+7
-0
pkListCon.html
application/index/view/pkList/pkListCon.html
+1
-1
pkWeekListCon.html
application/index/view/pkList/pkWeekListCon.html
+323
-0
route.php
application/route.php
+2
-0
agent.js
public/resource/js/agent.js
+116
-0
black_list.js
public/resource/js/black_list.js
+191
-0
commissionTotal.js
public/resource/js/commissionTotal.js
+0
-0
pkWeekList.js
public/resource/js/pkWeekList.js
+222
-0
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+1
-0
black_list_template_tpl.html
public/resource/template/black_list_template_tpl.html
+24
-0
commissionTotal_template_tpl.html
public/resource/template/commissionTotal_template_tpl.html
+1
-1
notice_template_tpl.html
public/resource/template/notice_template_tpl.html
+1
-1
pk_week_list_template_tpl.html.html
public/resource/template/pk_week_list_template_tpl.html.html
+48
-0
No files found.
application/index/controller/BlackList.php
0 → 100644
View file @
2c2895e6
<?php
namespace
app\index\controller
;
/**
* Created by PhpStorm.
* User: liu yin ping
* Date: 2018/11/12
* Time: 15:48
*/
use
app\index\extend\Basic
;
class
BlackList
extends
Basic
{
public
function
blackList
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'blackList/blackListCon'
);
}
}
}
\ No newline at end of file
application/index/controller/PkList.php
View file @
2c2895e6
...
@@ -19,4 +19,11 @@ class PkList extends Basic
...
@@ -19,4 +19,11 @@ class PkList extends Basic
return
view
(
'pkList/pkListCon'
);
return
view
(
'pkList/pkListCon'
);
}
}
}
}
public
function
pkWeekList
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'pkList/pkWeekListCon'
);
}
}
}
}
\ No newline at end of file
application/index/view/blackList/blackListCon.html
0 → 100644
View file @
2c2895e6
{layout name="global/frame_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"black_list"
/>
<style>
.clear
{
clear
:
both
;
}
.J_preview
{
width
:
30px
;
height
:
30px
;
border-radius
:
15px
;
}
/*黑名单上传图片的样式*/
.modal-body-height
{
overflow-y
:
auto
;
height
:
432px
;
}
#container_body_img_area
>
div
{
float
:
left
;
width
:
216px
;
}
.img-pre-ul
{
padding-left
:
0
;
overflow
:
hidden
;
}
.img-pre-ul
>
li
{
list-style
:
no
;
float
:
left
;
width
:
210px
;
height
:
170px
;
overflow
:
hidden
;
margin-right
:
10px
;
margin-top
:
10px
;
}
.img-pre-ul
>
li
>
img
{
float
:
left
;
width
:
210px
;
height
:
140px
;
object-fit
:
contain
;
cursor
:
pointer
;
}
.img-pre-ul
>
li
>
a
{
float
:
left
;
width
:
210px
;
text-align
:
center
;
line-height
:
30px
;
}
/*图片点击放大预览区域的样式*/
#img_mask_area
{
position
:
fixed
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
z-index
:
1999
;
background-color
:
rgba
(
0
,
0
,
0
,
.3
);
display
:
none
;
}
#img_mask_area
>
img
{
width
:
900px
;
height
:
700px
;
object-fit
:
contain
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
margin-left
:
-450px
;
margin-top
:
-350px
;
}
.input-100-width
{
width
:
100px
!important
;
}
.list-group-item
>
.full-width-100
>
label
{
width
:
60px
;
}
.list-group-item
>
.full-pic-area
>
label
{
width
:
120px
;
}
.result
>
img
,
.result2
>
img
{
width
:
120px
;
height
:
120px
;
margin-top
:
8px
;
}
#container_body
{
position
:
relative
;
overflow
:
hidden
;
}
#file_input
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
80px
;
}
.modal-body-width
{
width
:
800px
;
}
.span-del2
,
.span-del
{
color
:
red
;
cursor
:
pointer
;
}
.black-list-text
{
width
:
500px
;
height
:
100px
;
vertical-align
:
top
;
margin-bottom
:
20px
;
}
/*黑名单上传图片的样式*/
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<a
href=
"#"
>
业绩调整记录
</a>
</li>
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<td
colspan=
"10"
>
<form
id=
"form_search"
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_name"
placeholder=
"姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"手机号"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3"
id=
"reset"
>
重置
</span>
</form>
</td>
</tr>
<tr>
<th
class=
"text-center"
>
注册时间
</th>
<th
class=
"text-center"
>
经纪人ID
</th>
<th
class=
"text-center"
>
头像
</th>
<th
class=
"text-center"
>
姓名
</th>
<th
class=
"text-center"
>
手机号
</th>
<th
class=
"text-center"
>
所属门店
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"black_list_con"
>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--黑名单-->
<!--收款图片 2.2版本-->
<div
class=
"modal fade"
id=
"modal-blackList"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收款图片
</h4>
</div>
<div
class=
"modal-body modal-body-height"
>
<ul
class=
"list-group"
>
<li
class=
"list-group-item"
>
<div>
<label>
违反公司事项(必填):
</label>
<textarea
class=
"black-list-text"
>
</textarea>
</div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body"
>
<label>
简历等附件(选填):
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input"
/>
<div
id=
"container_body_img_area"
></div>
</div>
</div>
<!--<ul class="img-pre-ul" id="xiangqing_pic_ul">
</ul>-->
</li>
</ul>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtn"
data-dismiss=
"modal"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div
id=
"img_mask_area"
title=
"点击任意位置可关闭"
>
<img
/>
</div>
application/index/view/broker/agent.html
View file @
2c2895e6
...
@@ -7,6 +7,107 @@
...
@@ -7,6 +7,107 @@
height
:
30px
;
height
:
30px
;
border-radius
:
15px
;
border-radius
:
15px
;
}
}
/*黑名单上传图片的样式*/
.modal-body-height
{
overflow-y
:
auto
;
height
:
432px
;
}
#container_body_img_area
>
div
{
float
:
left
;
width
:
216px
;
}
.img-pre-ul
{
padding-left
:
0
;
overflow
:
hidden
;
}
.img-pre-ul
>
li
{
list-style
:
no
;
float
:
left
;
width
:
210px
;
height
:
170px
;
overflow
:
hidden
;
margin-right
:
10px
;
margin-top
:
10px
;
}
.img-pre-ul
>
li
>
img
{
float
:
left
;
width
:
210px
;
height
:
140px
;
object-fit
:
contain
;
cursor
:
pointer
;
}
.img-pre-ul
>
li
>
a
{
float
:
left
;
width
:
210px
;
text-align
:
center
;
line-height
:
30px
;
}
/*图片点击放大预览区域的样式*/
#img_mask_area
{
position
:
fixed
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
z-index
:
1999
;
background-color
:
rgba
(
0
,
0
,
0
,
.3
);
display
:
none
;
}
#img_mask_area
>
img
{
width
:
900px
;
height
:
700px
;
object-fit
:
contain
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
margin-left
:
-450px
;
margin-top
:
-350px
;
}
.input-100-width
{
width
:
100px
!important
;
}
.list-group-item
>
.full-width-100
>
label
{
width
:
60px
;
}
.list-group-item
>
.full-pic-area
>
label
{
width
:
120px
;
}
.result
>
img
,
.result2
>
img
{
width
:
120px
;
height
:
120px
;
margin-top
:
8px
;
}
#container_body
{
position
:
relative
;
overflow
:
hidden
;
}
#file_input
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
80px
;
}
.modal-body-width
{
width
:
800px
;
}
.span-del2
,
.span-del
{
color
:
red
;
cursor
:
pointer
;
}
.black-list-text
{
width
:
500px
;
height
:
100px
;
vertical-align
:
top
;
margin-bottom
:
20px
;
}
/*黑名单上传图片的样式*/
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
...
@@ -47,10 +148,13 @@
...
@@ -47,10 +148,13 @@
<select
class=
"form-control btn2 input ld-Marheight"
name=
""
id=
"guest_stores"
>
<select
class=
"form-control btn2 input ld-Marheight"
name=
""
id=
"guest_stores"
>
</select>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"id"
placeholder=
"姓名/手机号"
name=
"search"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"id"
placeholder=
"姓名/手机号"
name=
"search"
type=
"text"
value=
""
>
<select
class=
"form-control btn2 ld-Marheight"
name=
"agent_status"
placeholder=
"状态是否正常"
>
<select
class=
"form-control btn2 ld-Marheight"
name=
"agent_status"
placeholder=
"经纪人状态"
>
<option
value=
"-1"
>
状态是否正常
</option>
<option
value=
"-1"
>
经纪人状态
</option>
<option
value=
"0"
selected=
"selected"
>
是
</option>
<option
value=
"0"
>
正常
</option>
<option
value=
"1"
>
否
</option>
<option
value=
"1"
>
离职
</option>
<option
value=
"2"
>
长假
</option>
<option
value=
"3"
>
已转勤
</option>
<option
value=
"4"
>
黑名单
</option>
</select>
</select>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
...
@@ -558,3 +662,52 @@
...
@@ -558,3 +662,52 @@
</div>
</div>
<!-- /.modal -->
<!-- /.modal -->
</div>
</div>
<!--黑名单-->
<!--收款图片 2.2版本-->
<div
class=
"modal fade"
id=
"modal-blackList"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收款图片
</h4>
</div>
<div
class=
"modal-body modal-body-height"
>
<ul
class=
"list-group"
>
<li
class=
"list-group-item"
>
<div>
<label>
违反公司事项(必填):
</label>
<textarea
class=
"black-list-text"
>
</textarea>
</div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body"
>
<label>
简历等附件(选填):
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input"
/>
<div
id=
"container_body_img_area"
></div>
</div>
</div>
<!--<ul class="img-pre-ul" id="xiangqing_pic_ul">
</ul>-->
</li>
</ul>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtn"
data-dismiss=
"modal"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div
id=
"img_mask_area"
title=
"点击任意位置可关闭"
>
<img
/>
</div>
\ No newline at end of file
application/index/view/notice/index.html
View file @
2c2895e6
...
@@ -170,6 +170,12 @@
...
@@ -170,6 +170,12 @@
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date"
name=
"start_date"
type=
"date"
>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date"
name=
"start_date"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
>
<select
class=
"form-control btn4 ld-Marheight notice-lable"
>
<option
value=
"0"
>
公告标签
</option>
<option
value=
"1"
>
财务公告
</option>
<option
value=
"2"
>
人事公告
</option>
<option
value=
"3"
>
行政公告
</option>
</select>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"release_title"
placeholder=
"发布标题"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"release_title"
placeholder=
"发布标题"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"search"
>
搜索
</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>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"reset"
>
重置
</span>
...
@@ -180,6 +186,7 @@
...
@@ -180,6 +186,7 @@
<tr>
<tr>
<th
class=
"text-center"
>
发布时间
</th>
<th
class=
"text-center"
>
发布时间
</th>
<th
class=
"text-center"
>
发布人
</th>
<th
class=
"text-center"
>
发布人
</th>
<th
class=
"text-center"
>
公告标签
</th>
<th
class=
"text-center"
>
标题
</th>
<th
class=
"text-center"
>
标题
</th>
<th
class=
"text-center"
>
操作
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</tr>
...
...
application/index/view/pkList/pkListCon.html
View file @
2c2895e6
...
@@ -157,7 +157,7 @@
...
@@ -157,7 +157,7 @@
<div
class=
"container pk-container"
>
<div
class=
"container pk-container"
>
<div
class=
"pk-container-detail"
>
<div
class=
"pk-container-detail"
>
<div
class=
"pk-container-detail-header"
>
<div
class=
"pk-container-detail-header"
>
<span
class=
"margain-right-10 pk-yeji-bang"
>
业绩PK榜
</span>
<span
class=
"margain-right-10 pk-yeji-bang"
>
业绩
月
PK榜
</span>
<span
class=
"margain-right-10 pk-yeji-time"
>
(
<span
id=
'start_date'
></span>
-
<span
id=
'end_date'
></span>
)
</span>
<span
class=
"margain-right-10 pk-yeji-time"
>
(
<span
id=
'start_date'
></span>
-
<span
id=
'end_date'
></span>
)
</span>
<span
class=
"rule-pk"
><a
class=
""
href=
"#modal-pkRule"
data-toggle=
"modal"
>
分档规则
</a></span>
<span
class=
"rule-pk"
><a
class=
""
href=
"#modal-pkRule"
data-toggle=
"modal"
>
分档规则
</a></span>
...
...
application/index/view/pkList/pkWeekListCon.html
0 → 100644
View file @
2c2895e6
{layout name="global/frame_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"pkList"
/>
<style>
.pk-container-detail
{
background-color
:
#fff
;
margin-left
:
8px
;
width
:
96%
;
height
:
820px
;
border-radius
:
3px
;
box-sizing
:
border-box
;
padding
:
8px
;
position
:
relative
;
}
.results-pk
{
display
:
inline-block
;
height
:
32px
;
padding
:
6px
12px
;
font-size
:
14px
;
line-height
:
32px
;
color
:
#555
;
background-color
:
#fff
;
background-image
:
none
;
border
:
1px
solid
#ccc
;
border-radius
:
3px
;
box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
.075
);
transition
:
border-color
ease-in-out
.15s
,
}
.margain-right-10
{
margin-right
:
10px
;
}
.pk-yeji-bang
{
font-size
:
18px
;
color
:
#1C1C1C
;
font-weight
:
600
;
}
.pk-yeji-time
{
font-size
:
14px
;
color
:
#999999
;
}
.img-gold
{
position
:
absolute
;
top
:
0
;
right
:
6px
;
}
.pk-container-detail-team
{
margin-top
:
10px
;
}
.pk-container-detail-team
.team-span
{
width
:
86px
;
height
:
30px
;
font-size
:
11px
;
color
:
#FF9318
;
line-height
:
30px
;
background-color
:
rgba
(
255
,
147
,
24
,
.1
);
display
:
inline-block
;
margin-right
:
15px
;
text-align
:
center
;
cursor
:
pointer
;
}
.pk-container-detail-team
.team-span-active
{
width
:
86px
;
height
:
30px
;
font-size
:
11px
;
line-height
:
30px
;
display
:
inline-block
;
margin-right
:
15px
;
text-align
:
center
;
color
:
#FFF
;
background-color
:
#FF9318
;
cursor
:
pointer
;
}
.pk-container-detail-team
.export-pk
{
width
:
80px
;
height
:
30px
;
font-size
:
11px
;
line-height
:
30px
;
display
:
inline-block
;
text-align
:
center
;
margin-left
:
47px
;
background-color
:
#4F66C3
;
color
:
#fff
;
cursor
:
pointer
;
}
.produce-pk
{
width
:
50px
;
height
:
30px
;
font-size
:
11px
;
line-height
:
30px
;
display
:
inline-block
;
text-align
:
center
;
margin-left
:
30px
;
background-color
:
#4F66C3
;
color
:
#fff
;
cursor
:
pointer
;
}
.rule-pk
{
width
:
70px
;
background-color
:
#fff
;
margin-left
:
15px
;
height
:
28px
;
line-height
:
28px
;
cursor
:
pointer
;
border-radius
:
3px
;
/*border: 1px solid #31b0d5;*/
display
:
inline-block
;
text-align
:
center
;
background-color
:
#F4F5FB
;
}
.rule-pk
a
{
color
:
#4F66C3
;
}
.pk-container-detail-a
{
margin
:
10px
0
;
}
.pk-container-detail-a
.a-span
{
width
:
30px
;
height
:
30px
;
font-size
:
11px
;
color
:
#FF9318
;
line-height
:
30px
;
background-color
:
rgba
(
255
,
147
,
24
,
.1
);
display
:
inline-block
;
margin-right
:
10px
;
text-align
:
center
;
cursor
:
pointer
;
}
.pk-container-detail-a
.a-span-active
{
width
:
30px
;
height
:
30px
;
font-size
:
11px
;
color
:
#fff
;
line-height
:
30px
;
background-color
:
rgba
(
255
,
147
,
24
,
1
);
display
:
inline-block
;
margin-right
:
10px
;
text-align
:
center
;
cursor
:
pointer
;
}
#pk_list
tr
:nth-child
(
even
)
{
background
:
#FFF
;
}
#pk_list
tr
:nth-child
(
odd
)
{
background
:
#F8F8F8
;
}
#pk_list
td
,
#pk_list
th
{
padding
:
3px
;
}
/*加载图标*/
#main_loading_pic
{
position
:
fixed
;
top
:
50%
;
left
:
50%
;
width
:
100px
;
height
:
100px
;
margin-left
:
-50px
;
margin-top
:
-100px
;
overflow
:
hidden
;
display
:
none
;
}
.rule-pk-con
{
line-height
:
30px
;
font-size
:
16px
;
}
.input-pk-style
{
display
:
block
;
width
:
100%
;
height
:
30px
;
padding
:
3px
6px
;
font-size
:
14px
;
line-height
:
30px
;
color
:
#555
;
background-color
:
#fff
;
background-image
:
none
;
border
:
1px
solid
#ccc
;
}
.btn4-pk
{
width
:
150px
!important
;
float
:
left
;
margin-left
:
10px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container pk-container"
>
<div
class=
"pk-container-detail"
>
<div
class=
"pk-container-detail-header"
>
<span
class=
"margain-right-10 pk-yeji-bang"
>
业绩周PK榜
</span>
<div
class=
""
style=
'overflow: hidden;'
>
<span
class=
"fore-span ld-Marheight"
>
比赛时间:
</span>
<input
class=
"btn4-pk ld-Marheight input-pk-style"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date1"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"btn4-pk ld-Marheight input-pk-style"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_end"
name=
"end_date1"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
分档根据时间:
</span>
<input
class=
"btn4-pk ld-Marheight input-pk-style"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date1"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"btn4-pk ld-Marheight input-pk-style"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_end"
name=
"end_date1"
type=
"date"
>
<span
class=
"produce-pk fore-span ld-Marheight"
>
生成
</span>
</div>
<!--<span class="margain-right-10 pk-yeji-time">(<span id='start_date'></span>-<span id='end_date'></span>)</span>
<span class="rule-pk"><a class="" href="#modal-pkRule" data-toggle="modal">分档规则</a></span>-->
<!--<select class="results-pk">
</select>-->
<img
src=
"/resource/image/gold@1x.png"
class=
"img-gold"
/>
</div>
<div
class=
"pk-container-detail-con"
>
<div
class=
"pk-container-detail-team"
>
<span
class=
"team-span-active team-span-pk"
>
团队PK榜
</span>
<span
class=
"team-span team-span-pk"
>
店长PK榜
</span>
<span
class=
"team-span team-span-pk"
>
经理PK榜
</span>
<span
class=
"team-span team-span-pk"
>
主任PK榜
</span>
<span
class=
"team-span team-span-pk"
>
资深顾问PK榜
</span>
<span
class=
"team-span team-span-pk"
>
顾问PK榜
</span>
<span
class=
"export-pk"
>
导出报表
</span>
</div>
<div
class=
"pk-container-detail-a"
>
<span
class=
"a-span-active ld-Marheight"
data-id=
'1'
>
A
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'2'
>
B
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'3'
>
C
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'4'
>
D
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'5'
>
E
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'6'
>
F
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'7'
>
G
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'8'
>
H
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'9'
>
I
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'10'
>
J
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'11'
>
K
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'12'
>
L
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'13'
>
M
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'14'
>
N
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'15'
>
O
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'16'
>
P
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'17'
>
Q
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'18'
>
R
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'19'
>
S
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'20'
>
T
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'21'
>
U
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'22'
>
V
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'23'
>
W
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'24'
>
X
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'25'
>
Y
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'26'
>
Z
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'27'
>
A1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'28'
>
B1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'29'
>
C1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'30'
>
D1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'31'
>
E1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'32'
>
F1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'33'
>
G1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'34'
>
H1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'35'
>
I1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'36'
>
J1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'37'
>
K1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'38'
>
L1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'39'
>
M1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'40'
>
N1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'41'
>
O1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'42'
>
P1
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'43'
>
Q1
</span>
</div>
<div
class=
"pk_list_content"
>
<table
id=
"pk_list"
class=
"table"
>
</table>
</div>
</div>
</div>
</div>
</div>
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
</div>
<!--分档规则-->
<div
class=
"modal fade"
id=
"modal-pkRule"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
分档规则
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"rule-pk-con"
>
职称档位根据上个月的业绩来分档,职称取的现在职称列表里的的职称
<br
/>
团队档位根据前3个月的业绩来分档
<br
/>
团队档位赛和职称档位赛 都是 上海与上海比,杭州与杭州比,
<br
/>
<p
class=
"text-danger"
>
上海分档规则:
</p>
20人为一档位 余下的人 均匀分配在后边的等级里
<br
/>
每个档位不超过25人,即每个档位的人数小于等于25
<br
/>
某个职称的总人数/20=商~~~余数,商*5
<
余数时,重开一档。<
br
/>
例如某职称有总人数29人, 29/20=1~~~9,1*5
<9
,则重开一档,共
2
挡,
2
档的人均匀分配,即第一档人数
14
,第二档人数
15
<
br
/>
<p
class=
"text-danger"
>
杭州分档规则:
</p>
8人为一档位 余下的人 均匀分配在后边的档位里 最多不超过13人
<br
/>
某个职称的总人数/8=商~~~余数,商*5
<
余数时,重开一档。<
br
/>
例如某职称有总人数15人, 15/8=1~~~7,1*5
<7
,则重开一档,共
2
挡,
2
档的人均匀分配,即第一档人数
8
,第二档人数
7
。
</
div
>
</div>
<div
class=
"modal-footer"
>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
application/route.php
View file @
2c2895e6
...
@@ -308,6 +308,8 @@ Route::group('index', [
...
@@ -308,6 +308,8 @@ Route::group('index', [
'performancesubsidiaryList'
=>
[
'index/PerformanceSubsidiary/performancesubsidiaryList'
,
[
'method'
=>
'POST|GET'
]],
//业绩明细liu
'performancesubsidiaryList'
=>
[
'index/PerformanceSubsidiary/performancesubsidiaryList'
,
[
'method'
=>
'POST|GET'
]],
//业绩明细liu
'pkList'
=>
[
'index/PkList/pkList'
,
[
'method'
=>
'POST|GET'
]],
//pk榜 liu
'pkList'
=>
[
'index/PkList/pkList'
,
[
'method'
=>
'POST|GET'
]],
//pk榜 liu
'pkWeekList'
=>
[
'index/PkList/pkWeekList'
,
[
'method'
=>
'POST|GET'
]],
//pk榜 liu
'blackList'
=>
[
'index/BlackList/blackList'
,
[
'method'
=>
'POST|GET'
]],
//黑名单 liu
'myCollectionUserList'
=>
[
'index/myCollectionUser/myCollectionUserList'
,
[
'method'
=>
'POST|GET'
]],
//我收藏的客户liu
'myCollectionUserList'
=>
[
'index/myCollectionUser/myCollectionUserList'
,
[
'method'
=>
'POST|GET'
]],
//我收藏的客户liu
'myCollectionShopList'
=>
[
'index/myCollectionShop/myCollectionShopList'
,
[
'method'
=>
'POST|GET'
]],
//我收藏的客户liu
'myCollectionShopList'
=>
[
'index/myCollectionShop/myCollectionShopList'
,
[
'method'
=>
'POST|GET'
]],
//我收藏的客户liu
'dayAchievementsReport'
=>
[
'index/PerformanceReport/dayAchievementsReportList'
,
[
'method'
=>
'POST|GET'
]],
//日报liu
'dayAchievementsReport'
=>
[
'index/PerformanceReport/dayAchievementsReportList'
,
[
'method'
=>
'POST|GET'
]],
//日报liu
...
...
public/resource/js/agent.js
View file @
2c2895e6
...
@@ -286,6 +286,107 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -286,6 +286,107 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
}
}
});
});
});
});
//收款图片-点击添加图片事件
$
(
'#file_input'
).
on
(
'change'
,
function
(){
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//图片删除事件
_doc
.
on
(
'click'
,
'.span-del'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//图片删除,已有的则调用接口删除
_doc
.
on
(
'click'
,
'.span-del2'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
agent
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
//保存上传的图片
_doc
.
on
(
'click'
,
'#saveBtn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.result'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
console
.
log
(
imgname
.
join
(
','
));
var
id_pic
=
agent
.
house_fatherid
>
0
?
agent
.
house_fatherid
:
agent
.
house_id
;
var
_data
=
{
img_id
:
id_pic
};
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'img_name'
]
=
imgname
.
join
(
','
);
}
else
{
return
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/addReceiptImg'
,
data
:
_data
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
agent
.
getList
(
0
);
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
},
},
Submit_user
:
function
()
{
//提交变更的信息
Submit_user
:
function
()
{
//提交变更的信息
var
group_id
=
$
(
"#edit_role"
).
val
();
var
group_id
=
$
(
"#edit_role"
).
val
();
...
@@ -658,6 +759,21 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -658,6 +759,21 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
}
}
});
});
},
},
spandelList
:
function
(
n
)
{
//删除已经保存的图片都调用
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/deleteReceiptImg'
,
data
:
{
id
:
n
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
}
else
{}
}
});
},
//手机绑定权限
//手机绑定权限
getPhoneBindingList
:
function
(
v
,
pageNo
)
{
getPhoneBindingList
:
function
(
v
,
pageNo
)
{
var
params
=
{};
var
params
=
{};
...
...
public/resource/js/black_list.js
0 → 100644
View file @
2c2895e6
define
([
'doT'
,
'text!temp/black_list_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
adjustment
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
15
,
/*每页显示多少条*/
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
adjustment
.
getList
();
adjustment
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
$
(
"#search"
).
click
(
function
()
{
adjustment
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
//收款图片-点击添加图片事件
$
(
'#file_input'
).
on
(
'change'
,
function
(){
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//图片删除事件
_doc
.
on
(
'click'
,
'.span-del'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//图片删除,已有的则调用接口删除
_doc
.
on
(
'click'
,
'.span-del2'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
adjustment
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
//保存上传的图片
_doc
.
on
(
'click'
,
'#saveBtn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.result'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
console
.
log
(
imgname
.
join
(
','
));
var
id_pic
=
adjustment
.
house_fatherid
>
0
?
adjustment
.
house_fatherid
:
adjustment
.
house_id
;
var
_data
=
{
img_id
:
id_pic
};
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'img_name'
]
=
imgname
.
join
(
','
);
}
else
{
return
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/addReceiptImg'
,
data
:
_data
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
adjustment
.
getList
(
0
);
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
},
getList
:
function
(
pageNo
)
{
adjustment
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
adjustment
.
pageNo
;
params
.
pageSize
=
adjustment
.
pageSize
;
params
.
phone
=
$
(
'#user_phone'
).
val
();
params
.
name
=
$
(
'#user_name'
).
val
();
$
.
ajax
({
url
:
'/index/getPerformanceRecordList'
,
//获取列表
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
console
.
log
(
data
);
var
temp
=
document
.
getElementById
(
'black_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#black_list_con"
).
html
(
doTtmpl
(
data
.
data
.
data
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
adjustment
.
pageSize
,
adjustment
.
getList
);
}
});
},
spandelList
:
function
(
n
)
{
//删除已经保存的图片都调用
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/deleteReceiptImg'
,
data
:
{
id
:
n
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
}
else
{}
}
});
},
getaddPicList
:
function
()
{
//获取收款图片
$
(
'#container_body_img_area'
).
html
(
''
);
//每回先清空所有图片
var
id_pic
=
follow
.
house_fatherid
>
0
?
follow
.
house_fatherid
:
follow
.
house_id
;
$
(
'.result2,.result'
).
remove
();
//删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/receiptImgList'
,
data
:
{
"id"
:
id_pic
,
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
//渲染已经有的列表
// <img src='[%= it[item]["agent_img"] %]' class="diagram-image J_preview"
// data-bimg='[%= it[item]["agent_img"] %]'>
for
(
i
=
0
;
i
<
data
.
data
.
length
;
i
++
)
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result2"><img data-imgid="{0}" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2">删除</span></div>'
.
stringFormatObj
({
'0'
:
data
.
data
[
i
].
id
,
'1'
:
data
.
data
[
i
].
img_name
?
urlDeal
(
data
.
data
[
i
].
img_name
):
data
.
data
[
i
].
img_name
}));
};
}
else
{}
}
});
},
};
return
adjustment
;
});
\ No newline at end of file
public/resource/js/commissionTotal.js
View file @
2c2895e6
public/resource/js/pkWeekList.js
0 → 100644
View file @
2c2895e6
define
([
'doT'
,
'text!temp/pk_list_template_tpl.html.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
pkList
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
25
,
/*每页显示多少条*/
mainTabIndex
:
1
,
mainTabIndexTwo
:
0
,
mainTabArr
:
[],
mainTabIndexTeam
:
1
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
//获取初始化时间
var
myDate
=
new
Date
();
var
y
=
myDate
.
getFullYear
();
var
m
=
myDate
.
getMonth
()
+
1
;
var
d
=
myDate
.
getDate
();
var
day_start
=
y
+
'.'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'.'
+
(
'01'
);
var
day_end
=
y
+
'.'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'.'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
$
(
'#start_date'
).
html
(
day_start
);
$
(
'#end_date'
).
html
(
day_end
);
// pkList.getCitySite();
pkList
.
getTeamList
(
0
);
pkList
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//主页面 团队 店长
_doc
.
on
(
'click'
,
'.team-span-pk'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'team-span'
).
addClass
(
'team-span-active'
).
siblings
().
removeClass
(
'team-span-active'
).
addClass
(
'team-span'
);
if
(
_this
.
index
()
==
0
){
//团队pk
pkList
.
getTeamList
();
pkList
.
mainTabIndexTeam
=
1
;
};
if
(
_this
.
index
()
==
1
){
pkList
.
mainTabIndex
=
1
;
pkList
.
mainTabIndexTeam
=
0
;
pkList
.
getList
();
};
if
(
_this
.
index
()
==
2
){
pkList
.
mainTabIndex
=
2
;
pkList
.
mainTabIndexTeam
=
0
;
pkList
.
getList
();
};
if
(
_this
.
index
()
==
3
){
pkList
.
mainTabIndex
=
3
;
pkList
.
mainTabIndexTeam
=
0
;
pkList
.
getList
();
};
if
(
_this
.
index
()
==
4
){
pkList
.
mainTabIndex
=
4
;
pkList
.
mainTabIndexTeam
=
0
;
pkList
.
getList
();
};
if
(
_this
.
index
()
==
5
){
pkList
.
mainTabIndex
=
0
;
pkList
.
mainTabIndexTeam
=
0
;
pkList
.
getList
();
};
$
(
".pk-container-detail-a>span"
).
eq
(
0
).
removeClass
(
'a-span'
).
addClass
(
'a-span-active'
).
siblings
().
removeClass
(
'a-span-active'
).
addClass
(
'a-span'
);
pkList
.
mainTabIndexTwo
=
0
;
});
_doc
.
on
(
'click'
,
'.pk-container-detail-a>span'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'a-span'
).
addClass
(
'a-span-active'
).
siblings
().
removeClass
(
'a-span-active'
).
addClass
(
'a-span'
);
pkList
.
mainTabIndexTwo
=
_this
.
attr
(
'data-id'
)
*
1
-
1
;
if
(
pkList
.
mainTabIndexTeam
){
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'team_pk_list_tpl'
).
innerHTML
);
}
else
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'pk_list_tpl'
).
innerHTML
);
}
$
(
"#pk_list"
).
html
(
doTtmpl
(
pkList
.
mainTabArr
[
pkList
.
mainTabIndexTwo
]));
});
$
(
".export-pk"
).
click
(
function
()
{
//导出列表
if
(
pkList
.
mainTabIndexTeam
){
pkList
.
exportTeamList
();
}
else
{
pkList
.
exportList
();
}
});
},
//pk导出列表
exportList
:
function
()
{
var
params
=
{};
var
position
=
pkList
.
mainTabIndex
;
var
AuthToken
=
user_info_obj
.
AuthToken
;
window
.
open
(
'/index/exportReport?'
+
'position='
+
position
+
'&AuthToken='
+
AuthToken
);
},
//pk列表 团队导出
exportTeamList
:
function
()
{
var
params
=
{};
var
AuthToken
=
user_info_obj
.
AuthToken
;
window
.
open
(
'/index/exportReportStore?'
+
'&AuthToken='
+
AuthToken
);
},
getList
:
function
(
pageNo
)
{
$
(
".pk-container-detail-a>span"
).
hide
();
var
params
=
{};
params
.
position
=
pkList
.
mainTabIndex
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getRandKingList'
,
//拜访列表
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{
$
(
'#main_loading_pic'
).
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
var
_length
=
data
.
data
.
length
;
$
(
".pk-container-detail-a>span"
).
eq
(
_length
).
prevAll
().
show
();
if
(
data
.
code
==
200
)
{
pkList
.
mainTabArr
=
data
.
data
;
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'pk_week_list_tpl'
).
innerHTML
);
$
(
"#pk_list"
).
html
(
doTtmpl
(
data
.
data
[
pkList
.
mainTabIndexTwo
]));
add_page
(
data
.
data
.
total
,
pageNo
,
pkList
.
pageSize
,
pkList
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
$
(
'#main_loading_pic'
).
hide
();
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
},
//团队 pk
getTeamList
:
function
(
pageNo
)
{
$
(
".pk-container-detail-a>span"
).
hide
();
var
params
=
{};
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getStoreRandKingList'
,
//团队
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{
$
(
'#main_loading_pic'
).
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
var
_length
=
data
.
data
.
length
;
$
(
".pk-container-detail-a>span"
).
eq
(
_length
).
prevAll
().
show
();
if
(
data
.
code
==
200
)
{
pkList
.
mainTabArr
=
data
.
data
;
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'team_pk_list_tpl'
).
innerHTML
);
$
(
"#pk_list"
).
html
(
doTtmpl
(
data
.
data
[
pkList
.
mainTabIndexTwo
]));
add_page
(
data
.
data
.
total
,
pageNo
,
pkList
.
pageSize
,
pkList
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
$
(
'#main_loading_pic'
).
hide
();
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
},
getCitySite
:
function
(){
//显示 隐藏城市 默认显示 当前账号 所在城市
$
.
ajax
({
url
:
'/index/getSiteList'
,
type
:
'GET'
,
async
:
true
,
data
:
{
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
''
;
$
.
each
(
data
.
data
.
list
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".results-pk"
).
append
(
str
);
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
(
'.results-pk'
).
val
(
user_info_obj
.
site_id
);
}
}
});
},
};
return
pkList
;
});
\ No newline at end of file
public/resource/template/agent_template_tpl.html
View file @
2c2895e6
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
<
a
class
=
"btn1 btn-success phone-bundling btn-default-hide-display"
href
=
"#modal-phonebundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
/
电脑
<
/a
>
<
a
class
=
"btn1 btn-success phone-bundling btn-default-hide-display"
href
=
"#modal-phonebundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
/
电脑
<
/a
>
<
a
class
=
"btn1 btn-success btn-default-hide-display state-record"
href
=
"#modal-stateRecord"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
状态记录
<
/a
>
<
a
class
=
"btn1 btn-success btn-default-hide-display state-record"
href
=
"#modal-stateRecord"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
状态记录
<
/a
>
<
a
class
=
"btn1 btn-success btn-default-hide-display black-list"
href
=
"#modal-blackList"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
加黑名单
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
[
%
}
%
]
[
%
}
%
]
...
...
public/resource/template/black_list_template_tpl.html
0 → 100644
View file @
2c2895e6
<script
id=
"black_list_tpl"
type=
"text/template"
>
[
%
if
(
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'performance_time'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success black-list"
href
=
"#modal-blackList"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
public/resource/template/commissionTotal_template_tpl.html
View file @
2c2895e6
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
tr
>
<
tr
>
<
td
colspan
=
"
9
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
td
colspan
=
"
11
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
</script>
</script>
...
...
public/resource/template/notice_template_tpl.html
View file @
2c2895e6
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
tr
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<!--<
td
>
[
%=
hideTel
(
it
[
item
][
"name"
])
%
]
<
/td>--
>
<
td
>
[
%
if
(
it
[
item
][
"name"
]
!=
null
)
{
%
]
<
td
>
[
%
if
(
it
[
item
][
"name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"name"
]
%
]
[
%=
it
[
item
][
"name"
]
%
]
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"title"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"title"
]
%
]
<
/td
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-success announcement-details"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
createTime
=
'[%= it[item]["create_time"] %]'
data
-
title
=
'[%= it[item]["title"] %]'
data
-
content
=
'[%= it[item]["content"] %]'
data
-
fujian
=
'[%= JSON.stringify(it[item]["annex_file_path"]) %]'
>
<
a
class
=
"btn1 btn-success announcement-details"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
createTime
=
'[%= it[item]["create_time"] %]'
data
-
title
=
'[%= it[item]["title"] %]'
data
-
content
=
'[%= it[item]["content"] %]'
data
-
fujian
=
'[%= JSON.stringify(it[item]["annex_file_path"]) %]'
>
...
...
public/resource/template/pk_week_list_template_tpl.html.html
0 → 100644
View file @
2c2895e6
<script
id=
"pk_week_list_tpl"
type=
"text/template"
>
[
%
var
sw
=
function
(
s
){
return
++
s
};
%
]
[
%
if
(
it
)
{
%
]
<
tr
>
<
th
class
=
"text-center"
>
排名
<
/th
>
<
th
class
=
"text-center"
>
所属门店
<
/th
>
<
th
class
=
"text-center"
>
经纪人
<
/th
>
<
th
class
=
"text-center"
>
业绩(元)
<
/th
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
sw
(
item
)
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"store_name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"performance"
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<script
id=
"team_pk_list_tpl"
type=
"text/template"
>
[
%
var
sw
=
function
(
s
){
return
++
s
};
%
]
[
%
if
(
it
)
{
%
]
<
tr
>
<
th
class
=
"text-center"
>
排名
<
/th
>
<
th
class
=
"text-center"
>
所属门店
<
/th
>
<!--<
th
class
=
"text-center"
>
经纪人
<
/th>--
>
<
th
class
=
"text-center"
>
业绩(元)
<
/th
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
sw
(
item
)
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"store_name"
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td>--
>
<
td
>
[
%=
it
[
item
][
"performance"
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
\ No newline at end of file
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