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
7e1204d0
Commit
7e1204d0
authored
Aug 03, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统配置增加业务员多少天可以打多少电话
parent
90c6aedd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
Setting.php
application/index/controller/Setting.php
+7
-1
setting.js
public/resource/js/setting.js
+3
-0
setting_template_tpl.html
public/resource/template/setting_template_tpl.html
+5
-0
No files found.
application/index/controller/Setting.php
View file @
7e1204d0
...
...
@@ -40,6 +40,8 @@ class Setting extends Basic
$data
[
'day_num'
]
=
(
int
)
$this
->
params
[
'day_num'
];
$data
[
'down_time'
]
=
$this
->
params
[
'down_time'
];
$data
[
'landlord_phone_day'
]
=
(
int
)
$this
->
params
[
'landlord_phone_day'
];
$data
[
'agent_call_day'
]
=
(
int
)
$this
->
params
[
'agent_call_day'
];
$data
[
'agent_call_number'
]
=
(
int
)
$this
->
params
[
'agent_call_number'
];
$config_data
=
[];
$config_data
[
0
][
'id'
]
=
1
;
...
...
@@ -54,7 +56,9 @@ class Setting extends Basic
$config_data
[
1
][
'rule'
]
=
json_encode
([
'is_privacy'
=>
$data
[
'is_privacy'
],
'day_num'
=>
$data
[
'day_num'
],
'landlord_phone_day'
=>
$data
[
'landlord_phone_day'
]
'landlord_phone_day'
=>
$data
[
'landlord_phone_day'
],
'agent_call_day'
=>
$data
[
'agent_call_day'
],
'agent_call_number'
=>
$data
[
'agent_call_number'
]
]);
$config_data
[
1
][
'agent_id'
]
=
$this
->
userId
;
...
...
@@ -83,6 +87,8 @@ class Setting extends Basic
$redis
->
set
(
's_landlord_phone_day'
,
$data
[
'landlord_phone_day'
]);
//房东隐号绑定有效期(天数):
$redis
->
set
(
's_new_client_hours'
,
$new_client_hours
);
//新客户保护期有效小时数
$redis
->
set
(
's_lookNum'
,
$agent_shop_num
);
//业务员最多可查看的商铺数量
$redis
->
set
(
's_agent_call_day'
,
$data
[
'agent_call_day'
]);
//业务员多少天可以打多少电话
$redis
->
set
(
's_agent_call_number'
,
$data
[
'agent_call_number'
]);
//业务员多少天可以打多少电话
}
return
$this
->
response
(
200
,
''
,
$data
);
...
...
public/resource/js/setting.js
View file @
7e1204d0
...
...
@@ -41,6 +41,9 @@ define (['doT', 'text!temp/setting_template_tpl.html', 'css!style/home.css'], fu
param
.
new_client_hours
=
$
(
"input[name='new_client_hours']"
).
val
();
param
.
agent_shop_num
=
$
(
"input[name='agent_shop_num']"
).
val
();
param
.
landlord_phone_day
=
$
(
"input[name='landlord_phone_day']"
).
val
();
param
.
agent_call_day
=
$
(
"input[name='agent_call_day']"
).
val
();
param
.
agent_call_number
=
$
(
"input[name='agent_call_number']"
).
val
();
$
.
ajax
({
url
:
'/admin.php/index/getSetting'
,
type
:
'POST'
,
...
...
public/resource/template/setting_template_tpl.html
View file @
7e1204d0
...
...
@@ -42,5 +42,10 @@
<
div
class
=
"col-sm-8"
>
<
input
type
=
"number"
class
=
"form-control btn5"
name
=
"agent_shop_num"
placeholder
=
"业务员最多可查看的商铺数量"
value
=
"[%= it['agent_shop_num'] %]"
>
<
/div
>
<
label
class
=
"col-sm-4 control-label"
style
=
"text-align: right"
>
业务员拨打电话限制:
<
/label
>
<
div
class
=
"col-sm-8"
>
<
input
type
=
"number"
class
=
"form-control btn5"
name
=
"agent_call_day"
placeholder
=
"天数"
value
=
"[%= it['agent_call_day'] %]"
>
<
input
type
=
"number"
class
=
"form-control btn5"
name
=
"agent_call_number"
placeholder
=
"次数"
value
=
"[%= it['agent_call_number'] %]"
>
<
/div
>
<
/div
>
</script>
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