admin
2021-02-06 57117c5270516cdf6e3d59f95fd46cea36c098b4
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
"use strict";
var startInfoPlayVideo = function() {
    var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(actid, code) {
        var sadata, userName, token, cookiedata, result, ppToken, PPKey, PPName, UDI, udi, udiarr, UDR;
        return regeneratorRuntime.wrap(function(_context) {
            for (;;) switch (_context.prev = _context.next) {
                case 0:
                    return _context.next = 2, shadowAccount(actid, code);
                case 2:
                    if (sadata = _context.sent, console.info("shadowAccount:", sadata), "0" == sadata.errorcode) {
                        _context.next = 8;
                        break
                    }
                    playVideo(), _context.next = 19;
                    break;
                case 8:
                    if (userName = sadata.userName, token = sadata.token, VIDEO_INFO.userName = userName, VIDEO_INFO.token =
                        token, $.cookie("PPName", userName, {
                            expires: 7,
                            path: "/",
                            domain: "pptv.com",
                            raw: 1
                        }), $.cookie("ppToken", token, {
                            expires: 7,
                            path: "/",
                            domain: "pptv.com",
                            raw: 1
                        }), userName && token) return _context.next = 16, cookiesQuery(sadata.userName, sadata.token);
                    _context.next = 19;
                    break;
                case 16:
                    cookiedata = _context.sent, "0" == cookiedata.errorCode && (result = cookiedata.result, ppToken = result.ppToken,
                        PPKey = result.PPKey, PPName = result.PPName, UDI = result.UDI, udi = decodeURIComponent(UDI), udiarr =
                        udi.split("$"), (UDR = udiarr[udiarr.length - 1]) && (UDR = (UDR = UDR.replace(/\'/g, "")).replace(
                            /(\w+)(\:)(\w+)/g, '"$1":"$3"')), VIDEO_INFO.ppToken = ppToken, VIDEO_INFO.PPKey = PPKey, VIDEO_INFO.PPName =
                        PPName, VIDEO_INFO.UDI = UDI, VIDEO_INFO.UDR = UDR, $.cookie("PPKey", PPKey, {
                            expires: 7,
                            path: "/",
                            domain: "pptv.com",
                            raw: 1
                        }), $.cookie("UDI", UDI, {
                            expires: 7,
                            path: "/",
                            domain: "pptv.com",
                            raw: 1
                        }), $.cookie("UDR", UDR, {
                            expires: 7,
                            path: "/",
                            domain: "pptv.com",
                            raw: 1
                        }), onNotification(VIDEO_INFO)), playVideo();
                case 19:
                case "end":
                    return _context.stop()
            }
        }, _callee, this)
    }));
    return function(_x3, _x4) {
        return _ref.apply(this, arguments)
    }
}();
 
function _toConsumableArray(arr) {
    if (Array.isArray(arr)) {
        for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
        return arr2
    }
    return Array.from(arr)
}
 
function _asyncToGenerator(fn) {
    return function() {
        var gen = fn.apply(this, arguments);
        return new Promise(function(resolve, reject) {
            return function step(key, arg) {
                try {
                    var info = gen[key](arg),
                        value = info.value
                } catch (error) {
                    return void reject(error)
                }
                if (!info.done) return Promise.resolve(value).then(function(value) {
                    step("next", value)
                }, function(err) {
                    step("throw", err)
                });
                resolve(value)
            }("next")
        })
    }
}
 
