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
6940e98b
Commit
6940e98b
authored
Oct 22, 2018
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
f8417fc7
c8d260b1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
209 additions
and
50 deletions
+209
-50
Broker.php
application/api/controller/Broker.php
+6
-1
share_detail.html
application/app/view/index/share_detail.html
+1
-0
Remark.php
application/index/controller/Remark.php
+18
-8
detaila_tl.js
public/app/js/detaila_tl.js
+19
-0
jquery.cookie.js
public/app/js/jquery.cookie.js
+117
-0
reportList.js
public/resource/js/reportList.js
+42
-35
real_time_performance_template_tpl.html
...resource/template/real_time_performance_template_tpl.html
+6
-6
No files found.
application/api/controller/Broker.php
View file @
6940e98b
...
@@ -284,8 +284,13 @@ class Broker extends Basic
...
@@ -284,8 +284,13 @@ class Broker extends Basic
if
(
$is
)
{
if
(
$is
)
{
$m_agents
=
new
AAgents
();
$m_agents
=
new
AAgents
();
$agents_data
=
$m_agents
->
getAgentInfo
(
'id,update_time,call_number'
,
$this
->
params
[
'agent_id'
]);
if
(
empty
(
$this
->
params
[
'phone'
]))
{
$agents_data
=
$m_agents
->
getAgentInfo
(
'id,update_time,call_number'
,
$this
->
params
[
'agent_id'
]);
}
else
{
$agents_data
=
$m_agents
->
getAgentInfo
(
'id,update_time,call_number'
,
''
,
[
'agent_id'
,
$this
->
params
[
'agent_id'
]]);
}
$insert_data
[
'update_time'
]
=
$agents_data
[
'update_time'
];
$insert_data
[
'update_time'
]
=
$agents_data
[
'update_time'
];
$insert_data
[
'call_number'
]
=
$agents_data
[
'call_number'
]
+
1
;
$insert_data
[
'call_number'
]
=
$agents_data
[
'call_number'
]
+
1
;
$data
[
'data'
]
=
$m_agents
->
editData
(
$insert_data
,
$agents_data
[
'id'
]);
$data
[
'data'
]
=
$m_agents
->
editData
(
$insert_data
,
$agents_data
[
'id'
]);
...
...
application/app/view/index/share_detail.html
View file @
6940e98b
...
@@ -262,6 +262,7 @@
...
@@ -262,6 +262,7 @@
<script
src=
"/app/js/app_jump.js"
></script>
<script
src=
"/app/js/app_jump.js"
></script>
<script
src=
"/app/js/common.js"
charset=
"utf-8"
></script>
<script
src=
"/app/js/common.js"
charset=
"utf-8"
></script>
<script
src=
"/app/js/detaila_tl.js?new1"
></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>
<script
src=
"/app/js/Tab_min.js"
charset=
"utf-8"
></script>
</body>
</body>
...
...
application/index/controller/Remark.php
View file @
6940e98b
...
@@ -11,6 +11,7 @@ namespace app\index\controller;
...
@@ -11,6 +11,7 @@ namespace app\index\controller;
use
app\api_broker\service\CallPhoneService
;
use
app\api_broker\service\CallPhoneService
;
use
app\api_broker\service\ClientService
;
use
app\api_broker\service\ClientService
;
use
app\api_broker\service\UserExpiredTimeService
;
use
app\api_broker\service\UserExpiredTimeService
;
use
app\extra\RedisExt
;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\index\service\UserService
;
use
app\index\service\UserService
;
use
app\model\AAgents
;
use
app\model\AAgents
;
...
@@ -118,11 +119,10 @@ class Remark extends Basic
...
@@ -118,11 +119,10 @@ class Remark extends Basic
}
}
$field
=
'id,user_id,create_time,content,user_status,labels_id,agent_id as f_agent_id'
;
$field
=
'id,user_id,create_time,content,user_status,labels_id,agent_id as f_agent_id'
;
$data
[
'data'
][
'list'
]
=
$u_phone_follow
->
getFollowList
(
$pageNo
,
$pageSize
,
$order_
=
'id desc'
,
$field
,
$where
);
$data
[
'data'
][
'list'
]
=
$u_phone_follow
->
getFollowList
(
$pageNo
,
$pageSize
,
$order_
=
'id desc'
,
$field
,
$where
);
$redis
=
RedisExt
::
getRedis
();
foreach
(
$data
[
'data'
][
'list'
]
as
$k
=>
$v
)
{
foreach
(
$data
[
'data'
][
'list'
]
as
$k
=>
$v
)
{
// dump($v);
//dump($v);
//查询客户是否在保护期内
//查询客户是否在保护期内
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
$user_service
=
new
UserService
();
$user_service
=
new
UserService
();
...
@@ -138,11 +138,21 @@ class Remark extends Basic
...
@@ -138,11 +138,21 @@ class Remark extends Basic
}
}
$model
=
new
AAgents
();
$model
=
new
AAgents
();
$result
=
$model
->
searchAgentsByKeyword
(
"id,name,phone"
,
[
"id"
=>
$this
->
params
[
"agent_id"
]]);
$result
=
$model
->
searchAgentsByKeyword
(
"id,name,phone"
,
[
"id"
=>
$this
->
params
[
"agent_id"
]]);
$call
=
new
CallPhoneService
();
//$call = new CallPhoneService();
$result
=
$call
->
getBindNum
(
$v
[
'user_phone'
],
$result
[
0
][
'phone'
]);
//$result = $call->getBindNum($v['user_phone'],$result[0]['phone']);
if
(
$result
!=
0
){
//if($result != 0){
$is_outpace_call_num
=
0
;
// $is_outpace_call_num = 0;
}
//}
$is_privacy
=
$redis
->
get
(
's_is_privacy'
);
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
if
(
!
empty
(
$is_privacy
))
{
$call_key
=
'call_'
.
$this
->
userId
.
'_'
.
$result
[
0
][
'phone'
]
.
'_'
.
$v
[
'user_phone'
]
.
'_'
.
$is_privacy
;
$redis_res
=
$redis
->
get
(
$call_key
);
if
(
!
empty
(
$redis_res
)){
$is_outpace_call_num
=
0
;
}
}
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
$data
[
'data'
][
'list'
][
$k
][
'is_outpace_call_num'
]
=
$is_outpace_call_num
;
$data
[
'data'
][
'list'
][
$k
][
'is_outpace_call_num'
]
=
$is_outpace_call_num
;
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 end*/
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 end*/
...
...
public/app/js/detaila_tl.js
View file @
6940e98b
...
@@ -270,7 +270,26 @@
...
@@ -270,7 +270,26 @@
}
else
{
}
else
{
$
(
".head-img-agent"
).
attr
(
"src"
,
"/app/images/ic_default_headpic.png"
);
$
(
".head-img-agent"
).
attr
(
"src"
,
"/app/images/ic_default_headpic.png"
);
}
}
//点击拨打 记录拨打次数
$
(
"#fix_tel"
).
click
(
function
()
{
if
(
$
.
cookie
(
"isCallShop"
)
!=
'yes'
){
$
.
ajax
({
url
:
'/api/recordCallNumShare'
,
type
:
'POST'
,
async
:
true
,
data
:
{
'phone'
:
_tel
},
dataType
:
'json'
,
success
:
function
(
data
)
{
$
.
cookie
(
"isCallShop"
,
'yes'
,{
expires
:
1
});
}
});
}
});
$
(
"#fix_area_bottom_btn"
).
click
(
function
()
{
$
(
"#fix_area_bottom_btn"
).
click
(
function
()
{
_fix_bottom
.
hide
();
_fix_bottom
.
hide
();
});
});
...
...
public/app/js/jquery.cookie.js
0 → 100644
View file @
6940e98b
/*!
* jQuery Cookie Plugin v1.4.0
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2013 Klaus Hartl
* Released under the MIT license
*/
(
function
(
factory
)
{
if
(
typeof
define
===
'function'
&&
define
.
amd
)
{
// AMD. Register as anonymous module.
define
([
'jquery'
],
factory
);
}
else
{
// Browser globals.
factory
(
jQuery
);
}
}(
function
(
$
)
{
var
pluses
=
/
\+
/g
;
function
encode
(
s
)
{
return
config
.
raw
?
s
:
encodeURIComponent
(
s
);
}
function
decode
(
s
)
{
return
config
.
raw
?
s
:
decodeURIComponent
(
s
);
}
function
stringifyCookieValue
(
value
)
{
return
encode
(
config
.
json
?
JSON
.
stringify
(
value
)
:
String
(
value
));
}
function
parseCookieValue
(
s
)
{
if
(
s
.
indexOf
(
'"'
)
===
0
)
{
// This is a quoted cookie as according to RFC2068, unescape...
s
=
s
.
slice
(
1
,
-
1
).
replace
(
/
\\
"/g
,
'"'
).
replace
(
/
\\\\
/g
,
'
\
\'
);
}
try {
// Replace server-side written pluses with spaces.
// If we can'
t
decode
the
cookie
,
ignore
it
,
it
's unusable.
s = decodeURIComponent(s.replace(pluses, '
'));
} catch(e) {
return;
}
try {
// If we can'
t
parse
the
cookie
,
ignore
it
,
it
's unusable.
return config.json ? JSON.parse(s) : s;
} catch(e) {}
}
function read(s, converter) {
var value = config.raw ? s : parseCookieValue(s);
return $.isFunction(converter) ? converter(value) : value;
}
var config = $.cookie = function (key, value, options) {
// Write
if (value !== undefined && !$.isFunction(value)) {
options = $.extend({}, config.defaults, options);
if (typeof options.expires === '
number
') {
var days = options.expires, t = options.expires = new Date();
t.setDate(t.getDate() + days);
}
return (document.cookie = [
encode(key), '
=
', stringifyCookieValue(value),
options.expires ? '
;
expires
=
' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
options.path ? '
;
path
=
' + options.path : '',
options.domain ? '
;
domain
=
' + options.domain : '',
options.secure ? '
;
secure
' : ''
].join(''));
}
// Read
var result = key ? undefined : {};
// To prevent the for loop in the first place assign an empty array
// in case there are no cookies at all. Also prevents odd result when
// calling $.cookie().
var cookies = document.cookie ? document.cookie.split('
;
') : [];
for (var i = 0, l = cookies.length; i < l; i++) {
var parts = cookies[i].split('
=
');
var name = decode(parts.shift());
var cookie = parts.join('
=
');
if (key && key === name) {
// If second argument (value) is a function it'
s
a
converter
...
result
=
read
(
cookie
,
value
);
break
;
}
// Prevent storing a cookie that we couldn't decode.
if
(
!
key
&&
(
cookie
=
read
(
cookie
))
!==
undefined
)
{
result
[
name
]
=
cookie
;
}
}
return
result
;
};
config
.
defaults
=
{};
$
.
removeCookie
=
function
(
key
,
options
)
{
if
(
$
.
cookie
(
key
)
!==
undefined
)
{
// Must not alter options, thus extending a fresh object...
$
.
cookie
(
key
,
''
,
$
.
extend
({},
options
,
{
expires
:
-
1
}));
return
true
;
}
return
false
;
};
}));
public/resource/js/reportList.js
View file @
6940e98b
...
@@ -13,6 +13,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -13,6 +13,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
agent_id_phone
:
''
,
//分佣方 姓名搜索
agent_id_phone
:
''
,
//分佣方 姓名搜索
detail_user_id
:
''
,
//用户id
detail_user_id
:
''
,
//用户id
detail_shop_id
:
''
,
//商铺id
detail_shop_id
:
''
,
//商铺id
isBargaininfoSaveIngFlag
:
false
,
//成交信息保存是否正在保存
shouyong_date_active_sapn
:
null
,
shouyong_date_active_sapn
:
null
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
...
@@ -712,42 +713,48 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -712,42 +713,48 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
});
},
},
bargaininfoSave
:
function
()
{
//修改报告详情
bargaininfoSave
:
function
()
{
//修改报告详情
var
_data
=
{
if
(
!
bargain
.
isBargaininfoSaveIngFlag
){
'id'
:
bargain
.
bargain_id
,
bargain
.
isBargaininfoSaveIngFlag
=
true
;
'commission'
:
$
.
trim
(
$
(
'#bargaininfo_total_commission'
).
val
()),
var
_data
=
{
'content'
:
$
.
trim
(
$
(
'#bargaininfo_beizhu'
).
val
()),
'id'
:
bargain
.
bargain_id
,
'is_open'
:
$
(
'#bargaininfo_is_open'
).
val
(),
'commission'
:
$
.
trim
(
$
(
'#bargaininfo_total_commission'
).
val
()),
'trade_type'
:
$
(
'#bargaininfo_type'
).
val
(),
'content'
:
$
.
trim
(
$
(
'#bargaininfo_beizhu'
).
val
()),
'industry_type'
:
$
.
trim
(
$
(
'#bargaininfo_yetai'
).
val
()),
'is_open'
:
$
(
'#bargaininfo_is_open'
).
val
(),
'price'
:
$
(
'#bargaininfo_chengjiao_price'
).
val
(),
'trade_type'
:
$
(
'#bargaininfo_type'
).
val
(),
'estimated_receipt_date'
:
$
(
'#bargaininfo_expect_payback_time'
).
val
(),
'industry_type'
:
$
.
trim
(
$
(
'#bargaininfo_yetai'
).
val
()),
'step'
:
bargain
.
mainTabIndex
,
'price'
:
$
(
'#bargaininfo_chengjiao_price'
).
val
(),
'house_number'
:
$
.
trim
(
$
(
'#bargaininfo_shop_num'
).
val
())
'estimated_receipt_date'
:
$
(
'#bargaininfo_expect_payback_time'
).
val
(),
'step'
:
bargain
.
mainTabIndex
,
};
'house_number'
:
$
.
trim
(
$
(
'#bargaininfo_shop_num'
).
val
())
$
.
each
(
$
(
'.detail-modal-bargaininfo-commission-sec'
),
function
(
i
,
v
)
{
_data
[
'practical_fee['
+
i
+
']'
]
=
{
'fee_id'
:
v
.
getAttribute
(
'data-id'
)?
v
.
getAttribute
(
'data-id'
):
0
,
'fee'
:
$
.
trim
(
$
(
v
).
find
(
'input'
).
eq
(
0
).
val
()),
'operation_date'
:
$
.
trim
(
$
(
v
).
find
(
'input'
).
eq
(
1
).
val
())
};
};
});
$
.
each
(
$
(
'.detail-modal-bargaininfo-commission-sec'
),
function
(
i
,
v
)
{
$
.
ajax
({
_data
[
'practical_fee['
+
i
+
']'
]
=
{
'type'
:
'POST'
,
'fee_id'
:
v
.
getAttribute
(
'data-id'
)?
v
.
getAttribute
(
'data-id'
):
0
,
'url'
:
'/index/editBargainInfo'
,
'fee'
:
$
.
trim
(
$
(
v
).
find
(
'input'
).
eq
(
0
).
val
()),
data
:
_data
,
'operation_date'
:
$
.
trim
(
$
(
v
).
find
(
'input'
).
eq
(
1
).
val
())
dataType
:
"json"
,
};
success
:
function
(
data
)
{
});
if
(
data
.
code
==
200
)
{
$
.
ajax
({
'type'
:
'POST'
,
alert
(
'修改成功'
);
'url'
:
'/index/editBargainInfo'
,
bargain
.
bargaininfoShow
();
data
:
_data
,
//bargain.getList(0);
dataType
:
"json"
,
}
else
{
success
:
function
(
data
)
{
alert
(
data
.
msg
);
if
(
data
.
code
==
200
)
{
}
}
alert
(
'修改成功'
);
});
bargain
.
bargaininfoShow
();
//bargain.getList(0);
}
else
{
alert
(
data
.
msg
);
}
},
complete
:
function
(
xhr
,
textStatus
){
bargain
.
isBargaininfoSaveIngFlag
=
false
;
}
});
}
},
},
maidShow
:
function
()
{
maidShow
:
function
()
{
$
(
'#maid_new_btn'
).
hide
();
//默认隐藏新增按钮
$
(
'#maid_new_btn'
).
hide
();
//默认隐藏新增按钮
...
...
public/resource/template/real_time_performance_template_tpl.html
View file @
6940e98b
...
@@ -369,7 +369,7 @@
...
@@ -369,7 +369,7 @@
<
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
>
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
...
@@ -380,9 +380,9 @@
...
@@ -380,9 +380,9 @@
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideStr
(
it
[
item
][
'house_title'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideStr
(
it
[
item
][
'house_title'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'predict_see_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'predict_see_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
!--<
td
class
=
"text-center"
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
/td
>
<
/td>
--
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
...
@@ -404,7 +404,7 @@
...
@@ -404,7 +404,7 @@
<
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
>
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
...
@@ -415,9 +415,9 @@
...
@@ -415,9 +415,9 @@
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideStr
(
it
[
item
][
'house_title'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideStr
(
it
[
item
][
'house_title'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'predict_see_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'predict_see_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
!--<
td
class
=
"text-center"
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
/td
>
<
/td>
--
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment