Commit 7e1204d0 authored by hujun's avatar hujun

系统配置增加业务员多少天可以打多少电话

parent 90c6aedd
......@@ -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);
......
......@@ -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',
......
......@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment