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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!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>
    <script src="js/jquery.insert.js?v={yun:}$config.cachecode{/yun}"></script>
    <script language="javascript">
        $(function () {
            $(".status").click(function () {
                $(".seolist").hide();
                var seomodel = $("#seomodel").val();
                $(".list_public").show();
                $(".list_" + seomodel).show();
                $("input[name=pid]").val($(this).attr("pid"));
                $.layer({
                    type: 1,
                    title: '可选择参数',
                    offset: ['80px', ''],
                    closeBtn: [0, true],
                    border: [10, 0.3, '#000', true],
                    area: ['550px', '320px'],
                    page: {
                        dom: "#infobox"
                    }
                });
            });
        });
 
        function clickseoSureBtn() {
            var codewebarr = "";
            $("input[name=seocheckbox]:checked").each(function () { //由于复选框一般选中的是多个,所以可以循环输出
                if (codewebarr == "") {
                    codewebarr = "{" + $(this).val() + "}";
                } else {
                    codewebarr = codewebarr + " - {" + $(this).val() + "}";
                }
            });
            $("input[name='seocheckbox']").attr('checked', false);
            var pid = $("input[name=pid]").val();
            $('#' + pid).setCaret();
            $('#' + pid).insertAtCaret(codewebarr);
            layer.closeAll();
        }
 
        function change_list(id) {
            $(".seolist").hide();
            $("#list_" + id).show();
        }
    </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">
 
<div id="infobox" style="display:none; padding:0px 20px;">
    <div class="admin_Prompt" style="width:500px; margin:10px 10px;">
        <div class="admin_Prompt_span"> 提示:下面的标识符请根据页面对应添加,否则无法正常显示!</div>
    </div>
    <form action="index.php" target="supportiframe" method="get" id="formstatus">
        <input name="pid" value="0" type="hidden">
        <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
        <div class="admin_seo_tck_box" style="overflow-x:hidden">
            {yun:}assign var="sort" value=1{/yun}
            {yun:}foreach item=rows key=key from=$arr_data.seoconfig{/yun}
            <div style="display:none;" class="seolist list_{yun:}$key{/yun}">
                {yun:}foreach item=row key=k from=$rows{/yun}
                <div class="admin_seo_tck_box_list" style="padding:5px 0;">
                    <input type="checkbox" name="seocheckbox" value="{yun:}$k{/yun}" id="{yun:}$k{/yun}" class="admin_seo_tck_box_check">
                    <span class="admin_seo_tck_box_l"><label for="{yun:}$k{/yun}">{yun:}$row{/yun}</span>代码:{{yun:}$k{/yun}}</label>
                </div>
                {yun:}/foreach{/yun}
            </div>
            {yun:}assign var="sort" value=$sort+1{/yun}
            {yun:}/foreach{/yun}
        </div>
        <p style="text-align:center; clear:both;">
            <input class="submit_btn" type="button" value="确认" onClick="clickseoSureBtn();">&nbsp;&nbsp;
            <input class="cancel_btn" type="button" value="取消" onclick="layer.closeAll();">
        </p>
    </form>
</div>
 
