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
1613d4b7
Commit
1613d4b7
authored
Nov 13, 2018
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1109-v2.9.8' of
https://gitee.com/zwyjjc/tl_estate
into 1109-v2.9.8
parents
01229586
7a225b7b
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
707 additions
and
61 deletions
+707
-61
Broker.php
application/index/controller/Broker.php
+3
-1
CellPhone.php
application/index/controller/CellPhone.php
+58
-10
houseList.html
application/index/view/houses/houseList.html
+10
-14
pkListCon.html
application/index/view/pkList/pkListCon.html
+43
-12
professionalListCon.html
...tion/index/view/professionalList/professionalListCon.html
+61
-0
share_detail.html
application/index/view/wx_authorization/share_detail.html
+273
-0
yindao_android.html
application/index/view/wx_authorization/yindao_android.html
+19
-0
yindao_ios.html
application/index/view/wx_authorization/yindao_ios.html
+19
-0
TAgentTotalCallModel.php
application/model/TAgentTotalCallModel.php
+1
-1
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+54
-3
houseList.js
public/resource/js/houseList.js
+7
-2
pkList.js
public/resource/js/pkList.js
+30
-10
professionalList.js
public/resource/js/professionalList.js
+116
-1
agentIndex_template_tpl.html
public/resource/template/agentIndex_template_tpl.html
+2
-2
marchin_list_template_tpl.html
public/resource/template/marchin_list_template_tpl.html
+3
-1
pk_list_template_tpl.html.html
public/resource/template/pk_list_template_tpl.html.html
+4
-3
professional_list_template_tpl.html
public/resource/template/professional_list_template_tpl.html
+4
-1
No files found.
application/index/controller/Broker.php
View file @
1613d4b7
...
@@ -768,8 +768,10 @@ class Broker extends Basic
...
@@ -768,8 +768,10 @@ class Broker extends Basic
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$where
[
'status'
]
=
0
;
$where
[
'status'
]
=
0
;
if
(
isset
(
$this
->
params
[
'position'
]))
{
if
(
isset
(
$this
->
params
[
'position'
])
&&
$this
->
params
[
'position'
]
!=
-
1
)
{
$where
[
'position'
]
=
$this
->
params
[
'position'
];
$where
[
'position'
]
=
$this
->
params
[
'position'
];
}
else
{
$where
[
'position'
]
=
[
'<>'
,
5
];
}
}
if
(
!
empty
(
$this
->
params
[
'name'
]))
{
if
(
!
empty
(
$this
->
params
[
'name'
]))
{
...
...
application/index/controller/CellPhone.php
View file @
1613d4b7
...
@@ -15,6 +15,7 @@ use app\model\AAgents;
...
@@ -15,6 +15,7 @@ use app\model\AAgents;
use
app\model\SecretReport
;
use
app\model\SecretReport
;
use
app\model\UPhoneFollowPp
;
use
app\model\UPhoneFollowPp
;
use
app\model\Users
;
use
app\model\Users
;
use
app\model\TAgentTotalCallModel
;
class
CellPhone
extends
Basic
class
CellPhone
extends
Basic
...
@@ -153,6 +154,55 @@ class CellPhone extends Basic
...
@@ -153,6 +154,55 @@ class CellPhone extends Basic
}
}
}
}
// /**
// * 经纪人通话汇总
// *
// * @return \think\Response
// * @throws \think\db\exception\DataNotFoundException
// * @throws \think\db\exception\ModelNotFoundException
// * @throws \think\exception\DbException
// */
// public function callCollectList()
// {
// if ($this->request->isAjax()) {
// $result['code'] = 200;
// $result['msg'] = '';
// $pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
// $pageSize = empty($this->params['pageSize']) ? 10 : $this->params['pageSize'];
// $report = new SecretReport();
// $field = 'a.id,b.phone,sum(time) as time,agents_id,call_type,release_time,start_time';
// $where['time'] = ['>', 0];
// if (!empty($this->params['start_date']) && empty($this->params['end_date'])) {
// $where['a.create_time'] = [ '> time', $this->params['start_date'] ];
// }
// if (!empty($this->params['end_date']) && empty($this->params['start_date'])) {
// $where['a.create_time'] = [ '< time', $this->params['end_date'] ];
// }
// if (!empty($this->params['end_date']) && !empty($this->params['start_date'])) {
// $where['a.create_time'] = [ 'between', [$this->params['start_date'], $this->params['end_date']]];
// }
// if (!empty($this->params['agents_name'])) {
// $where['realName'] = [ 'LIKE', $this->params['agents_name'] . '%' ];
// }
// if (!empty($this->params['phone'])) {
// $where['phone'] = [ 'LIKE', $this->params['phone'] . '%' ];
// }
// $data['list'] = $report->getCallCollect($pageNo, $pageSize, 'id desc', $field, $where);
// $data['total'] = $report->getCallCollectTotal($where);
// return $this->response($result['code'], $result['msg'], $data);
// } else {
// return view('cell_phone/agentIndex');
// }
// }
/**
/**
* 经纪人通话汇总
* 经纪人通话汇总
*
*
...
@@ -165,39 +215,37 @@ class CellPhone extends Basic
...
@@ -165,39 +215,37 @@ class CellPhone extends Basic
{
{
if
(
$this
->
request
->
isAjax
())
{
if
(
$this
->
request
->
isAjax
())
{
return
$this
->
response
(
101
,
'维护中'
);
$result
[
'code'
]
=
200
;
$result
[
'code'
]
=
200
;
$result
[
'msg'
]
=
''
;
$result
[
'msg'
]
=
''
;
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
10
:
$this
->
params
[
'pageSize'
];
$report
=
new
SecretReport
();
$field
=
'id,time,name,money,phone'
;
$field
=
'a.id,b.phone,sum(time) as time,agents_id,call_type,release_time,start_time'
;
$where
[
'time'
]
=
[
'>'
,
0
];
$where
[
'time'
]
=
[
'>'
,
0
];
if
(
!
empty
(
$this
->
params
[
'start_date'
])
&&
empty
(
$this
->
params
[
'end_date'
]))
{
if
(
!
empty
(
$this
->
params
[
'start_date'
])
&&
empty
(
$this
->
params
[
'end_date'
]))
{
$where
[
'
a.create
_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]
];
$where
[
'
total
_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]
];
}
}
if
(
!
empty
(
$this
->
params
[
'end_date'
])
&&
empty
(
$this
->
params
[
'start_date'
]))
{
if
(
!
empty
(
$this
->
params
[
'end_date'
])
&&
empty
(
$this
->
params
[
'start_date'
]))
{
$where
[
'
a.create
_time'
]
=
[
'< time'
,
$this
->
params
[
'end_date'
]
];
$where
[
'
total
_time'
]
=
[
'< time'
,
$this
->
params
[
'end_date'
]
];
}
}
if
(
!
empty
(
$this
->
params
[
'end_date'
])
&&
!
empty
(
$this
->
params
[
'start_date'
]))
{
if
(
!
empty
(
$this
->
params
[
'end_date'
])
&&
!
empty
(
$this
->
params
[
'start_date'
]))
{
$where
[
'
a.create
_time'
]
=
[
'between'
,
[
$this
->
params
[
'start_date'
],
$this
->
params
[
'end_date'
]]];
$where
[
'
total
_time'
]
=
[
'between'
,
[
$this
->
params
[
'start_date'
],
$this
->
params
[
'end_date'
]]];
}
}
if
(
!
empty
(
$this
->
params
[
'agents_name'
]))
{
if
(
!
empty
(
$this
->
params
[
'agents_name'
]))
{
$where
[
'
realN
ame'
]
=
[
'LIKE'
,
$this
->
params
[
'agents_name'
]
.
'%'
];
$where
[
'
n
ame'
]
=
[
'LIKE'
,
$this
->
params
[
'agents_name'
]
.
'%'
];
}
}
if
(
!
empty
(
$this
->
params
[
'phone'
]))
{
if
(
!
empty
(
$this
->
params
[
'phone'
]))
{
$where
[
'phone'
]
=
[
'LIKE'
,
$this
->
params
[
'phone'
]
.
'%'
];
$where
[
'phone'
]
=
[
'LIKE'
,
$this
->
params
[
'phone'
]
.
'%'
];
}
}
$data
[
'list'
]
=
$report
->
getCallCollect
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$report
=
new
TAgentTotalCallModel
();
$data
[
'total'
]
=
$report
->
getCallCollectTotal
(
$where
);
$data
[
'list'
]
=
$report
->
getList
(
$pageNo
,
$pageSize
,
'id desc'
,
$field
,
$where
);
$data
[
'total'
]
=
$report
->
getTotal
(
$where
);
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$data
);
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
],
$data
);
}
else
{
}
else
{
return
view
(
'cell_phone/agentIndex'
);
return
view
(
'cell_phone/agentIndex'
);
...
...
application/index/view/houses/houseList.html
View file @
1613d4b7
...
@@ -231,15 +231,16 @@
...
@@ -231,15 +231,16 @@
<option
value=
"1"
selected=
"selected"
>
上架
</option>
<option
value=
"1"
selected=
"selected"
>
上架
</option>
<option
value=
"2"
>
下架
</option>
<option
value=
"2"
>
下架
</option>
</select>
</select>
<select
class=
"form-control btn2"
id=
"rent_price"
>
<span
class=
"fore-span"
>
月租金(元/月):
</span>
<option
value=
"-1"
>
月租金
</option>
<input
class=
"form-control btn2"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"area_start"
name=
""
type=
"text"
placeholder=
"请输入"
>
<option
value=
"1"
>
10000以下
</option>
<span
class=
"fore-span"
>
-
</span>
<option
value=
"2"
>
10000-30000
</option>
<input
class=
"form-control btn2"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"area_end"
name=
""
type=
"text"
placeholder=
"请输入"
>
<option
value=
"3"
>
30000以上
</option>
</select>
<span
class=
"fore-span"
>
面积m²:
</span>
<select
class=
"form-control btn2 "
id=
"area_id"
>
<input
class=
"form-control btn2"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"price_start"
name=
""
type=
"text"
placeholder=
"请输入"
>
<option
value=
""
selected=
"selected"
>
面积筛选
</option>
<span
class=
"fore-span"
>
-
</span>
</select>
<input
class=
"form-control btn2"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"price_end"
name=
""
type=
"text"
placeholder=
"请输入"
>
<select
class=
"form-control btn2 "
id=
"yetai_id"
>
<select
class=
"form-control btn2 "
id=
"yetai_id"
>
<option
value=
""
selected=
"selected"
>
业态筛选
</option>
<option
value=
""
selected=
"selected"
>
业态筛选
</option>
</select>
</select>
...
@@ -268,11 +269,6 @@
...
@@ -268,11 +269,6 @@
<!--新加筛选-->
<!--新加筛选-->
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_title_open"
placeholder=
"对外商铺名称"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_title_open"
placeholder=
"对外商铺名称"
type=
"text"
value=
""
>
<!--<select class="form-control btn2 ld-Marheight" id="shop_city_id">
<option value="" selected="selected">城市筛选</option>
<option value="310100">上海市</option>
<option value="330100">杭州市</option>
</select>-->
<!--新增盘方部门 盘方门店 -->
<!--新增盘方部门 盘方门店 -->
<!--二级联动-->
<!--二级联动-->
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"district_id_panfang"
>
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"district_id_panfang"
>
...
...
application/index/view/pkList/pkListCon.html
View file @
1613d4b7
...
@@ -117,7 +117,18 @@
...
@@ -117,7 +117,18 @@
#pk_list
td
,
#pk_list
th
{
#pk_list
td
,
#pk_list
th
{
padding
:
3px
;
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
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container pk-container"
>
<div
class=
"container pk-container"
>
...
@@ -134,7 +145,7 @@
...
@@ -134,7 +145,7 @@
</div>
</div>
<div
class=
"pk-container-detail-con"
>
<div
class=
"pk-container-detail-con"
>
<div
class=
"pk-container-detail-team"
>
<div
class=
"pk-container-detail-team"
>
<
span
class=
"team-span team-span-pk"
>
团队PK榜
</span
>
<
!--<span class="team-span team-span-pk">团队PK榜</span>--
>
<span
class=
"team-span-active team-span-pk"
>
店长PK榜
</span>
<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>
...
@@ -143,16 +154,32 @@
...
@@ -143,16 +154,32 @@
<span
class=
"export-pk"
>
导出报表
</span>
<span
class=
"export-pk"
>
导出报表
</span>
</div>
</div>
<div
class=
"pk-container-detail-a"
>
<div
class=
"pk-container-detail-a"
>
<span
class=
"a-span"
>
A
</span>
<span
class=
"a-span-active ld-Marheight"
data-id=
'1'
>
A
</span>
<span
class=
"a-span"
>
B
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'2'
>
B
</span>
<span
class=
"a-span-active"
>
C
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'3'
>
C
</span>
<span
class=
"a-span"
>
D
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'4'
>
D
</span>
<span
class=
"a-span"
>
E
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'5'
>
E
</span>
<span
class=
"a-span"
>
F
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'6'
>
F
</span>
<span
class=
"a-span"
>
G
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'7'
>
G
</span>
<span
class=
"a-span"
>
H
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'8'
>
H
</span>
<span
class=
"a-span"
>
I
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'9'
>
I
</span>
<span
class=
"a-span"
>
J
</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>
</div>
</div>
<div
class=
"pk_list_content"
>
<div
class=
"pk_list_content"
>
<table
id=
"pk_list"
class=
"table"
>
<table
id=
"pk_list"
class=
"table"
>
...
@@ -163,3 +190,7 @@
...
@@ -163,3 +190,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
</div>
application/index/view/professionalList/professionalListCon.html
View file @
1613d4b7
...
@@ -45,6 +45,23 @@
...
@@ -45,6 +45,23 @@
line-height
:
30px
;
line-height
:
30px
;
margin-left
:
-28px
;
margin-left
:
-28px
;
}
}
/*编辑 职称人员*/
.user-ul-agent-edit
{
width
:
223px
;
height
:
auto
;
float
:
left
;
position
:
absolute
;
background
:
#fff
;
border
:
.5px
solid
#ccc
;
border-top
:
none
;
left
:
4px
;
z-index
:
999
;
}
.user-ul-agent-edit
li
{
list-style
:
none
;
line-height
:
30px
;
margin-left
:
-28px
;
}
/*加载图标*/
/*加载图标*/
#main_loading_pic
{
#main_loading_pic
{
position
:
fixed
;
position
:
fixed
;
...
@@ -169,6 +186,50 @@
...
@@ -169,6 +186,50 @@
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /.modal -->
</div>
</div>
<!-- 编辑职称 人员 -->
<div
class=
"modal fade"
id=
"modal_edit"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-w"
>
<div
class=
"modal-content modal-body-width-h"
>
<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"
style=
"height: 350px;"
>
<form
class=
"form-horizontal"
id=
""
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
职称:
</label>
<select
id=
"professional_id_edit"
class=
"form-control btn6"
>
<option
value=
"-1"
>
选择职称
</option>
<option
value=
"1"
>
店长
</option>
<option
value=
"2"
>
经理
</option>
<option
value=
"3"
>
主任
</option>
<option
value=
"4"
>
顾问
</option>
<option
value=
"0"
>
新人
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
经纪人:
</label>
<div
class=
"left-phone"
>
<input
class=
"form-control"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_agent_name_edit"
placeholder=
"经纪人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul-agent-edit"
></ul>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
id=
"close"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"edit_professional"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--加载图标-->
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<div
id=
"main_loading_pic"
>
...
...
application/index/view/wx_authorization/share_detail.html
0 → 100644
View file @
1613d4b7
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
同联商业
</title>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=10"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
<meta
name=
"Keywords"
content=
""
/>
<meta
name=
"Description"
content=
""
/>
<link
rel=
"stylesheet"
href=
"/app/css/common.css"
>
<link
rel=
"stylesheet"
href=
"/app/css/details.css"
>
<link
rel=
"stylesheet"
href=
"/app/css/lunbo.css"
>
<link
rel=
"stylesheet"
href=
"/app/css/details_tl.css"
>
<link>
</head>
<body
style=
"background: #FFFFFF"
>
<header
class=
"m_part1_w"
>
<div
class=
"u_btn1b"
onclick=
"window.history.go(-1)"
style=
"margin-top:0.1rem"
><span
style=
""
><i
class=
"icon-angle-left"
style=
"font-size:0.65rem"
></i></span></div>
<div
class=
"lp-bunner"
>
<ul
class=
"swiper-wrapper"
id=
"img_item_ul"
>
</ul>
<span
class=
"lp-bunner-page"
>
<span
class=
"lp-index"
>
1
</span>
/
<span
class=
"lp-sum"
>
50
</span>
</span>
</div>
</header>
<!--line 1-->
<div
class=
"line_a"
>
</div>
<p
class=
"b3_spanhao_font"
id=
"font_24"
>
<span
class=
"b3_spanhao_left"
>
编号:
<span
class=
"b3_spanhao"
></span>
</span>
</p>
<p
class=
"line_hr"
></p>
<!--line 2-->
<div
class=
"line_b"
>
<ul>
<li
class=
"ul_b1"
>
<span
class=
"b1_span_ pu_area_type"
>
商铺面积
</span>
<span
class=
"b1_span_totl pu_area"
></span>
</li>
<li
class=
"ul_b2"
>
<span
class=
"b1_span_ pu_price_type"
>
租金
</span>
<span
class=
"b1_span_totl pu_price"
></span>
</li>
<li
class=
"ul_b3"
>
<span
class=
"b1_span_ slotting_fee_type"
>
转让费
</span>
<span
class=
"b1_span_totl slotting_fee"
></span>
</li>
</ul>
</div>
<p
class=
"line_hr"
></p>
<div
class=
"line_a_ul"
>
<ul
class=
"line_a_ulul"
>
</ul>
</div>
<!--line 3-->
<p
class=
"b3_font1 b3_span_shop_num"
>
<span>
剩余铺数:
</span>
<span
class=
"b3_span_build_num gw"
></span>
</p>
<p
class=
"b3_font1"
>
<span
class=
"b3_span_build_type"
>
建筑面积:
</span>
<span
class=
"b3_span_build gw"
></span>
</p>
<p
class=
"b3_font1"
>
物业管理费:
<span
class=
"b3_span0 gw"
></span>
</p>
<!--付款方式 签约年限-->
<p
class=
"b3_font1"
>
付款方式:
<span
class=
"gw terms-payment"
>
付三押二
</span>
</p>
<p
class=
"b3_font1"
>
签约年限:
<span
class=
"gw signing-year"
>
3-5年
</span>
</p>
<p
class=
"b3_font2"
>
适合经营:
<span
class=
"b3_span2 gw"
></span>
</p>
<p
class=
"line_hr"
></p>
<!--line 6-->
<div
class=
"b4_font"
>
<p
class=
"b4_font_p"
>
位置信息
</p>
<p
class=
"b4_font2"
>
地址:
<span
class=
"b4_span1 gw duinei"
></span>
</p>
<p
class=
"b4_font2"
>
交通:
<span
class=
"b4_span1 gw jiaotong"
></span>
</p>
</div>
<p
class=
"line_hr"
></p>
<div
class=
"b4_font"
id=
"b4_font"
>
<p
class=
"b4_font_p"
>
详细信息
</p>
<p
class=
"b4_font2"
>
商铺类型:
<span
class=
"b3_span gw"
></span>
</p>
<p
class=
"b4_font2"
>
交付装修:
<span
class=
"b4_span1 gw decoration-details"
></span>
</p>
<p
class=
"b4_font2"
>
目前证照经营范围:
<span
class=
"b4_span1 gw business-scope-details"
></span>
</p>
<p
class=
"b4_font2"
>
<span
class=
"has-housed"
>
已入驻:
</span>
<span
class=
"b3_span3 gw"
></span>
</p>
<p
class=
"b4_font2"
>
营业时间:
<span
class=
"b4_span1 gw yingye-time"
></span>
</p>
<p
class=
"b4_font2 zhaoshang-time-p"
>
招商时间:
<span
class=
"b4_span1 gw zhaoshang-time"
></span>
</p>
<p
class=
"kaiye-time-p b4_font2"
>
开业时间:
<span
class=
"b4_span1 gw kaiye-time"
></span>
</p>
<p
class=
"b4_font2"
>
面宽:
<span
class=
"b4_span1 gw area-width-details"
></span>
</p>
<p
class=
"b4_font2"
>
进深:
<span
class=
"b4_span1 gw depth-details"
></span>
</p>
</div>
<p
class=
"line_hr"
></p>
<!--line 4-->
<div
class=
"b4_font"
>
<p
class=
"b4_font_p"
>
经纪人对本铺评价
</p>
<p
class=
"b4_font_p_evaluation_first b4_font2"
>
周边配套:
<span
class=
"b4_font_evaluation surrounding-complete"
>
附近有沃尔玛超市、世纪联华超市、眼镜百货店等商场,杨泰公寓、杨泰二村等小区。
</span>
</p>
<p
class=
"b4_font_p_evaluation b4_font2"
>
所处地段:
<span
class=
"b4_font_evaluation in-section"
>
店铺位于商圈中心,地段繁华,交通便利。商铺在商场一楼,便于顾客进店。
</span>
</p>
<p
class=
"b4_font_p_evaluation b4_font2"
>
附近人流:
<span
class=
"b4_font_evaluation near-stream"
>
店铺周围客流量大,人群消费意愿强。
</span>
</p>
<p
class=
"b4_font_p_evaluation b4_font2"
>
其他补充:
<span
class=
"b4_font_evaluation other-supplementary"
>
有证照,省去开店前置手续。有380V动力电,满足设备用电需要。
</span>
</p>
</div>
<p
class=
"line_hr"
></p>
<!--设施配套-->
<div
class=
"b4_font"
>
<p
class=
"b4_font_p"
>
配套设施
</p>
<ul
class=
"b4_font2 supporting-facilities"
>
<li><span
class=
"icon-bg-facilities"
><img
src=
"/app/images/icon_200w@2x.png"
class=
"supporting-facilities-img"
/></span><span
class=
"electric-quantity-details"
>
200W
</span></li>
<li><span
class=
"icon-bg-facilities"
><img
src=
"/app/images/icon380v@2x.png"
class=
"supporting-facilities-img"
/></span><span
class=
"voltage-details"
>
380V
</span></li>
<li
class=
"meiqi-details-li"
><span
class=
"icon-bg-facilities"
><img
src=
"/app/images/icon_gas@2x.png"
class=
"supporting-facilities-img"
/></span><span
class=
"meiqi"
>
燃气
</span></li>
<li
class=
"exhaust-fume-details-li"
><span
class=
"icon-bg-facilities"
><img
src=
"/app/images/icon_piping@2x.png"
class=
"supporting-facilities-img"
/></span><span
class=
"exhaust-fume-details"
>
烟管道
</span></li>
<li
class=
"running-water-details-li"
><span
class=
"icon-bg-facilities"
><img
src=
"/app/images/icon_upper@2x.png"
class=
"supporting-facilities-img"
/></span><span
class=
"running-water-details"
>
上水
</span></li>
<li
class=
"downriver-details-li"
><span
class=
"icon-bg-facilities"
><img
src=
"/app/images/icon_sewer@2x.png"
class=
"supporting-facilities-img"
/></span><span
class=
"downriver-details"
>
下水
</span></li>
</ul>
</div>
<div
style=
"height: 2rem;"
>
</div>
<!--line 5-->
<!--<div class="b4_font">
<p class="b4_font_p" id="planter">
楼盘平面
</p>
</div>
<div class="slider3">
</div>-->
<!--房源动态-->
<!--<p class="line_hr"></p>
<div class="b4_font">
<p class="b4_font_p">
房源动态
</p>
</div>
<div class="line_b">
<ul>
<li class="ul_b1">
<span class="b1_span ">
近7日带看(次)
</span>
<span class="b1_span_totl_ take_look_7">
</span>
</li>
<li class="ul_b2">
<span class="b1_span ">
近30日带看(次)
</span>
<span class="b1_span_totl_ take_look_30">
</span>
</li>
<li class="ul_b3">
<span class="b1_span ">
关注房源(人)
</span>
<span class="b1_span_totl_ take_look_focus">
</span>
</li>
</ul>
</div>
<p class="line_hr"></p>-->
<!--下载app部分-->
<div
class=
"public fix_area_top"
style=
" z-index: 9999999;top: 0;display: none;"
>
<img
src=
"/app/images/pbl_cha.png"
class=
"pbl_cha"
/>
<img
src=
"/app/images/img_logo@2x.png"
class=
"pbl_logo"
/>
<p>
<span
style=
"font-size: 0.24rem;margin-top: 0.33rem;"
>
海量真实旺铺,就在同联商业
</span>
<!--<span style="font-size: 0.22rem; margin-top: 0.06rem;">请下载同联商业APP</span>-->
</p>
<a
id=
"jump_link"
href=
"javascript:;"
>
<!--<img src="/app/images/img_btn@2x.png" class="pbl_xz">-->
<span
class=
"pbl_xz"
>
立即打开
</span>
</a>
</div>
<!--底部联系人浮窗部分-->
<div
class=
"fix_area_bottom_new"
>
<div>
<div>
<p>
<img
src=
""
onerror=
"javascript:this.src='/app/images/ic_default_headpic.png'"
class=
"head-img-agent"
/>
<span
class=
"head-agent"
>
经纪人:
<span
id=
"fix_name"
></span></span>
</p>
</div>
<div>
<p>
<a
id=
"fix_tel"
href=
"javascript:;"
>
<img
src=
"/app/images/icon_telephone@2x.png"
class=
"tel-agent"
/><br/>
<span>
拨打电话
</span>
</a>
</p>
</div>
</div>
<a
href=
"javascript:;"
id=
"fix_area_bottom_btn"
><img
src=
"/app/images/xq_cha@2x.png"
/></a>
</div>
<div
class=
"shop-list"
>
<img
src=
"/app/images/img_more@2x.png"
alt=
""
/>
</div>
<!--<script src="/app/js/jquery.js"></script>-->
<script
src=
"/app/js/jquery-1122-min.js"
charset=
"UTF-8"
></script>
<script
src=
"/app/js/swiper.js"
></script>
<script
src=
"/app/js/app_jump.js"
></script>
<script
src=
"/app/js/common.js"
charset=
"utf-8"
></script>
<script
src=
"/app/js/detaila_tl.js?new1"
></script>
<script
src=
"/app/js/jquery.cookie.js"
></script>
<script
src=
"/app/js/Tab_min.js"
charset=
"utf-8"
></script>
</body>
</html>
\ No newline at end of file
application/index/view/wx_authorization/yindao_android.html
0 → 100644
View file @
1613d4b7
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
同联商业
</title>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=10"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
<meta
name=
"Keywords"
content=
""
/>
<meta
name=
"Description"
content=
""
/>
<link>
</head>
<body>
<div
style=
"width:100%;height:100%"
>
<image
style=
"width:100%;height:80%;position:fixed;top:5%;left:0px;z-index:10000;"
src=
"/app/images/android@2x.png"
/>
</div>
</body>
</html>
application/index/view/wx_authorization/yindao_ios.html
0 → 100644
View file @
1613d4b7
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
同联商业
</title>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=10"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
<meta
name=
"Keywords"
content=
""
/>
<meta
name=
"Description"
content=
""
/>
<link>
</head>
<body>
<div
style=
"width:100%;height:100%"
>
<image
style=
"width:100%;height:80%;position:fixed;top:5%;left:0px;z-index:10000;"
src=
"/app/images/ios@2x.png"
/>
</div>
</body>
</html>
application/model/TAgentTotalCallModel.php
View file @
1613d4b7
...
@@ -12,7 +12,7 @@ use think\Model;
...
@@ -12,7 +12,7 @@ use think\Model;
* Time : 下午2:00
* Time : 下午2:00
* Intro:
* Intro:
*/
*/
class
TAgentTotalCallModel
extends
Model
class
TAgentTotalCallModel
extends
Base
Model
{
{
protected
$table
=
"t_agent_call"
;
protected
$table
=
"t_agent_call"
;
private
$db_
;
private
$db_
;
...
...
application/task/controller/PrivacyNumber.php
View file @
1613d4b7
...
@@ -18,6 +18,7 @@ use app\model\AAgentsPhone;
...
@@ -18,6 +18,7 @@ use app\model\AAgentsPhone;
use
app\model\AliYunSecretReport
;
use
app\model\AliYunSecretReport
;
use
app\model\BindingPhone
;
use
app\model\BindingPhone
;
use
app\model\TAgentTotalCallModel
;
use
app\model\TAgentTotalCallModel
;
use
app\model\Users
;
use
think\Db
;
use
think\Db
;
use
think\Log
;
use
think\Log
;
use
think\Request
;
use
think\Request
;
...
@@ -28,12 +29,16 @@ class PrivacyNumber
...
@@ -28,12 +29,16 @@ class PrivacyNumber
private
$m_bind
;
private
$m_bind
;
private
$m_secret_report
;
private
$m_secret_report
;
private
$m_agent
;
private
$m_agent
;
private
$m_agent_phone
;
private
$m_user
;
public
function
__construct
()
public
function
__construct
()
{
{
$this
->
redis
=
RedisExt
::
getRedis
();
$this
->
redis
=
RedisExt
::
getRedis
();
$this
->
m_secret_report
=
new
AliYunSecretReport
();
$this
->
m_secret_report
=
new
AliYunSecretReport
();
$this
->
m_bind
=
new
BindingPhone
();
$this
->
m_bind
=
new
BindingPhone
();
$this
->
m_agent
=
new
AAgents
();
$this
->
m_agent
=
new
AAgents
();
$this
->
m_agent_phone
=
new
AAgentsPhone
();
$this
->
m_user
=
new
Users
();
}
}
/**
/**
...
@@ -78,6 +83,52 @@ class PrivacyNumber
...
@@ -78,6 +83,52 @@ class PrivacyNumber
return
json_encode
([
'code'
=>
0
,
'msg'
=>
'接收成功'
]);
return
json_encode
([
'code'
=>
0
,
'msg'
=>
'接收成功'
]);
}
}
/**
* 阿里大于隐私号码回调处理
*
* @return string
*/
public
function
addReportV2
()
{
$post_data
=
Request
::
instance
()
->
param
();
foreach
(
$post_data
as
$k
=>
$v
)
{
$save_data
=
$v
;
$save_data
[
'report_id'
]
=
$post_data
[
0
][
'id'
];
unset
(
$save_data
[
'id'
]);
//阿里大于返回是的id改为report_id
if
(
$v
[
'phone_no'
])
{
$agent_where
[
'phone'
]
=
$v
[
'phone_no'
];
$agent_where
[
'status'
]
=
0
;
$agent_where
[
'password'
]
=
[
'NOT NULL'
];
$agent_id
=
$this
->
m_agent
->
getAgentsByWhere
(
$agent_where
,
'id'
);
if
(
empty
(
$agent_id
))
{
$phone_where
[
'phone'
]
=
$v
[
'phone_no'
];
$phone_where
[
'status'
]
=
0
;
$agent_id
=
$this
->
m_agent_phone
->
getAgentsByWhere
(
$phone_where
,
'agents_id'
);
}
$save_data
[
'agents_id'
]
=
$agent_id
;
$save_data
[
'users_id'
]
=
$this
->
m_user
->
getUserByWhereValue
([
'user_phone'
=>
$save_data
[
'peer_no'
]],
'id'
);
}
$call_time
=
strtotime
(
$save_data
[
'release_time'
])
-
strtotime
(
$save_data
[
'start_time'
]);
$save_data
[
'time'
]
=
$call_time
;
if
(
$call_time
>
0
)
{
$end_date
=
date
(
'Y-m-d H:i:s'
,
time
());
$start_date
=
date
(
'Y-m-d H:i:s'
,
strtotime
(
"-1 day"
));
$num
=
$this
->
m_secret_report
->
getCallNumber
(
$post_data
[
0
][
'phone_no'
],
$post_data
[
0
][
'peer_no'
],
$start_date
,
$end_date
);
if
(
empty
(
$num
))
{
$m_service
=
new
ClientService
();
$m_service
->
saveCallNumByUserId
(
$save_data
[
'users_id'
]);
}
}
$this
->
m_secret_report
->
allowField
(
true
)
->
save
(
$save_data
);
}
Log
::
write
(
json_encode
(
$post_data
[
0
]),
'AliYunSecretReport'
);
//记录日志
return
json_encode
([
'code'
=>
0
,
'msg'
=>
'接收成功'
]);
}
/**
/**
* 下载录音 高峰期 一般是早上9-11点 下午2-4点
* 下载录音 高峰期 一般是早上9-11点 下午2-4点
*
*
...
@@ -399,7 +450,7 @@ class PrivacyNumber
...
@@ -399,7 +450,7 @@ class PrivacyNumber
}
}
$where
[
'c
reate
_time'
]
=
[
'between'
,
[
$yesterday
.
' 00:00:00'
,
$yesterday
.
' 23:59:59'
]];
$where
[
'c
all
_time'
]
=
[
'between'
,
[
$yesterday
.
' 00:00:00'
,
$yesterday
.
' 23:59:59'
]];
$where
[
'time'
]
=
[
'>'
,
0
];
$where
[
'time'
]
=
[
'>'
,
0
];
$total
=
$this
->
m_secret_report
->
getListGroupCount
(
$where
,
'phone_no'
);
$total
=
$this
->
m_secret_report
->
getListGroupCount
(
$where
,
'phone_no'
);
...
@@ -492,8 +543,8 @@ class PrivacyNumber
...
@@ -492,8 +543,8 @@ class PrivacyNumber
* 历史数据
* 历史数据
*/
*/
public
function
oldTotalAgentCall
()
{
public
function
oldTotalAgentCall
()
{
//
$month = ['2018-03','2018-04','2018-05','2018-06','2018-07','2018-08','2018-09','2018-10','2018-11'];
$month
=
[
'2018-03'
,
'2018-04'
,
'2018-05'
,
'2018-06'
,
'2018-07'
,
'2018-08'
,
'2018-09'
,
'2018-10'
,
'2018-11'
];
$month
=
[
'2018-11'
];
//
$month = ['2018-11'];
foreach
(
$month
as
$v
)
{
foreach
(
$month
as
$v
)
{
$firstday
=
date
(
'Y-m-01'
,
strtotime
(
$v
));
$firstday
=
date
(
'Y-m-01'
,
strtotime
(
$v
));
...
...
public/resource/js/houseList.js
View file @
1613d4b7
...
@@ -1218,13 +1218,11 @@ if(data.code == 200) {
...
@@ -1218,13 +1218,11 @@ if(data.code == 200) {
params
.
shop_type
=
$
(
'#shop_type option:selected'
).
val
();
//商铺类型
params
.
shop_type
=
$
(
'#shop_type option:selected'
).
val
();
//商铺类型
// params.leased = $('#leased option:selected').val(); 商铺状态
// params.leased = $('#leased option:selected').val(); 商铺状态
params
.
status
=
$
(
'#leased option:selected'
).
val
();
//商铺状态 上架 下架
params
.
status
=
$
(
'#leased option:selected'
).
val
();
//商铺状态 上架 下架
params
.
rent_price
=
$
(
'#rent_price option:selected'
).
val
();
//月租金
params
.
is_exclusive_type
=
$
(
'#is_exclusive_type option:selected'
).
val
();
//是否独家
params
.
is_exclusive_type
=
$
(
'#is_exclusive_type option:selected'
).
val
();
//是否独家
params
.
id
=
$
(
'#id'
).
val
();
//商铺编号
params
.
id
=
$
(
'#id'
).
val
();
//商铺编号
params
.
internal_address
=
$
(
'#shop_address'
).
val
();
//商铺地址,即对内地址
params
.
internal_address
=
$
(
'#shop_address'
).
val
();
//商铺地址,即对内地址
params
.
internal_title
=
$
(
'#internal_title'
).
val
();
//对内商铺名称
params
.
internal_title
=
$
(
'#internal_title'
).
val
();
//对内商铺名称
params
.
external_title
=
$
(
'#internal_title_open'
).
val
();
//对外商铺名称
params
.
external_title
=
$
(
'#internal_title_open'
).
val
();
//对外商铺名称
params
.
area
=
$
(
'#area_id'
).
val
();
//面积筛选
params
.
is_lock
=
$
(
'#is_lock_plate'
).
val
();
//锁盘筛选
params
.
is_lock
=
$
(
'#is_lock_plate'
).
val
();
//锁盘筛选
params
.
vip
=
$
(
'#is_vip_plate'
).
val
();
//VIP盘筛选
params
.
vip
=
$
(
'#is_vip_plate'
).
val
();
//VIP盘筛选
//添加个人商铺和所有商铺选择功能
//添加个人商铺和所有商铺选择功能
...
@@ -1240,6 +1238,13 @@ if(data.code == 200) {
...
@@ -1240,6 +1238,13 @@ if(data.code == 200) {
params
.
dish_district_id
=
$
(
'#district_id_panfang'
).
val
();
//盘方 部门 id
params
.
dish_district_id
=
$
(
'#district_id_panfang'
).
val
();
//盘方 部门 id
params
.
dish_store_id
=
$
(
'#guest_stores_panfang'
).
val
();
//盘方 门店 id
params
.
dish_store_id
=
$
(
'#guest_stores_panfang'
).
val
();
//盘方 门店 id
params
.
dish_name
=
business
.
agent_id_choose
;
//盘方姓名 下拉式
params
.
dish_name
=
business
.
agent_id_choose
;
//盘方姓名 下拉式
params
.
area_start
=
$
(
'#area_start'
).
val
();
//面积开始
params
.
area_end
=
$
(
'#area_end'
).
val
();
//面积结束
params
.
price_start
=
$
(
'#price_start'
).
val
();
//月租金开始
params
.
price_end
=
$
(
'#price_end'
).
val
();
//月租金结束
$
.
ajax
({
$
.
ajax
({
url
:
'/index/getHouseList.html'
,
//获取列表
url
:
'/index/getHouseList.html'
,
//获取列表
type
:
'GET'
,
type
:
'GET'
,
...
...
public/resource/js/pkList.js
View file @
1613d4b7
define
([
'doT'
,
'text!temp/pk_list_template_tpl.html.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
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
=
{
pkList
=
{
pageNo
:
1
,
pageNo
:
1
,
/*第几页*/
/*第几页*/
pageSize
:
25
,
pageSize
:
25
,
/*每页显示多少条*/
/*每页显示多少条*/
mainTabIndex
:
0
,
mainTabIndex
:
1
,
mainTabIndexTwo
:
0
,
mainTabIndexTwo
:
0
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
...
@@ -20,17 +22,32 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
...
@@ -20,17 +22,32 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
_this
.
removeClass
(
'team-span'
).
addClass
(
'team-span-active'
).
siblings
().
removeClass
(
'team-span-active'
).
addClass
(
'team-span'
);
_this
.
removeClass
(
'team-span'
).
addClass
(
'team-span-active'
).
siblings
().
removeClass
(
'team-span-active'
).
addClass
(
'team-span'
);
pkList
.
mainTabIndex
=
_this
.
index
();
if
(
_this
.
index
()
==
0
){
console
.
log
(
pkList
.
mainTabIndex
)
pkList
.
mainTabIndex
=
1
}
if
(
_this
.
index
()
==
1
){
pkList
.
mainTabIndex
=
2
;
}
if
(
_this
.
index
()
==
2
){
pkList
.
mainTabIndex
=
3
;
}
if
(
_this
.
index
()
==
3
){
pkList
.
mainTabIndex
=
4
;
}
if
(
_this
.
index
()
==
4
){
pkList
.
mainTabIndex
=
0
;
}
});
});
_doc
.
on
(
'click'
,
'.pk-container-detail-a>span'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.pk-container-detail-a>span'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
_this
.
removeClass
(
'a-span'
).
addClass
(
'a-span-active'
).
siblings
().
removeClass
(
'a-span-active'
).
addClass
(
'a-span'
);
_this
.
removeClass
(
'a-span'
).
addClass
(
'a-span-active'
).
siblings
().
removeClass
(
'a-span-active'
).
addClass
(
'a-span'
);
pkList
.
mainTabIndexTwo
=
_this
.
index
();
pkList
.
mainTabIndexTwo
=
_this
.
attr
(
'data-id'
);
console
.
log
(
pkList
.
mainTabIndexTwo
)
pkList
.
getList
();
});
});
$
(
"#export"
).
click
(
function
()
{
//导出列表
$
(
"#export"
).
click
(
function
()
{
//导出列表
pkList
.
exportList
();
pkList
.
exportList
();
});
});
...
@@ -56,20 +73,22 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
...
@@ -56,20 +73,22 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
getList
:
function
(
pageNo
)
{
getList
:
function
(
pageNo
)
{
var
params
=
{};
var
params
=
{};
params
.
p
ageNo
=
pkList
.
pageNo
;
params
.
p
osition
=
pkList
.
mainTabIndex
;
params
.
pageSize
=
pkList
.
pageSize
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/
evaluation
List'
,
//拜访列表
url
:
'/index/
getRandKing
List'
,
//拜访列表
data
:
params
,
data
:
params
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{
$
(
'#main_loading_pic'
).
show
();
},
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
(
'pk_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'pk_list_tpl'
).
innerHTML
);
$
(
"#pk_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#pk_list"
).
html
(
doTtmpl
(
data
.
data
[
pkList
.
mainTabIndexTwo
]
));
add_page
(
data
.
data
.
total
,
pageNo
,
pkList
.
pageSize
,
pkList
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
pkList
.
pageSize
,
pkList
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
...
@@ -82,6 +101,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
...
@@ -82,6 +101,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
alert
(
'error'
);
alert
(
'error'
);
},
},
complete
:
function
(
xhr
,
textStatus
){
complete
:
function
(
xhr
,
textStatus
){
$
(
'#main_loading_pic'
).
hide
();
if
(
textStatus
===
'timeout'
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
alert
(
'请求超时'
);
};
};
...
...
public/resource/js/professionalList.js
View file @
1613d4b7
...
@@ -8,6 +8,10 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
...
@@ -8,6 +8,10 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
mainTabIndex
:
0
,
mainTabIndex
:
0
,
agent_id_choose
:
''
,
agent_id_choose
:
''
,
agent_id_choose_add
:
''
,
agent_id_choose_add
:
''
,
agent_id_choose_edit
:
''
,
agent_id_choose_concel
:
''
,
edit_professional
:
''
,
edit_professional_id
:
''
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -35,12 +39,24 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
...
@@ -35,12 +39,24 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
professional
.
search_phone_agent_add
();
professional
.
search_phone_agent_add
();
}
}
});
});
_doc
.
on
(
"input"
,
"#user_agent_name_edit"
,
function
()
{
//客户列表 客方员工姓名 下拉式搜索(编辑)
if
(
$
(
"#user_agent_name_edit"
).
val
()
==
''
)
{
professional
.
agent_id_choose_edit
=
''
;
$
(
".user-ul-agent-edit"
).
html
(
''
);
}
else
{
professional
.
search_phone_agent_edit
();
}
});
_doc
.
delegate
(
".addphone-agent"
,
"click"
,
function
()
{
//客户列表 客户员工 下拉式 搜索 点击li事件 获取id ul消失
_doc
.
delegate
(
".addphone-agent"
,
"click"
,
function
()
{
//客户列表 客户员工 下拉式 搜索 点击li事件 获取id ul消失
professional
.
addphoneAgent
(
this
);
professional
.
addphoneAgent
(
this
);
});
});
_doc
.
delegate
(
".addphone-agent-add"
,
"click"
,
function
()
{
//客户列表 客户员工 下拉式 搜索 点击li事件 获取id ul消失(新增)
_doc
.
delegate
(
".addphone-agent-add"
,
"click"
,
function
()
{
//客户列表 客户员工 下拉式 搜索 点击li事件 获取id ul消失(新增)
professional
.
addphoneAgentAdd
(
this
);
professional
.
addphoneAgentAdd
(
this
);
});
});
_doc
.
delegate
(
".addphone-agent-edit"
,
"click"
,
function
()
{
//客户列表 客户员工 下拉式 搜索 点击li事件 获取id ul消失(编辑)
professional
.
addphoneAgentEdit
(
this
);
});
//主页面 6个tab的点击事件
//主页面 6个tab的点击事件
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -48,7 +64,7 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
...
@@ -48,7 +64,7 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
if
(
_this
.
index
()
==
0
){
if
(
_this
.
index
()
==
0
){
professional
.
mainTabIndex
=
5
;
professional
.
mainTabIndex
=
-
1
;
}
}
if
(
_this
.
index
()
==
1
){
if
(
_this
.
index
()
==
1
){
professional
.
mainTabIndex
=
1
;
professional
.
mainTabIndex
=
1
;
...
@@ -81,6 +97,29 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
...
@@ -81,6 +97,29 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
$
(
"#add_professional"
).
click
(
function
()
{
$
(
"#add_professional"
).
click
(
function
()
{
professional
.
addProfessional
();
//新增 职称人员
professional
.
addProfessional
();
//新增 职称人员
});
});
$
(
"#edit_professional"
).
click
(
function
()
{
professional
.
editProfessional
();
//编辑 职称人员
});
_doc
.
on
(
'click'
,
'.edit-professional-detail'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
professional
.
agent_id_choose_edit
=
_this
.
attr
(
'data-id'
);
var
professional_agent
=
_this
.
attr
(
'data-id'
)
+
"-"
+
_this
.
attr
(
'data-name'
)
+
'-'
+
_this
.
attr
(
'data-phone'
)
$
(
'#user_agent_name_edit'
).
val
(
professional_agent
);
$
(
'#professional_id_edit'
).
val
(
_this
.
attr
(
'data-agent'
));
});
_doc
.
on
(
'click'
,
'.concel-professional'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
professional
.
agent_id_choose_concel
=
_this
.
attr
(
'data-id'
);
if
(
!
confirm
(
'是否取消职称?'
))
{
return
;
};
professional
.
concelProfessional
();
//取消 职称人员
});
},
},
//新增 职称人员
//新增 职称人员
addProfessional
:
function
()
{
addProfessional
:
function
()
{
...
@@ -106,6 +145,51 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
...
@@ -106,6 +145,51 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
}
}
});
});
},
},
editProfessional
:
function
()
{
$
.
ajax
({
url
:
'/index/updatePosition'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"agent_id"
:
professional
.
agent_id_choose_edit
,
"position"
:
$
(
"#professional_id_edit"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功!'
)
$
(
"#modal_edit"
).
modal
(
'hide'
);
professional
.
getList
(
professional
.
pageNo
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
concelProfessional
:
function
()
{
$
.
ajax
({
url
:
'/index/updatePosition'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"agent_id"
:
professional
.
agent_id_choose_concel
,
"position"
:
5
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功!'
)
$
(
"#modal_add_professional"
).
modal
(
'hide'
);
professional
.
getList
(
professional
.
pageNo
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//获取不同职位的列表
//获取不同职位的列表
getList
:
function
(
pageNo
){
getList
:
function
(
pageNo
){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
...
@@ -212,6 +296,36 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
...
@@ -212,6 +296,36 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
$
(
".user-ul-agent-add"
).
html
(
''
);
$
(
".user-ul-agent-add"
).
html
(
''
);
professional
.
agent_id_choose_add
=
$
(
obj
).
attr
(
"data-id"
);
professional
.
agent_id_choose_add
=
$
(
obj
).
attr
(
"data-id"
);
},
},
search_phone_agent_edit
:
function
()
{
//客户列表 客方员工 姓名的下拉式搜索(编辑)
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#user_agent_name_edit"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphone-agent-edit" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul-agent-edit"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
addphoneAgentEdit
:
function
(
obj
)
{
//客户列表 客方姓名 搜索 input赋值(编辑)
var
user_ht
=
$
(
obj
).
html
();
$
(
"#user_agent_name_edit"
).
val
(
user_ht
);
$
(
".user-ul-agent-edit"
).
html
(
''
);
professional
.
agent_id_choose_edit
=
$
(
obj
).
attr
(
"data-id"
);
},
};
};
return
professional
;
return
professional
;
});
});
\ No newline at end of file
public/resource/template/agentIndex_template_tpl.html
View file @
1613d4b7
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
[
%
if
(
it
[
0
])
{
%
]
[
%
if
(
it
[
0
])
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'
agents_
name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
price
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
money
'
]
%
]
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
...
...
public/resource/template/marchin_list_template_tpl.html
View file @
1613d4b7
...
@@ -12,7 +12,9 @@
...
@@ -12,7 +12,9 @@
data
-
bimg
=
'[%=location.href+"/static/chat_image/"+it[item]["march_in_img"] %]'
>
data
-
bimg
=
'[%=location.href+"/static/chat_image/"+it[item]["march_in_img"] %]'
>
<
/td
>
<
/td
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
[
%
if
(
check_auth
(
'marchIn_timer_shaft'
))
{
%
]
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
[
%
}
%
]
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
...
...
public/resource/template/pk_list_template_tpl.html.html
View file @
1613d4b7
<script
id=
"pk_list_tpl"
type=
"text/template"
>
<script
id=
"pk_list_tpl"
type=
"text/template"
>
[
%
var
sw
=
function
(
s
){
return
++
s
};
%
]
[
%
if
(
it
)
{
%
]
[
%
if
(
it
)
{
%
]
<
tr
>
<
tr
>
<
th
class
=
"text-center"
>
排名
<
/th
>
<
th
class
=
"text-center"
>
排名
<
/th
>
...
@@ -8,10 +9,10 @@
...
@@ -8,10 +9,10 @@
<
/tr
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
>
[
%=
sw
(
item
)
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"evaluate_content"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"evaluate_content"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
phon
e"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
nam
e"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
create_tim
e"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
performanc
e"
]
%
]
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
...
...
public/resource/template/professional_list_template_tpl.html
View file @
1613d4b7
...
@@ -21,9 +21,12 @@
...
@@ -21,9 +21,12 @@
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'phone'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'phone'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
td
class
=
"text-center"
>
<
a
class
=
"btn1 btn-info concel-professional"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
agent
=
'[%= it[item]["agent_id"] %]'
>
<
a
class
=
"btn1 btn-info concel-professional"
data
-
id
=
'[%= it[item]["id"] %]'
>
取消职称
取消职称
<
/a
>
<
/a
>
<
a
class
=
"btn1 btn-info edit-professional-detail"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
agent
=
'[%= it[item]["position"] %]'
data
-
name
=
'[%= it[item]["name"] %]'
data
-
phone
=
'[%= it[item]["phone"] %]'
href
=
"#modal_edit"
data
-
toggle
=
"modal"
>
编辑职称
<
/a
>
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
...
...
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