123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- {extend name="public/layout" /}
- {block name="title"}外呼设置{/block}
- {block name="body"}
- <style>
- html,
- body {
- min-width: 700px !important;
- }
- .layui-fluid {
- display: block;
- box-shadow: 0 0 4px 0 #B6CADE;
- border-radius: 5px;
- margin: 15px;
- background-color: #ffffff;
- }
- .layui-btn-primary {
- color: #249EFB;
- border: 1px solid #249EFB;
- }
- .layui-btn-primary:hover {
- background-color: #E3F7FF;
- color: #249EFB;
- }
- .layui-form-label {
- width: 100px !important;
- }
- .grant-name {
- width: 516px !important;
- }
- input::-webkit-outer-spin-button,
- input::-webkit-inner-spin-button {
- -webkit-appearance: none !important;
- margin: 0;
- }
- </style>
- <body>
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-header">
- <span>好销云</span>
- </div>
- <div class="layui-card-body">
- <form class="layui-form" lay-filter="outcall">
- <div class="layui-form-item">
- <label class="layui-form-label"><i style="color:red;">* </i>外呼开关:</label>
- <div class="layui-input-inline grant-name">
- <input type="checkbox" name="open" lay-skin="switch" lay-text="开启|关闭" lay-filter="open" value="1" {notempty name="$data.config.open"}checked{/notEmpty}>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><i style="color:red;">* </i>线路:</label>
- <div class="layui-input-inline grant-name">
- {present name="$data.config.line_type"}
- <input type="radio" name="line_type" value="1" title="AXB" {if $data.config.line_type == 1}checked{/if} lay-filter="line">
- <input type="radio" name="line_type" value="2" title="回 拨" {if $data.config.line_type == 2}checked{/if} lay-filter="line">
- {else/}
- <input type="radio" name="line_type" value="1" title="AXB" checked lay-filter="line">
- <input type="radio" name="line_type" value="2" title="回 拨" lay-filter="line">
- {/present}
- </div>
- </div>
- <div class="layui-form-item" style="margin-left: 35px;">
- <span style="color:red">注:</span>
- <p style="text-indent:30px;color:rgb(240, 73, 73)">
- 好销云外呼系统,只需开启上面开关即可。需要注意的是,在好销云中开通账号时,需要将账号与密码设置成外呼呼叫的手机号,方能在本系统中进行外呼使用。</p>
- </div>
- <div class="layui-form-item" style="margin-left: 35px;">
- <span style="line-height:40px">设置方式:请登录《<a href="https://www.ixiaoguanjia.cn/admin.html" target="_blank" style="color:#249EFB">i销管家</a>》, 在用户功能中添加坐席,如下图:</span><br>
- <img src="/static/images/ixiaoguanjia.png" alt="" style="width:500px;">
- </div>
- </form>
- </div>
- </div>
- </div>
- </body>
- {/block} {block name="js"}
- <script>
- layui.config({
- base: '__LAYUI__/' //静态资源所在路径
- ,
- urlbase: '/sys'
- }).extend({
- index: 'lib/index' //主入口模块
- }).use(['index', 'form'], function () {
- var $ = layui.$,
- form = layui.form;
- form.on('switch(open)', function(data){
- let formdata = form.val("outcall");
- if(!formdata.open) formdata.open=0;
- $.post('{:url("haoxiaoyun/settingSave")}', formdata, function (res) {
- if (res.code === 0) {
- layer.msg(res.msg, {
- anim: 0
- , time: 2000
- });
- } else {
- layer.msg(res.msg, {
- anim: 6
- , time: 2000
- });
- }
- });
- });
- form.on('radio(line)', function(data){
- let formdata = form.val("outcall");
- $.post('{:url("haoxiaoyun/settingSave")}', formdata, function (res) {
- if (res.code === 0) {
- layer.msg(res.msg, {
- anim: 0
- , time: 2000
- });
- } else {
- layer.msg(res.msg, {
- anim: 6
- , time: 2000
- });
- }
- });
- });
- });
- </script>
- {/block}
|