<div class="infoboxp">
    <div class="tty-tishi_top">
        <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
        <form name="myform" target="supportiframe" action="index.php?m=admin_app_set&c=saveSeo" encType="multipart/form-data"  method="post" class="layui-form" autocomplete="off">
            <table width="100%" class="table_form" style="background:#fff;">
                <tr>
                    <th colspan="2" class="admin_bold_box">
                        <div class="admin_bold">小程序SEO</div>
                        <a href="javascript:history.back();" class="admin_new_cz_tj">返回</a>
                    </th>
                </tr>
                <tr>
                    <th>页面名称:</th>
                    <td><input class="tty_input t_w480" type="text" name="name" size="40" value="{yun:}$info.name{/yun}"/></td>
                </tr>
                <tr class="admin_table_trbg">
                    <th>所属类型:</th>
                    <td>
                        <div class="layui-input-inline t_w480">
                            <select name="seomodel" lay-filter="seomodel" id="seomodel">
                                <option value="">请选择</option>
                                {yun:}foreach item=row key=key from=$arr_data.seomodel{/yun}
                                <option value="{yun:}$key{/yun}" {yun:}if $key eq $info.seomodel{/yun} selected {yun:}/if{/yun}>{yun:}$row{/yun}</option>
                                {yun:}/foreach{/yun}
                            </select>
                        </div>
                    </td>
                </tr>
 
                <tr>
                    <th class="t_fr">小程序分享图:</th>
                    <td>
                        <button type="button" class="yun_bth_pic noupload" lay-data="{imgid: 'imgicon',parentid:'imgparent'}">上传图片</button>
                        <input type="hidden" name="share_pic" value="{yun:}$info.share_pic{/yun}"/>
                        <input type="hidden" id="laynoupload" value="1" />
                    </td>
                </tr>
                <tr class="{yun:}if $info.share_pic{/yun} {yun:}else{/yun}none{yun:}/if{/yun}" id="imgparent" style="margin-top: 24px;">
                    <th width="200" class="t_fl">图片:</th>
                    <td><img id="imgicon" src="{yun:}$info.share_pic_n{/yun}" width="100" height="80"></td>
                </tr>
 
                <tr class="admin_table_trbg">
                    <th>SEO标识符:</th>
                    <td><input class="tty_input t_w480" type="text" name="ident" size="40" value="{yun:}$info.ident{/yun}" id='ident'/></td>
                </tr>
                <tr class="admin_table_trbg">
                    <th class="t_fr">标题(title):</th>
                    <td>
                        <div class="layui-input-block" style="width: 600px;">
                            <textarea class="layui-textarea t_w480" name="title" id="title">{yun:}$info.title{/yun}</textarea>
                            <div style="float:right;margin-top: -35px;">
                                <input class="input-text status" type="button" name="select" pid="title" style="width:80px" value="选择参数"/>
                            </div>
                        </div>
                        <span class="admin_web_tip">一般不超过20个字符</span>
                    </td>
                </tr>
                <tr>
                    <th class="t_fr">网站关键字(keywords):</th>
                    <td>
                        <div class="layui-input-block" style="width: 600px;">
                            <textarea class="layui-textarea t_w480" name="keywords" id="keywords">{yun:}$info.keywords{/yun}</textarea>
                            <div style="float:right;margin-top: -35px;">
                                <input class="input-text status" type="button" name="select" pid="keywords" style="width:80px" value="选择参数" />
                            </div>
                        </div>
                        <span class="admin_web_tip">一般不超过100个字符(百度小程序使用)</span>
                        
                    </td>
                </tr>
                <tr class="admin_table_trbg">
                    <th class="t_fr">网站描述(description):</th>
                    <td>
                        <div class="layui-input-block" style="width: 600px;">
                            <textarea class="layui-textarea t_w480" name="description" id="description">{yun:}$info.description{/yun}</textarea>
                            <div style="float:right;margin-top: -35px;">
                                <input class="input-text status" type="button" name="select" pid="description" style="width:80px" value="选择参数" />
                            </div>
                        </div>
                        <span class="admin_web_tip">一般不超过200个字符(百度小程序使用)</span>
 
                    </td>
 
                </tr>
                <tr>
                    <th width="200">&nbsp;</th>
                    <td align="left">
                        <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
 
                        {yun:}if is_array($info){/yun}
                            <input type="hidden" name="id" size="40" value="{yun:}$info.id{/yun}"/>
                            <input class="tty_sub" type="submit" name="update" value="&nbsp;更 新&nbsp;"/>&nbsp;&nbsp;&nbsp;
                        {yun:}else{/yun}
                            <input class="tty_sub" type="submit" name="add" value="&nbsp;添 加&nbsp;"/>&nbsp;&nbsp;&nbsp;
                        {yun:}/if{/yun}
 
                        <input class="tty_cz" type="reset" name="reset" value="&nbsp;重 置 &nbsp;"/>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    layui.use(['layer', 'form'], function () {
        const layer = layui.layer,
            form = layui.form,
            $ = layui.$;
    });
</script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui.upload.js?v={yun:}$config.cachecode{/yun}" type='text/javascript'></script>
</body>
</html>