chengkun
2025-05-12 b6bc92ec11e1e280185ce7682d17589cb45c20f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
        <link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
        <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/custom_layer.js?v={yun:}$config.cachecode{/yun}"></script>
        <title>后台管理</title>
    </head>
 
    <body class="body_ifm">
        <form class="layui-form">
            <div id="subboxdiv" style="width:100%;height:100%;display:none;position:absolute;"></div>
            <div class="infoboxp">
                <div class="tty-tishi_top">
                    <div class="admin_new_tip">
                        <a href="javascript:;" class="admin_new_tip_close"></a>
                        <a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
                        <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>直播功能</div>
                        <div class="admin_new_tip_list_cont">
                            <div class="admin_new_tip_list">功能待开发</div>
                        </div>
                    </div>
                </div>
                <!--
                <div class="clear"></div>
 
                    <div class="tag_box">
                        <div class="">
                            <table width="100%" class="table_form">
                                <tr>
                                    <th width="150">宣讲会提醒时间:</th>
                                    <td>
                                        <input class="tty_input t_w160" type="text" name="sy_xjh_subtime" id="sy_xjh_subtime" value="{yun:}$config.sy_xjh_subtime{/yun}" size="10" />分钟
                                        <span class="admin_web_tip">宣讲会开播前X分钟向预约用户发送微信通知,需结合计划任务处理</span>
                                    </td>
                                </tr>
 
                                 <tr>
                                    <th width="150" class="t_fl">公告内容:</th>
                                    <td><textarea  name="sy_xjh_notice" id="sy_xjh_notice" rows="5" cols='40' maxlength="255" class="layui-textarea t_w480" >{yun:}$config.sy_xjh_notice{/yun}</textarea></td>
                                </tr>
                                <tr class="admin_table_trbg">
                                    <th width="160">App Key:</th>
                                    <td>
                                        <input name="sy_xjhlive_appkey" id="sy_xjhlive_appkey" autocomplete="off" class="tty_input t_w480" type="text" value="{yun:}$config.sy_xjhlive_appkey{/yun}" size="60" maxlength="50" />
                                        <span class="admin_web_tip"><a href="https://www.wanxiangku.com" target="_blank">前往申请直播服务秘钥</a></span>
                                    </td>
                                </tr>
                                <tr class="admin_table_trbg">
                                    <th width="160">App Secret:</th>
                                    <td>
                                        <input name="sy_xjhlive_appsecret" id="sy_xjhlive_appsecret" autocomplete="off" class="tty_input" type="text" value="{yun:}$config.sy_xjhlive_appsecret{/yun}" size="60" maxlength="50" />
                                    </td>
                                </tr>
                                <tr>
                                    <th width="150">服务秘钥有效期:</th>
                                    <td>
                                        <input class="tty_input t_w160" type="text" id="rest_num" value="0" readonly="readonly" size="10" />
                                    </td>
                                </tr>
                                <tr class="">
                                    <th>&nbsp;</th>
                                    <td align="left">
                                        <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}"/>
                                        <input class="tty_sub" id="config" type="button" name="config" value="提交"/>&nbsp;&nbsp;
                                        <input class="tty_cz" type="reset" value="重置" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                -->
                <script>
                    layui.use('form', function() {
                        var lform = layui.form;
                    });
                    $(function() {
                        $("#config").click(function() {
                            loadlayer();
                            $.post("index.php?m=admin_xjhlive_set&c=save", {
                                config: $("#config").val(),
                                sy_xjh_subtime: $("#sy_xjh_subtime").val(),
                                sy_xjh_notice : $("#sy_xjh_notice").val(),
                                sy_xjhlive_appkey: $("#sy_xjhlive_appkey").val(),
                                sy_xjhlive_appsecret : $("#sy_xjhlive_appsecret").val(),
                                pytoken: $("#pytoken").val(),
                                
                            }, function(data, textStatus) {
                                parent.layer.closeAll('loading');
                                config_msg(data);
                            });
                        });
                        var pytoken = $("#pytoken").val();
                        $.post("index.php?m=admin_xjhlive_set&c=get_restnum",{pytoken : pytoken},function(data){
                            if(data){
                                var res = eval('('+data+')');
                                if(res.num){
                                    $("#rest_num").val(res.num);
                                }else{
                                    $("#rest_num").val(0);
                                }
                            }
                        });
                    })
                </script>
            </div>
        </form>
    </body>
 
</html>