function ModThridMovTemp(index, data) {
    try {
        var tempcont = data.tempcont,
            statistics = tempcont.statistics,
            height = tempcont.height,
            newdata = JSON.stringify(Object.assign({}, {
                index: index,
                statistics: statistics,
                height: height
            })),
            html = '<div class="layout layout' + index + '" index="' + index + '" id="' + statistics + '" sap-modid="' +
            statistics + '" newdata="' + (newdata = newdata.replace(/\"/gi, "'")) + '" style="height:56.25vw;"></div>';
        $("#main-laycontent").append(html);
        var ppi = void 0 === $.cookie("ppi") ? "" : $.cookie("ppi"),
            _tempcont$paylink = tempcont.paylink,
            paylink = void 0 === _tempcont$paylink ? "" : _tempcont$paylink,
            channel = tempcont.channel,
            _tempcont$videoType = tempcont.videoType,
            videoType = void 0 === _tempcont$videoType ? "vod" : _tempcont$videoType,
            pid = tempcont.pid,
            autoplay = tempcont.autoplay;
        Object.assign(VIDEO_INFO, {
            autoplay: 1 == autoplay,
            channel: channel,
            paylink: paylink
        }), $.cookie("sctx", "o=" + channel, {
            expires: 7,
            path: "/",
            domain: "pptv.com",
            raw: 1
        }), ppi || $.getJSON("//ppi.api.pptv.com/ppi.php?format=jsonp&cb=?", function(data) {
            $.cookie("ppi", String(data.ppi), {
                expires: 1,
                path: "/",
                domain: "pptv.com",
                raw: 1
            })
        }), delppUserInfo(), window.H5Player = new ppliveplayer.H5Player({
            ctx: "suningDDP=1&autoplay=" + autoplay + "&o=" + channel + "&ppi=" + ppi,
            videoType: videoType,
            pid: pid
        }, "pptv_playpage_box")
    } catch (error) {
        checkActivity("ModThridMovTemp(error):", error)
    }
}
 
function onNotification() {
    var opt = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};
    H5Player && H5Player.setCallback("userinfo", {
        header: {
            type: "userinfo"
        },
        body: {
            data: {
                PPKey: opt.PPKey,
                PPName: opt.userName,
                ppToken: opt.ppToken,
                UDI: opt.UDI,
                UDR: opt.UDR
            }
        }
    })
}
 
function playVideo() {
    var opt = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : VIDEO_INFO;
    H5Player && H5Player.playVideo({
        cid: opt.cid,
        autoPlay: opt.autoplay
    })
}
 
function tryAgainPlayVideo() {
    $("#xl_masks").hide(), delppUserInfo(), ppGetUserInfo()
}
 
function delppUserInfo() {
    ["PPName", "ppToken", "PPKey", "UDI", "UDR", "userName"].forEach(function(item) {
        $.removeCookie(item, {
            path: "/",
            domain: "pptv.com"
        }), VIDEO_INFO[item] = ""
    })
}
 
function shadowAccount(actid, code) {
    return new Promise(function(resolve, rebject) {
        var u = navigator.userAgent,
            type = "android"; - 1 < u.indexOf("Android") || -1 < u.indexOf("Adr") || (type = "ios"), $.getJSON(
            "//acvip.api.pptv.com/api/thirdcoop/joinlogin?actId=" + actid + "&thirdId=third&code=" + code + "&type=" + type +
            "&format=jsonp&cb=?",
            function(data) {
                resolve(data)
            })
    })
}
 
function cookiesQuery(username, token) {
    return new Promise(function(resolve, rebject) {
        $.getJSON("//api.passport.pptv.com/v3/cookies/query.do?username=" + username + "&token=" + token + "&random=" + (
            new Date).getTime() + "&format=jsonp&cb=?", function(data) {
            resolve(data)
        })
    })
}
 
function onError(data) {
    showDialog(data.data.errorcode || data.data.code)
}
 
function showDialog(type) {
    var $masks = $("#xl_masks");
    switch (String(type)) {
        case "3006":
            2 == VIDEO_INFO.ptype ? $masks.show().html(
                '<div class="xl_dialog"><div class="warp"><div class="content"><p class="tip1">鏈墖涓轰細鍛樹笓灞炲奖鐗�</p></div><div class="btns"><a href="javascript:;" class="btn_ktvip xl_abtn_ktvip" onclick="show_ktvip()" sa-data="{\'eleid\':\'pay2watch\'}">寮€閫氫細鍛�</a></div></div></div>'
            ) : $masks.show().html(
                '<div class="xl_dialog"><div class="warp"><div class="content"><p class="tip1">璇曠湅缁撴潫锛屽紑閫氫細鍛樺厤璐硅鐪�</p></div><div class="btns"><a href="javascript:;" class="left xl_abtn_agin" onclick="show_playagin()" sa-data="{\'eleid\':\'go2restart\'}">閲嶆柊璇曠湅</a><a href="javascript:;" class="right xl_abtn_ktvip" onclick="show_ktvip()" sa-data="{\'eleid\':\'pay2watch\'}">寮€閫氫細鍛�</a></div></div></div>'
            );
            break;
        case "89113":
        case "89114":
            $masks.show().html(
                '<div class="xl_dialog"><div class="warp"><div class="content"><p class="tip2">寰堟姳姝夛紝鐢变簬鍦板煙闄愬埗鏃犳硶鎾斁</p><p class="tip3">璇疯鐪嬪叾瀹冭棰�</p></div></div></div>'
            );
            break;
        case "10001":
            $masks.show().html(
                '<div class="xl_dialog"><div class="warp"><div class="content"><p class="tip1">鐧诲綍瑙傜湅瀹屾暣鐗堣棰�</p></div><div class="btns"><a href="javascript:;" class="xl_abtn_login alogin" onclick="show_login()" sa-data="{\'eleid\':\'go2login\'}">绔嬪嵆鐧诲綍</a></div></div></div>'
            );
            break;
        case "10002":
            $masks.show().html(
                '<div class="xl_dialog"><div class="warp"><div class="content"><p class="tip2">寰堟姳姝夛紝鐢变簬鐗堟潈鍘熷洜</p><p class="tip3">璇蜂娇鐢≒P瀹㈡埛绔垨APP瑙傜湅</p></div></div></div>'
            );
            break;
        default:
            $masks.show().html(
                '<div class="xl_dialog"><div class="warp"><div class="content"><p class="tip2">寰堟姳姝夛紝璇ヨ妭鐩俊鎭姞杞藉紓甯革紝鎮ㄥ彲浠ュ皾璇�</p><p class="tip3">璇峰埛鏂伴〉闈㈤噸璇�' +
                type + "</p></div></div></div>")
    }
}
window.VIDEO_INFO = {
    isLogin: !1,
    userID: "",
    code: "",
    cid: 0,
    vid: 0,
    pready: !1
};
var cHeight = window.innerHeight || document.body.clientHeight,
    cWidth = window.innerWidth || document.body.clientWidth,
    diaHeight = Number(cHeight - toFix(cWidth / 16 * 9)),
    diaConHeightAbout = Number(diaHeight - toFix(cWidth / 100 * 23)),
    diaConHeightList = Number(diaHeight - toFix(cWidth / 100 * 10));
 
function ModEpisodesTemp(index, data) {
    try {
        var tempcont = data.tempcont,
            height = (tempcont.maximg, tempcont.height),
            statistics = tempcont.statistics,
            _tempcont$maximg_h = (tempcont.bgcolor, tempcont.maximg_h),
            maximg_h = void 0 === _tempcont$maximg_h ? 10 : _tempcont$maximg_h;
        height = Number(toFix(height / _ratio)), maximg_h = Number(toFix(maximg_h / _ratio));
        var newdata = JSON.stringify(Object.assign({}, {
            index: index,
            statistics: statistics,
            height: height
        }));
        newdata = newdata.replace(/\"/gi, "'");
        var paramsBody = encodeURIComponent('{"seriesCodes":"' + _cid + '"}'),
            html = '<div class="layout layout' + index + ' episodes" id="' + statistics + '" index="' + index + '" sap-modid="' +
            statistics + '"></div>';
        $("#main-laycontent").append(html);
        var url = "//acvip.api.pptv.com/api/cooperation/webDetail?paramsBody=" + paramsBody + "&pageId=" + pageId +
            "&format=jsonp&cb=?";
        $.getJSON(url, function(result) {
            var errorcode = result.errorcode,
                data = result.data;
            if ("0" === errorcode) {
                var contentInfos = data.body.contentInfos,
                    len = contentInfos.length;
                if (0 == len) return !1;
                var newInfos = [];
                len = (contentInfos = contentInfos.filter(function(item) {
                    return 0 == item.series_ContentType
                })).length, newInfos = contentInfos.map(function(item) {
                    return item.series_programCode
                });
                var frees = contentInfos.map(function(item) {
                        return item.series_free
                    }),
                    seriesNum = contentInfos.map(function(item, index) {
                        return ++index
                    }),
                    curIndex = newInfos.indexOf(_vid); - 1 == curIndex && (curIndex = 0);
                var curpage = Math.floor(curIndex / 10),
                    seriesArr = chunk(seriesNum, 10),
                    setSeries = Object.assign({}, {
                        series_programCodes: newInfos,
                        series_frees: frees,
                        series_seriesNums: seriesNum,
                        seriesArr: seriesArr
                    });
                sessionStorage.setItem("series_programCodes", JSON.stringify(setSeries));
                for (var _contentInfos$ = contentInfos[0], actor = _contentInfos$.actor, free = _contentInfos$.free, series_free =
                        _contentInfos$.series_free, score = _contentInfos$.score, seriesCount = _contentInfos$.seriesCount, description =
                        _contentInfos$.description, name = (_contentInfos$.cover, _contentInfos$.name), releaseYear = _contentInfos$.releaseYear,
                        country = _contentInfos$.country, currentNum = _contentInfos$.currentNum, workState = _contentInfos$.workState,
                        programType2 = _contentInfos$.programType2, about = Object.assign({}, {
                            actor: actor,
                            free: free,
                            series_free: series_free,
                            score: score,
                            seriesCount: seriesCount,
                            description: description,
                            name: name,
                            releaseYear: releaseYear,
                            country: country,
                            currentNum: currentNum,
                            workState: workState,
                            programType2: programType2
                        }), lihtml = episodes_diversity(curpage), pages = Math.ceil(len / 10), muluhtml = "", i = 0; i < pages; i++) {
                    var _curSeriesArr = seriesArr[i];
                    muluhtml += '<li class="' + (i == curpage ? "current item" : "item") + '"><a href="javascript:;" cpage="' +
                        curpage + '" inx="' + i + '"  class="drama-series" onclick="dramaseries(this)">' + (1 < _curSeriesArr.length ?
                            _curSeriesArr[0] + "-" + _curSeriesArr[_curSeriesArr.length - 1] : "" + _curSeriesArr[0]) + "</a><i></i></li>"
                }
                0 == workState && "";
                var conthtml = "";
                0 < len && 2 == GetRequest().programtype && (conthtml =
                    '<div class="mod-box" style="margin-top:2.67vw;padding:3vw 2.67vw 2.67vw;background:#ffffff">\n                            <div class="mod-box-item" style="overflow:hidden;height:6vw;box-sizing: border-box;line-height:6vw;">\n                                <h3 class="c-title-des" style="display:inline-block;font-size:4vw;color:#7a7a7a">閫夐泦</h3>\n                                <a onclick="episodesChoose(this)" class="mod-box-amore" style="float:right;color:#7a7a7a;display: inline-block;height: 100%;">\n                                    <span class="c-des" style="display: inline-block;height: 100%;">鏇村\n                                    <i class="c-glyphicon c-glyphicon-arrowRight" style="display:block;float:right;height:100%;width:4vw;position:relative;">\n                                        <svg class="icon" aria-hidden="true" style="width:4vw;height:4vw;position:absolute;top:0.8vw;right:0vw;">\n                                                <use xlink:href="#icon-dibudaohanglan-"></use>\n                                            </svg>\n                                    </i></span>\n                                </a>       \n                            </div> \n                            <div class="mox-box-data">\n                                <div class="list-mulu"><ul class="muluUI">' +
                    muluhtml + '</ul></div>\n                                <div class="list-desp"><ul class="despUI">' + lihtml +
                    "</ul></div>\n                            </div>  \n                        </div> ");
                var _html =
                    '\n                    <div class="videoInfoFold" style="box-sizing: border-box;padding:4.8vw 2.67vw 2.67vw;background:#ffffff;">\n                        <div class="videoInfoFold-title" style="line-height:8vw;height:8vw;overflow:hidden;">\n                            <div class="epiname" style="font-size:4.8vw;color:#363636;width:76%;display:inline-block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">' +
                    name + '</div>\n                            <a class="openDesc c-more-link" desp=\'' + JSON.stringify(about) +
                    '\' style="float:right;width:auto;position:relative;margin-right:3vw;color:#8e8e8e" onclick="episodesAbout(this)">\n                                <span>绠€浠�</span>\n                                <i class="c-glyphicon c-glyphicon-arrowRight" style="position:absolute;top:0.5vw;right:-3.8vw;">\n                                    <svg class="icon" aria-hidden="true" style="width:4vw;height:4vw;">\n                                        <use xlink:href="#icon-dibudaohanglan-"></use>\n                                    </svg>\n                                </i>    \n                            </a>\n                        </div>\n                        <div class="videoInfoFold-data" style="padding-top:2.67vw;">\n                            <span class="data-item" style="color:#898989;font-size:12px;">鍏�' +
                    seriesCount + "闆� 路 " + programType2 + " 路 " + score + "鍒� 路 " + releaseYear + " 路 " + country +
                    "</span> \n                        </div>  \n                    </div>\n                    " + conthtml +
                    "         \n                ";
                $("#" + statistics).append(_html)
            }
        })
    } catch (error) {
        checkActivity("ModEpisodesTemp(error):", error)
    }
}
 
function chunk(array, size) {
    var length = array.length;
    if (!length || !size || size < 1) return [];
    for (var index = 0, resIndex = 0, result = new Array(Math.ceil(length / size)); index < length;) result[resIndex++] =
        array.slice(index, index += size);
    return result
}
 
function episodes_diversity(curpage) {
    var series = sessionStorage.getItem("series_programCodes"),
        _JSON$parse = JSON.parse(series),
        series_programCodes = _JSON$parse.series_programCodes,
        series_frees = _JSON$parse.series_frees,
        series_seriesNums = _JSON$parse.series_seriesNums,
        lihtml = (_JSON$parse.seriesArr, ""),
        ihtml = "",
        seriesCodes = chunk(series_programCodes, 10),
        seriesFrees = chunk(series_frees, 10),
        seriesNums = chunk(series_seriesNums, 10),
        numArr = seriesNums[curpage],
        showClass = !1;
    return numArr.forEach(function(item, index) {
        1 == seriesFrees[curpage][index] && (ihtml = '<i class="icon_vip"></i>'), showClass = _vid ? seriesCodes[curpage][
                index
            ] == _vid : 0 == curpage && 0 == index, lihtml += '<li class="' + (showClass ? "current item" : "item") +
            '">\n            <a href="javascript:;" onclick="episodesplay(this)" programCode="' + seriesCodes[curpage][index] +
            '">' + seriesNums[curpage][index] + ihtml + "</a>\n        </li>"
    }), lihtml
}
 
function episodesAbout(that) {
    $("body").css({
        "overflow-y": "hidden"
    });
    var desp = $(that).attr("desp") || !1,
        _desp = desp = desp && JSON.parse(desp),
        actor = _desp.actor,
        score = (_desp.free, _desp.series_free, _desp.score),
        description = (_desp.seriesCount, _desp.description),
        name = _desp.name,
        releaseYear = _desp.releaseYear,
        programType2 = (_desp.country, _desp.currentNum, _desp.workState, _desp.programType2),
        html = '\n        <div class="epabout" style="position:fixed;width:100%;left:0;top:56.25vw;height:' + diaHeight +
        'px;z-index:1000;overflow:hidden;background:#ffffff;font-size:3.2vw;">\n            <div class="epabout-content" style="height:100%;box-sizing: border-box;padding:4.8vw 2.667vw 2.667vw;overflow:hidden;color:#969696">\n                <div class="about-title" style="color:#363636;font-size:4.8vw;margin-bottom:2vw;height:8vw;line-height:8vw;width: 76%;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;">' +
        name + '</div>\n                <div class="about-desp line_3" style="margin-bottom:2vw;"><span>' + releaseYear +
        " 路 </span><span>" + score + " 路 </span><span>" + programType2 +
        '</span></div>\n                <div class="star line_3" style="margin-bottom:2vw;">' + actor +
        '</div>\n                <div class="about-content" style="line-height:5.4vw;height:' + diaConHeightAbout +
        'px;">\n                    <div style="overflow:auto;height:' + diaConHeightAbout +
        'px;padding-bottom:20px;">\n                        ' + description +
        '\n                    </div>\n                </div>\n            </div>\n            <a onclick="_close(\'.epabout\')" href="javascript:;" class="close xl_close" style="position:absolute;top:4vw;right:2vw;width:8vw;height:8vw;display:block;color:#9a9a9a">\n                <svg class="icon" aria-hidden="true" style="width:8vw;height:8vw;">\n                    <use xlink:href="#icon-close"></use>\n                </svg>\n            </a>  \n        </div>\n    ';
    $("body").append(html)
}
 
function dramaseries(that) {
    if ($("body").css({
            "overflow-y": "hidden"
        }), !$(that).parent().hasClass("current")) {
        $(that).parent().addClass("current").siblings().removeClass("current");
        var lihtml = episodes_diversity($(that).attr("inx"));
        $("#main-laycontent .list-desp .despUI").html(lihtml)
    }
}
 
function episodesplay(that) {
    var code = $(that).attr("programcode");
    $(that).parent().addClass("current").siblings().removeClass("current"), location.href = "" + location.origin +
        location.pathname + "?cid=" + _cid + "&vid=" + code + "&programtype=" + _ptype
}
 
function episodesChoose(that) {
    $("body").css({
        "overflow-y": "hidden"
    });
    var series = sessionStorage.getItem("series_programCodes"),
        _JSON$parse2 = JSON.parse(series),
        series_programCodes = _JSON$parse2.series_programCodes,
        series_frees = _JSON$parse2.series_frees,
        series_seriesNums = _JSON$parse2.series_seriesNums,
        len = series_programCodes.length,
        arr = series_programCodes,
        frees = series_frees,
        curIndex = arr.indexOf(_vid);
    curIndex = -1 < curIndex ? curIndex : 0;
    for (var lihtml = "", ihtml = "", i = 0; i < len && 0 < len; i++) 1 == frees[i] && (ihtml = '<i class="icon_vip"></i>'),
        lihtml += '<li class="' + (i == curIndex ? "current item" : "item") +
        '"><a href="javascript:;" onclick="episodesplay(this)" programCode="' + arr[i] + '">' + series_seriesNums[i] + ihtml +
        "</a></li>";
    var html = '\n        <div class="epabout" style="position:fixed;width:100%;left:0;top:56.25vw;height:' + diaHeight +
        'px;z-index:1000;overflow:hidden;background:#ffffff;font-size:3.2vw;">\n            <div class="epabout-content" style="height:100%;box-sizing: border-box;padding:4.8vw 2.667vw 2.667vw;overflow:hidden;color:#969696">\n                <div class="about-title" style="color:#363636;font-size:4vw;margin-bottom:2vw;">閫夐泦</div>\n                <div class="about-content" style="line-height:5.4vw;height:100%">\n                    <div style="height:' +
        diaConHeightList + 'px;overflow:auto;">\n                        <ul class="despUI" style="padding-bottom:20px;">' +
        lihtml +
        '</ul>\n                    </div>\n                </div>\n            </div>\n            <a onclick="_close(\'.epabout\')" href="javascript:;" class="close xl_close" style="position:absolute;top:4vw;right:2vw;width:8vw;height:8vw;display:block;color:#9a9a9a">\n                <svg class="icon" aria-hidden="true" style="width:8vw;height:8vw;">\n                    <use xlink:href="#icon-close"></use>\n                </svg>\n            </a>  \n        </div>\n    ';
    $("body").append(html)
}
 
function _close(id) {
    $("body").css({
        "overflow-y": "auto"
    }), $(id).hide()
}
 
function ModSimilarityTemp(index, data) {
    try {
        var tempcont = data.tempcont,
            statistics = tempcont.statistics,
            _tempcont$bgcolor = tempcont.bgcolor,
            bgcolor = void 0 === _tempcont$bgcolor ? "#ffffff" : _tempcont$bgcolor,
            martop = tempcont.martop,
            marbom = tempcont.marbom,
            _tempcont$number = tempcont.number,
            number = void 0 === _tempcont$number ? "6" : _tempcont$number,
            _tempcont$rankType = tempcont.rankType,
            rankType = void 0 === _tempcont$rankType ? "climbing" : _tempcont$rankType,
            _tempcont$appplt = tempcont.appplt,
            appplt = void 0 === _tempcont$appplt ? "wap" : _tempcont$appplt,
            _tempcont$offLineIds = tempcont.offLineIds,
            offLineIds = void 0 === _tempcont$offLineIds ? [] : _tempcont$offLineIds;
        martop = Number(toFix(martop / _ratio)) || 0, marbom = Number(toFix(marbom / _ratio)) || 0;
        var newdata = JSON.stringify(Object.assign({}, {
            index: index,
            statistics: statistics,
            bgcolor: bgcolor,
            martop: martop,
            marbom: marbom,
            number: number,
            rankType: rankType,
            appplt: appplt,
            offLineIds: offLineIds
        }));
        newdata = newdata.replace(/\"/gi, "'");
        var html = '\n            <div class="layout layout' + index + " mod-similarity " + statistics + '" id="' +
            statistics + '" index="' + index + '" sap-modid="' + statistics +
            '" style="background-color:#ffffff;margin-top:2.67vw;margin-bottom:' + marbom +
            'vw;">\n                <div class="recommend">\n                    <div class="layout_title" style="height:11.733vw;line-height:11.733vw;display:block">\n                        <span class="modtitle" style="display:block">鐑挱鎺掕</span>\n                    </div>\n                    <ul id="simcomUI_' +
            index + '" class="simcomUI"></ul>\n                </div>\n            </div>\n        ';
        $("#main-laycontent").append(html);
        var ico = ["榛樿", "浣撹偛浼氬憳", "浠樿垂", "SVIP涓撲韩", "SVIP", "SVIP鐢ㄥ埜", "VIP鐢ㄥ埜", "VIP浠樿垂", "VIP", "浣撹偛鐢ㄥ姷", "鍏泭", "鏂拌嫳",
            "鐗规儬", "1鍏�", "鎵撴姌", "鎶藉", "浜掑姩", "璞ぜ", "澶у挅", "鍗曞満", "鏂硅█", "钃濆厜"
        ];
        0 < offLineIds.length && (offLineIds = offLineIds.split(","));
        var rankList = {
            rankType: rankType,
            appplt: appplt,
            offLineIds: offLineIds
        };
        rankList = encodeURIComponent(JSON.stringify(rankList));
        var Url = ajaxsrc + "/api/cooperation/rankinglist?rankList=" + rankList + "&pageId=" + pageid + "&format=jsonp&cb=?";
        $.getJSON(Url, function(res) {
            console.log("===>", "recommendlist:", res);
            var errorcode = res.errorcode,
                data = res.data;
            switch (parseInt(errorcode)) {
                case 0:
                    if (0 == Object.keys(data.body).length) return !1;
                    var _data$body = data.body,
                        _data$body$movie = _data$body.movie,
                        movie = void 0 === _data$body$movie ? [] : _data$body$movie,
                        _data$body$teleplay = _data$body.teleplay,
                        teleplay = void 0 === _data$body$teleplay ? [] : _data$body$teleplay,
                        tico = "",
                        icodisplay = "block",
                        esphtml = "",
                        mov_len = movie.length,
                        tel_len = teleplay.length,
                        list = [],
                        num = number < mov_len + tel_len ? number : mov_len + tel_len;
                    list = 3 == _ptype ? [].concat(_toConsumableArray(movie), _toConsumableArray(teleplay)).slice(0, num) : [].concat(
                        _toConsumableArray(teleplay), _toConsumableArray(movie)).slice(0, num);
                    var lihtml = "";
                    list.forEach(function(item, inx) {
                        tico = item.icons && item.icons[0] && ico[item.icons[0].id], icodisplay = tico ? "block" : "none", item.episodeTitle &&
                            (esphtml = '<span class="sp_episodeTitle" style="font-size:2.6667vw">' + item.episodeTitle + "</span>"),
                            lihtml +=
                            '\n                            <li style="float:left;border-radius:1.067vw;margin-left:2.667vw;margin-bottom:5.333vw;width:29.333vw;overflow:hidden;-webkit-border-radius:1.067vw;">\n                                <a onclick="similarityLink(this)" href="javascript:;" class="amov recom_movie" vt="' +
                            item.vt + '" type="" cid="' + item.cid + "\" sa-data=\"{'eleid':'" + statistics + "_" + (inx + 1) +
                            "','aid':'" + aid +
                            '\'}">\n                                    <img style="display:block;width:29.333vw;height:40vw;border-radius:1.067vw;overflow:hidden;-webkit-border-radius:1.067vw;" src="' +
                            item.coverPic.replace(/http:/gi, "") +
                            '">\n                                    <i class="ico" style="height:4vw;line-height:4.267vw;font-size:2.6667vw;padding:0 1.333vw; display:' +
                            icodisplay + '">' + tico +
                            '</i>\n                                    <span class="sp_title" style="font-size:3.73vw;height:5.333vw;margin-top:1.067vw;width:29.333vw;overflow:hidden;font-weight:normal;display:block">' +
                            item.title + "</span>\n                                    " + esphtml +
                            "\n                                </a>\n                            </li>\n                        "
                    }), $("#simcomUI_" + index).html(lihtml)
            }
        })
    } catch (error) {
        checkActivity("ModSlipComTemp(error):", error)
    }
}
 
function similarityLink(that) {
    var cid = $(that).attr("cid"),
        programtype = 3;
    21 == $(that).attr("vt") && (programtype = 2), location.href = location.origin + location.pathname + "?cid=" + cid +
        "&vid=&programtype=" + programtype
}
window._cid = queryParam("cid"), window._vid = queryParam("vid"), window._ptype = queryParam("programtype"), Object.assign(
    VIDEO_INFO, {
        cid: _cid,
        vid: _vid,
        ptype: _ptype
    }), _vid && "undefined" != _vid && Object.assign(VIDEO_INFO, {
    cid: _vid
});
var isLogin = !1;
if (window.ppyestv) {
    var userinfo = ppyestv.getUserInfo();
    if (userinfo) {
        var _JSON$parse3 = JSON.parse(userinfo),
            code = _JSON$parse3.code;
        1 == code && (isLogin = !0)
    }
}
 
function show_login() {
    window.ppyestv.login()
}
 
function show_ktvip() {
    console.info("###########", isLogin), isLogin ? (console.info("#######", ppyestv.tryPlayFinish()), ppyestv.tryPlayFinish()) :
        show_login()
}
 
function show_playagin() {
    $("#xl_masks").hide(), playVideo()
}
var userInfo = {};
 
function adPlayFinish() {
    if (isLogin) {
        userInfo = window.ppyestv.getUserInfo();
        var openid = JSON.parse(userInfo).data.code;
        startInfoPlayVideo(actid, openid)
    } else VIDEO_INFO.pready ? playVideo() : setTimeout(function() {
        playVideo()
    }, 1e3)
}
var tv = 0;
window.addEventListener("message", function(e) {
    try {
        var data = e.data && JSON.parse(e.data);
        data.data;
        switch (data.type) {
            case "onReady":
                VIDEO_INFO.pready = !0, console.info("play-onReady", data);
                break;
            case "onPlayStateChanged":
                data && data.data;
                break;
            case "nextVideo":
                break;
            case "onError":
                console.info("===>play-onError", data), onError(data)
        }
    } catch (e) {}
}, !1), $(function() {
    loadingDataFunc(actModulePage, moduledata)
});