admin
2025-02-20 f537abe9f3646c739beaf15076246a2f71a347e9
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<html lang="zh-cn">
 
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="referrer" content="never">
<title>爱奇艺专辑更新</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/maincontent.css" rel="stylesheet">
<link href="css/tablestyle.css" rel="stylesheet">
<style>
.form-group {
    margin-bottom: 30px;
}
 
.checkbox input[type=checkbox] {
    top: 6px;
}
 
#container-video {
    display: block;
}
 
#container-web {
    display: none;
}
 
#container-special {
    display: none;
}
 
#dialog-chooselink {
    padding: 20px;
}
 
#dialog-chooselink select {
    width: 100px;
}
 
#dialog-chooselink label {
    display: inline;
}
 
#dialog-chooselink input[type=text] {
    display: inline;
    width: 500px;
}
 
#dialog-chooselink ul {
    display: block;
    list-style: none;
}
 
#dialog-chooselink ul li {
    display: inline;
    list-style: none;
    width: 33%;
    float: left;
}
 
#dialog-chooselink input[type=radio] {
    width: 20px;
    height: 20px;
}
 
#dialog-chooselink .search-result {
    height: 630px;
    overflow-y: scroll;
}
</style>
</head>
 
<body>
    <nav class="navbar navbar-default navbar-fixed-top"></nav>
    <div id="mainbody">
        <div id="sidebar">
            <dl>
            </dl>
        </div>
        <div id="neirong">
            <div class="erjidh">
                <ol class="breadcrumb">
                    <li><a href="tuijian-lanmuneirong.html">爱奇艺</a></li>
                    <li class="active">专辑更新</li>
                </ol>
            </div>
            <form class="form-horizontal"
                style="width: 800px; margin-top: 10px; border-style: solid; border-width: 2px; padding: 10px;">
 
                <h4>爱奇艺专辑更新</h4>
 
                <div class="form-group">
                    <label for="input1" class="changdu1 control-label">播放链接</label>
                    <div class="col-sm-7">
                        <input type="text" class="form-control" id="playurl"
                            placeholder="爱奇艺播放链接">
                    </div>
                </div>
 
                <div class="button0">
                    <div class="button">
                        <button type="button" class="btn btn-primary save">提交</button>
                    </div>
                    <div class="button">
                        <input type="reset" class="btn btn-default" value="重置" />
                    </div>
                </div>
            </form>
 
 
 
            <div id="shortVideoForm"
                style="width: 800px; margin-top: 100px; border-style: solid; border-width: 2px; padding: 10px;">
                <h4>爱奇艺短视频添加到首页推荐</h4>
                <div id="content"></div>
 
                <button class="btn btn-primary" id="add">添加</button>
 
 
                <div class="button0">
                    <div class="button">
                        <button type="button" class="btn btn-primary" id="addShortVideo">提交</button>
                    </div>
 
                </div>
            </div>
 
 
            <div
                style="width: 800px; margin-top: 100px; border-style: solid; border-width: 2px; padding: 10px;">
                <h4>视频更新手动操作</h4>
 
                <div class="button0">
                    <div class="button">
                        <button type="button" class="btn btn-primary" id="iqiyiUpdate">爱奇艺视频更新</button>
                        <button type="button" class="btn btn-primary" id="acfunUpdate">ACFUN视频更新</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
 
    <script src="js/jquery-1.9.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/nav.js"></script>
    <script src="js/common.js"></script>
    <script src="layer/layer.js"></script>
    <script>
        $(function() {
            $(".save").click(
                    function() {
                        if ($("#playurl").val() == ''
                                || $("#playurl").val().length <= 0)
                            return;
 
                        $.post('/BuWan/admin/new/api/video/updateIqiyiAlbum', {
                            url : $("#playurl").val()
                        }, function(data) {
                            if (data.code == 0) {
                                alert("更新成功")
                            }
                        }, 'json');
                    });
 
            //爱奇艺短视频添加到推荐
            $("#add")
                    .click(
                            function() {
                                var html = "";
                                html += "<div class='form-group'>";
                                html += "<label for='input1' class='changdu1 control-label'>播放链接</label>";
                                html += "<div class='col-sm-7'>";
                                html += "<input type='text' class='form-control shorturl' id='playurl'";
                            html+="placeholder='爱奇艺播放链接'>";
                                html += "</div>";
                                html += "<button class='btn btn-default del'>删除</button></div>";
                                $("#content").append(html);
 
                                $(".del").bind("click", function() {
                                    $(this).parent().remove();
                                });
                            });
            $("#addShortVideo").click(function() {
 
                var videoArray = new Array();
                for (var i = 0; i < $(".shorturl").length; i++) {
                    videoArray.push($(".shorturl").eq(i).val());
                }
 
                var index = layer.confirm('是否提交?', {
                    btn : [ '是', '否' ]
                //按钮
                }, function() {
                    layer.close(index);
                    $.post('/BuWan/admin/new/api/video/addIqiyiShortVideo', {
                        urlJson : JSON.stringify(videoArray)
                    }, function(data) {
                        layer.msg(data.msg);
                    }, 'json');
                }, function() {
                });
 
            });
            
            
            $("#iqiyiUpdate").click(function() {
                var index = layer.confirm('是否确定更新?', {
                    btn : [ '是', '否' ]
                //按钮
                }, function() {
                    layer.close(index);
                    $.post('/BuWan/admin/new/api/video/iqiyiUpdate', {
                        urlJson :''
                    }, function(data) {
                        layer.msg(data.msg);
                    }, 'json');
                }, function() {
                });
 
            });
            
            $("#acfunUpdate").click(function() {
                var index = layer.confirm('是否确定更新?', {
                    btn : [ '是', '否' ]
                //按钮
                }, function() {
                    layer.close(index);
                    $.post('/BuWan/admin/new/api/video/acfunUpdate', {
                        urlJson : ''
                    }, function(data) {
                        layer.msg(data.msg);
                    }, 'json');
                }, function() {
                });
 
            });
            
            
        });
    </script>
 
</body>
 
</html>