Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / footseen-large-website

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • footseen-large-website
  • room
  • videoRoom.html
Find file
BlameHistoryPermalink
  • libai's avatar
    测试 · d05c4391
    libai committed 2 years ago
    d05c4391
videoRoom.html 39.1 KB
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 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752
<!DOCTYPE html>
<html lang="en">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QT401FZZ2K"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-QT401FZZ2K');
</script>
<head>
    <meta charset="utf-8"/>
    <meta data-hid="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, minimum-scale=1">
    <meta name="renderer" content="webkit">
    <meta name="applicable-device"content="pc">
    <link rel="alternate" media="handheld" href="https://www.footseen.xyz/mobile/video.html">
    <link rel="alternate" media="only screen and (max-width: 640px)" href="https://www.footseen.xyz/mobile/video.html">
    <title>footseen-視頻-腳控足控天堂-超激情美女主播視訊</title>
    <meta class="keywords-meta" name="keywords" content="">
    <meta class="description" name="description" content="footseen,腳控足控,絲足美腿視訊影片,短裙丝袜,波浪长发,诱惑高跟鞋,黑絲美腿,免費高清在線觀看,無需下載看到飽。">
    <meta class="Thumbnail" itemprop="thumbnailUrl" content="" />
    <link rel="stylesheet" href="../css/base.css?v=20220630">
    <link rel="stylesheet" href="css/index.css?v=2022070801">
    <link rel="stylesheet" href="../css/login.css?v=2022073003">
    <script src="../lib/flv.js"></script>
    <script src="https://accounts.google.com/gsi/client" async defer></script>
    <script src="https://www.footseen.xyz/lib/hello.js"></script>

</head>
<body style="background: #F3F4F7">
    <div class="neck-nav">
        <div class="neck-nav-content">
            <a href="https://www.footseen.xyz/index.html"><img class="logo" src="../images/logo.png" alt=""></a>
            <div class="nav-login-big-box"></div>
        </div>
    </div>
<div class="video-m clearfix">
    <div style="height: 90px;"></div>
    <div class="video-big-box">
        <div class="video-big-box-left">
            <div class="video-play-box">
                <video  autoplay="" class="video" src="" id="videoElement" controls="" loop=""></video>
            </div>
            <div class="video-content-box">
                <div class="video-content-title"></div>
                <div class="video-btn-box">
                    <!-- <div><img src="images/icon1.png" alt=""><span>452</span></div>
                    <div><img src="images/icon2.png" alt=""><span>452</span></div>
                    <div><img src="images/icon3.png" alt=""><span>452</span></div> -->
                </div>
                <p class="video-time-box"><span>--</span><span></span></p>
                <div class="video-tag-box">
                    <!-- <div>#黑絲</div>
                    <div>#黑絲</div>
                    <div>#黑絲</div>
                    <div>#黑絲</div>
                    <div>#黑絲</div> -->
                </div>
                <div class="video-face-box">
                    <!-- <img class="video-face-box-face" src="https://zhibocdn.yabolive.net/comm/stscli/prod/883221/1648095196207/498F890F-33A1-4EE9-9854-9D39A6905E85.jpeg?x-oss-process=image/resize,w_40" alt="">
                    <p class="video-face-box-name">用户昵称啊啊</p>
                    <div class="video-like-btn">追踪</div> -->
                </div>
            </div>
            <div class="video-msg-box">
                <div style="height: 18px;"></div>
                <div class="video-msg-h2">--</div>
                <div class="video-input-box">
                    <input placeholder="輸入你想說的內容" class="video-input"  type="text">
                    <div class="video-input-btn">評論</div>
                    <input style="width: 0;height:0" type="text">
                </div>
                <div class="video-msg-list-box">
                    <!-- <div class="video-msg-list">
                        <div class="video-msg-list-content-box">
                            <img class="video-msg-user-face" src="https://zhibocdn.yabolive.net/comm/stscli/prod/883221/1648095196207/498F890F-33A1-4EE9-9854-9D39A6905E85.jpeg?x-oss-process=image/resize,w_50" alt="">
                            <p class="msg-p1">糖醋榴蓮</p>
                            <p class="msg-p2">等了他四天,等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天等了他四天</p>
                            <p class="msg-p3">2022-04-11 00:29 <span class="msg-p3-span1"><img src="images/msg-icon.png" alt="">25</span> <span class="msg-p3-span2">回復</span></p>
                        </div>
                        <div class="video-msg-reply-box">
                            <div class="reply-box-list">
                                <img class="reply-face" src="https://zhibocdn.yabolive.net/comm/stscli/prod/883221/1648095196207/498F890F-33A1-4EE9-9854-9D39A6905E85.jpeg?x-oss-process=image/resize,w_50" alt="">
                                <p class="reply-box-p1">
                                    <span>小紅豆:</span>奶哥牛!奶哥吃。
                                </p>
                                <p class="reply-box-p2">2022-04-11 00:29 <span class="msg-p3-span1"><img src="images/msg-icon.png" alt="">25</span> <span class="msg-p3-span2">回復</span></p>
                            </div>
                            <div class="reply-box-list">
                                <img class="reply-face" src="https://zhibocdn.yabolive.net/comm/stscli/prod/883221/1648095196207/498F890F-33A1-4EE9-9854-9D39A6905E85.jpeg?x-oss-process=image/resize,w_50" alt="">
                                <p class="reply-box-p1">
                                    <span>哥譚之王回復小紅豆:</span>全是細節,全是技術。全是細節,全是技術。全是細節,全是技術。全是細節,全是技術。全是細節,全是技術。全是細節,全是技術。全是細節,全是技術。全是細節,全是技術。全是細節,全是技術。全是細節,全是技術。全是細節,全是技術。全是細節,全是技術。
                                </p>
                                <p class="reply-box-p2">2022-04-11 00:29 <span class="msg-p3-span1"><img src="images/msg-icon.png" alt="">25</span> <span class="msg-p3-span2">回復</span></p>
                            </div>
                        </div>
                    </div>  -->
                </div>

            </div>
        
        </div>
        <div class="video-big-box-right">
            <div class="video-more-box">
                <div style="height: 5px;"></div>
                <h2 class="video-more-h2">
                    <div></div>影片推薦
                </h2>
                <ul class="video-more-ul">
                    <!-- <li>
                        <div class="video-top-box">
                            <div class="video-top-shadow"></div>
                            <span class="video-time">45:03</span>
                        </div>
                        <div class="video-name-box">
                            <img class="video-face" src="https://zhibocdn.yabolive.net/comm/stscli/prod/883221/1648095196207/498F890F-33A1-4EE9-9854-9D39A6905E85.jpeg?x-oss-process=image/resize,w_40" alt="">
                            <p class="video-title">圖文詳情圖文詳情</p>
                            <div class="video-tag-box">
                                <div>#黑絲</div>
                                <div>#黑絲</div>
                                <div>#黑絲</div>
                                <div>#黑絲</div>
                                <div>#黑絲</div>
                            </div>
                        </div>
                    </li> -->
                </ul>
            </div>
        </div>
    </div>

</div>
<div class="login-content"></div>
<div class="more-url"></div>
</body>
<!-- <script>window.location.href="https://www.baidu.com"</script> -->
<script src="../lib/jquery-3.1.1.min.js"></script>
<script src="../layer-v3.1.0/layer/layer.js"></script>
<script src="../lib/default.js?v='2022090501'"></script>
<script src="../lib/login.js?v=2022090203"></script>
<script src="../lib/fingerprint2.js"></script>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>
<script>
$(function(){
    if(localStorage.canvasCode==undefined){
        localStorage.canvasCode='oneEnter'
        // var fp = new Fingerprint2()
        // fp.get(function(result, components) {
        //     localStorage.canvasCode=result
        // });
    }
    var myTopicId
    loginGo()
    TopicInfo()

    comment(sessionStorage.topicId)
    if(localStorage.uid==undefined){
        $(".video-input").attr("placeholder","")
        $(".video-input").attr("disabled","disabled")
        $(".video-input-box").append("<p class='input-noLogin-tips'><span>登錄</span>后可以發表評論</p>")
        $(".input-noLogin-tips").on("click",function(){
            loginLayer()
        })
    }
    function TopicInfo(){
        $.ajax({
            url:$ip+'frontPage/queryTopicInfo',
            data:{
                uid:localStorage.uid,
                token:localStorage.token,
                pageID:localStorage.canvasCode,
                topicId:sessionStorage.topicId
            },
            // async:false,
            success:function(msg){
                //console.log('查看帖子详情',msg)
                if(msg.code!=1){
                    return;
                }
           
                myTopicId=msg.topic.topicId
                $("title").text(JSON.parse(msg.topic.content).title+'在線觀看')
                $(".description").attr("content",JSON.parse(msg.topic.content).title+'在線觀看,全網唯一高清免費在線觀看,盡在footseen')
                var tagsArr=[];
                list=msg.topic
                for(var j=0;j<list.tags.length;j++){
                    html+='<div data-type="'+list.tags[j].tagId+'" class="tag">'+list.tags[j].tagName+'</div>';
                    if(j+1==list.tags.length) tagsArr+=''+list.tags[j].tagName+''
                    else tagsArr+=''+list.tags[j].tagName+','
                }
                $(".keywords-meta").attr("content",tagsArr)
                if(localStorage.day!=new Date().getDate()){
                    localStorage.out=myTopicId
                    localStorage.day=new Date().getDate()
                }

                if(localStorage.out!=undefined)   localStorage.out=localStorage.out+','+myTopicId
                else localStorage.out=myTopicId
                //console.log(localStorage.out.split(","))
                if(localStorage.out.split(",").length>30){
                    var outArr=''
                    for(var i=0;i<30;i++){
                        i==29?outArr+=localStorage.out.split(",")[30-i]:outArr+=localStorage.out.split(",")[30-i]+','
                    }
                    localStorage.out=outArr
                    
                }
               
                if(sessionStorage.tag==''){
                    var pageNum=Math.ceil(Math.random()*10)
                    getTopics(pageNum,1,sessionStorage.tag,-1,-1,-1)
                } 
                else{
                    getTopics(1,1,sessionStorage.tag,-1,-1,-1)
                }
         
                var data=msg.topic;
                var videoList=JSON.parse(data.content)
                $(".Thumbnail").attr("content",'https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_100000,f_jpg,w_1280,h_0,m_fast,f_jpg')
                $(".video-content-title").text(videoList.title)
                var html=[];
                for(var i=0;i<data.tags.length;i++){
                    var list=data.tags[i]
                    html+='<div>'+list.tagName+'</div>';
                }
                $(".video-tag-box").html(html);
                var html=[];
                html+='<video autoplay="" class="video" src="https://zhibocdn.yabolive.net/comm'+videoList.videos[0].url.replace("flv","mp4")+'" id="videoElement" controls="" loop="" poster="https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover+'"></video>';
                $(".video-play-box").html(html)
                $(".video").on("error",function(){
                    var flvUrl=videoList.videos[0].url.replace("mp4","flv")
                    flvPlay('https://zhibocdn.yabolive.net/comm'+flvUrl+'')  
                })
                // var flvUrl=videoList.videos[0].url.replace("mp4","flv")
                // flvPlay('https://zhibocdn.yabolive.net/comm'+flvUrl+'')  
                if(data.selfUp==1) var html='<div><img src="images/icon1.png" alt=""><span>'+data.comment+'</span></div><div class="good-box"><img class="good-btn" data-type="1" src="images/icon2-click.png" alt=""><span>'+data.up+'</span></div>';
                else var html='<div><img src="images/icon1.png" alt=""><span>'+data.comment+'</span></div><div class="good-box"><img class="good-btn" data-type="0" src="images/icon2.png" alt=""><span>'+data.up+'</span></div>';
                $(".video-btn-box").html(html)
                var html=[];
                html+='<img class="video-face-box-face" src="https://zhibocdn.yabolive.net/comm'+data.face+'?x-oss-process=image/resize,w_40" alt="">';
                html+='<p class="video-face-box-name">'+data.nickname+'</p>';
                if(data.isLikeRoom==0)html+='<div data-type="'+data.uid+'" class="video-like-btn">追蹤</div>';
                else html+='<div data-type="'+data.uid+'" class="video-like-btn video-like-btn-yes">已追蹤</div>';
                $(".video-face-box").html(html);
                $(".video-time-box").html('<span>'+data.visit*18+'次观看</span><span>'+timeGet(data.updateTime)[0]+'年'+timeGet(data.updateTime)[1]+'月'+timeGet(data.updateTime)[2]+'日</span>')
                $(".video-input-btn").unbind("click").on("click",function(){
                    if(localStorage.uid==undefined){
                        loginLayer()
                        return;
                    }
                    if($(".video-input").val()==''|| $(".video-input").val().split(" ").join("").length == 0){
                        layer.msg("請輸入您想說的內容")
                        return;
                    }
                    var obj={
                        "text": ""+$(".video-input").val()+"",
                    }
                    $.ajax({
                        url:$ip+'dynamic/comment/send',
                        data:{
                            uid:localStorage.uid,
                            token:localStorage.token,
                            content:JSON.stringify(obj),
                            pageID:localStorage.canvasCode,
                            topicId:myTopicId
                        },
                        success:function(data){
                            //console.log('发布评论',data)
                            if(data.code!=1){
                                layer.msg(data.msg)
                                return;
                            }
                            layer.msg('评论成功')
                            $(".video-input").val('')
                            setTimeout(function(){
                                comment(sessionStorage.topicId)
                            },1000)
                        }
                    })
                })
                $(".good-btn").unbind("click").on("click",function(){
                    if(localStorage.uid==undefined){
                        loginLayer()
                    }
                    var _self=$(this)
                    $.ajax({
                        url:$ip+'dynamic/topic/up',
                        data:{
                            token:localStorage.token,
                            uid:localStorage.uid,
                            topicId:myTopicId,
                            cancel:_self.attr("data-type"),
                            pageID:localStorage.canvasCode,
                        },
                        success:function(data){
                            //console.log('動態點讚',data)
                            if(data.code!=1){
                                layer.msg(data.msg)
                                return;
                            }
                            if(_self.attr("data-type")==0){
                                $(".good-btn").attr("data-type",'1');
                                $(".good-btn").attr("src","images/icon2-click.png")
                                $(".good-box span").text((Number($(".good-box span").text())+1))
                            }
                            else if(_self.attr("data-type")==1){
                                $(".good-btn").attr("data-type",'0');
                                $(".good-btn").attr("src","images/icon2.png")
                                $(".good-box span").text((Number($(".good-box span").text())-1))
                            }
                        }
                    })
                })
                $(".video-like-btn").unbind("click").on("click",function(){
                    if(localStorage.uid==undefined){
                        loginLayer()
                        return;
                    }
                    if(data.isLikeRoom==1){
                        return
                    }
                    var _self=$(this)
                    $.ajax({
                        url:$ip+'room/likeOpt',
                        data:{
                            roomId:_self.attr("data-type"),
                            optType:1,
                            uid:localStorage.uid,
                            token:localStorage.token,
                            pageID: localStorage.canvasCode,
                        },
                        success:function(data){
                            //console.log('關注',data)
                            if(data.code==1){
                                _self.addClass("video-like-btn-yes")
                                _self.text("已追蹤")
                                _self.unbind("click")
                                layer.msg('追蹤成功')
                            }else{
                                layer.msg(data.msg)
                            }
                        }
                    })
                })
            }
        })
    }
    function getTopics(e,typeNum,tagNum,timeNum,sortNum,dayNum){
        $.ajax({
            url:$ip+'frontPage/queryTopics',
            data:{
                pageID:localStorage.canvasCode,
                pageNum:e,
                type:typeNum,
                pageSize:8,
                language:2,
                tag:tagNum,
                duration:timeNum,
                sort:sortNum,
                period:dayNum,
                topicId:localStorage.out
            },
            type: 'post',
            success:function(data){
                //console.log('获取帖子',data)
                var html=[];
                for(var i=0;i<data.dataList.length;i++){
                    var list=data.dataList[i];
                
                    var videoList=JSON.parse(list.content)
                    html+='<a href="https://www.footseen.xyz/room/videoRoom.html?topicId='+list.topicId+'&tag='+tagNum+'">'
                    html+='<li>';
                    html+='<div style="background: url(https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_90000,f_jpg,w_342,h_0,m_fast,f_jpg)no-repeat;background-size: cover;" class="video-top-box">';
                    html+='<div class="video-top-shadow"></div>';
                    html+='<span class="video-time">'+add0(Math.floor(videoList.videos[0].duration/1000/60))+':'+add0(Math.floor(videoList.videos[0].duration/1000)%60)+'</span>';
                    html+='</div>';
                    html+='<div class="video-name-box">';
                    html+='<img class="video-face" src="https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_40" alt="">';
                    html+='<p class="video-title">'+videoList.title+'</p>';
                    html+='<div class="video-tag-box">';
                    for(var j=0;j<list.tags.length;j++){
                        html+='<div data-type="'+list.tags[j].tagId+'" class="tag">'+list.tags[j].tagName+'</div>';
                    }
                    html+='</div>';
                    html+='</div>';
                    html+='</li>';
                    html+='</a>'
                }
                $(".video-more-ul").html(html);
            }
        })
    } 
    function comment(e){
        $.ajax({
            url:$ip+'dynamic/comment/list',
            data:{
                uid:localStorage.uid,
                token:localStorage.token,
                topicId:e,
                pageNum:1,
                pageSize:99,
                pageID:localStorage.canvasCode,
            },
            success:function(data){
                //console.log('查看评论列表',data)
                $(".video-msg-h2").text('評論('+data.totalSize+'條)')
                if(data.totalSize==0&&localStorage.uid!=undefined){
                    $(".video-input").attr("placeholder","快來發表第一條評論")
                }
                var html=[];
                for(var i=0;i<data.commentResult.length;i++){
                    var list=data.commentResult[i];
                    html+='<div class="video-msg-list">';
                    html+='<div class="video-msg-list-content-box">';
                    html+='<img class="video-msg-user-face" src="https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_50" alt="">';
                    html+='<p class="msg-p1">'+list.nickname+'</p>';
                    if(JSON.parse(list.content).images!=undefined&&JSON.parse(list.content).images[0]!=undefined){
                        html+='<p class="msg-p2">'+JSON.parse(list.content).text+'<br><img style="width:'+JSON.parse(list.content).images[0].wide+'px" src="https://zhibocdn.yabolive.net/comm'+JSON.parse(list.content).images[0].url+'"></p>';
                    }
                    // //console.log(JSON.parse(list.content).text)
                    else html+='<p class="msg-p2">'+JSON.parse(list.content).text.toString()+'</p>';
                    html+='<p class="msg-p3">'+list.remark+'';
                    if(list.selfUp==1) html+='<span style="color:#666666"  class="msg-p3-span1"><img style="width: 12px;" data-type='+list.commentId+' data-type3="1" src="images/images-icon2-click.png" alt=""><span>'+list.up+'</span></span>';
                    else html+='<span class="msg-p3-span1"><img data-type='+list.commentId+' data-type3="0" src="images/msg-icon.png" alt=""><span>'+list.up+'</span></span>';
                    html+='<span data-type='+list.commentId+' class="msg-p3-span2 reply1">回復</span>';
                    html+='</p>';
                    html+='</div>';
                    if(list.replyResult.length!=0){
                        html+='<div class="video-msg-reply-box">';
                        for(var j=0;j<list.replyResult.length;j++){
                            html+='<div class="reply-box-list">';
                            html+='<img class="reply-face" src="https://zhibocdn.yabolive.net/comm'+list.replyResult[j].face.split('?')[0]+'?x-oss-process=image/resize,w_50" alt="">';
                            if(list.replyResult[j].toNickname!=undefined) html+='<p class="reply-box-p1"><span>'+list.replyResult[j].nickname+'回復'+list.replyResult[j].toNickname+' :</span>'+JSON.parse(list.replyResult[j].content).text+'</p>';
                            else html+='<p class="reply-box-p1"><span>'+list.replyResult[j].nickname+':</span>'+JSON.parse(list.replyResult[j].content).text+'</p>';
                            html+='<p class="reply-box-p2">'+list.replyResult[j].remark+'';
                            if(list.replyResult[j].selfUp==1) html+='<span class="msg-p3-span1"><img style="width: 12px;" data-type='+list.commentId+' data-type2='+list.replyResult[j].toReplyId+' data-type3="1" src="images/images-icon2-click.png" alt="">'+list.replyResult[j].up+'</span> ';
                            else html+='<span class="msg-p3-span1"><img data-type='+list.replyResult[j].commentId+' data-type3="0" src="images/msg-icon.png" alt="">'+list.replyResult[j].up+'</span> ';
                            html+='<span data-type='+list.commentId+' data-type2='+list.replyResult[j].commentId+' class="msg-p3-span2 reply2">回復</span></p>';
                            html+='</div>';
                        }
                        if(list.reply>2)html+='<p class="more-replay">共'+list.reply+'條回復 <span data-type2="'+e+'" data-type='+list.commentId+' class="comment-more">點擊查看</span></p>'
                        html+='</div>';
                    }
                    // if(i==0){
                    //     html+='<div class="reply-input-box"><input placeholder="回复胡桃 : " class="reply2-input" type="text"><span>回復</span></div>'
                    // }
                    html+='</div>';
                }
                $(".video-msg-list-box").html(html)
                $(".reply1").unbind("click").on("click",function(){
                    $(".reply-input-box").remove()
                    var _self=$(this)
                    _self.parent().parent().parent().append('<div class="reply-input-box"><input placeholder="回复'+_self.parent().siblings(".msg-p1").text()+' : " class="reply2-input" type="text"><span data-type="'+_self.attr("data-type")+'">回復</span></div>')
                    $(".reply-input-box span").unbind("click").on("click",function(){
                        if(localStorage.uid==undefined){
                            loginLayer()
                            return;
                        }
                        _self=$(this);
                        if($(".reply2-input").val()==''|| $(".reply2-input").val().split(" ").join("").length == 0){
                            layer.msg("請輸入你想說的內容")
                            return;
                        }
                        commentSend(_self.attr("data-type"))
                    })
                })
                $(".reply2").unbind("click").on("click",function(){
                    $(".reply-input-box").remove()
                    var _self=$(this)
                    _self.parent().parent().parent().parent().append('<div class="reply-input-box"><input placeholder="回复'+_self.parent().siblings(".reply-box-p1").children().text()+' : " class="reply2-input" type="text"><span data-type="'+_self.attr("data-type")+'" data-type2="'+_self.attr("data-type2")+'">回復</span></div>')
                    $(".reply-input-box span").unbind("click").on("click",function(){
                        if(localStorage.token==undefined){
                            loginLayer()
                            return;
                        }
                        if($(".reply2-input").val()==''|| $(".reply2-input").val().split(" ").join("").length == 0){
                            layer.msg("請輸入你想說的內容")
                            return;
                        }
                        commentSend(_self.attr("data-type"),_self.attr("data-type3"))
                    })
                })
                $(".msg-p3-span1 >img").unbind("click").on("click",function(){
                    if(localStorage.uid==undefined){
                        loginLayer()
                        return;
                    }
                    var _self=$(this);
                    commentUp(_self.attr("data-type"),_self.attr("data-type3"))
                })
                $(".comment-more").unbind("click").on("click",function(){
                    if(localStorage.uid==undefined){
                        loginLayer()
                        return;
                    }
                    _self=$(this)
                    var topTopicId=_self.parent().parent().siblings(".video-msg-list-content-box").children(".msg-p3").children(".msg-p3-span2").attr("data-type")
                    //console.log(topTopicId)
                    $.ajax({
                        url:$ip+'dynamic/reply/getList',
                        data:{
                            topicId:_self.attr("data-type2"),
                            pageNum:1,
                            pageSize:99,
                            commentId:_self.attr("data-type"),
                            uid:localStorage.uid,
                            token:localStorage.token,
                            pageID:localStorage.canvasCode,
                        },
                        success:function(data){
                            //console.log('加載更多回復',data)
                            if(data.code!=1){
                                layer.msg(data.msg);
                            }
                            var html=[];
                       
                            for(var i=0;i<data.replyList.length;i++){
                                var list=data.replyList[i]
                                html+='<div class="reply-box-list">';
                                html+='<img class="reply-face" src="https://zhibocdn.yabolive.net/comm'+list.face.split('?')[0]+'?x-oss-process=image/resize,w_50" alt="">';
                                if(list.toNickname!=undefined) html+='<p class="reply-box-p1"><span>'+list.nickname+'回復'+list.toNickname+' :</span>'+JSON.parse(list.content).text+'</p>';
                                else html+='<p class="reply-box-p1"><span>'+list.nickname+':</span>'+JSON.parse(list.content).text+'</p>';
                                html+='<p class="reply-box-p2">'+list.remark+'';
                                if(list.selfUp==1) html+='<span class="msg-p3-span1"><img style="width: 12px;" data-type='+list.commentId+' data-type2='+list.toReplyId+' data-type3="1" src="images/images-icon2-click.png" alt=""><span>'+list.up+'</span></span> ';
                                else html+='<span class="msg-p3-span1"><img data-type='+list.commentId+' data-type3="0" src="images/msg-icon.png" alt=""><span>'+list.up+'</span></span> ';
                                html+='<span data-type='+topTopicId+' data-type2='+list.commentId+' class="msg-p3-span2 reply2">回復</span></p>';
                                html+='</div>';
      
                            }
                            $(".more-replay").hide()
                            _self.parent().parent().html(html);
                            //绑定新事件
                            $(".Reply-btn2").unbind("click").on("click",function(){
                                var _self=$(this);
                                comment1=_self.attr("data-type")
                                comment2=_self.attr("data-type2")
                                $(".photo-content-input").attr("placeholder",'回復'+_self.parent().siblings(".more-message-content").children("span").text()+'')
                                $('.photo-content-input').focus()
                            })
                            $(".msg-p3-span1 >img").unbind("click").on("click",function(){
                                var _self=$(this);
                                $.ajax({
                                    url:$ip+'dynamic/comment/up',
                                    data:{
                                        uid:localStorage.uid,
                                        token:localStorage.token,
                                        topicId:myTopicId,
                                        commentId:_self.attr("data-type"),
                                        cancel:_self.attr("data-type3"),
                                        pageID:localStorage.canvasCode,
                                    },
                                    success:function(data){
                                        //console.log('評論點讚2332',data)
                                        if(data.code!=1){
                                            layer.msg(data.msg);
                                            return;
                                        }
                                        // comment(sessionStorage.topicId)
                                        if(_self.attr("data-type3")==0){
                                            _self.attr("src","images/images-icon2-click.png").css("width","12px")
                                            _self.attr("data-type3","1")
                                            _self.siblings("span").text((Number(_self.siblings("span").text())+1))
                                        }else{
                                            _self.attr("src","images/msg-icon.png")
                                            _self.attr("data-type3","0")
                                            _self.siblings("span").text(Number(_self.siblings("span").text())-1)
                                        }
                                       
                                    }
                                })
                                // commentUp(_self.attr("data-type"),_self.attr("data-type3"))
                            })
                            $(".reply2").unbind("click").on("click",function(){
                                $(".reply-input-box").remove()
                                var _self=$(this)
                                _self.parent().parent().parent().parent().append('<div class="reply-input-box"><input placeholder="回复'+_self.parent().siblings(".reply-box-p1").children().text()+' : " class="reply2-input" type="text"><span data-type="'+_self.attr("data-type")+'" data-type2="'+_self.attr("data-type2")+'">回復</span></div>')
                                $(".reply-input-box span").unbind("click").on("click",function(){
                                    if($(".reply2-input").val()==''|| $(".reply2-input").val().split(" ").join("").length == 0){
                                        layer.msg("請輸入你想說的內容")
                                        return;
                                    }
                                    if($(".reply2-input").val()==''|| $(".reply2-input").val().split(" ").join("").length == 0){
                                        layer.msg("請輸入你想說的內容")
                                        return;
                                    }
                                    commentSend(_self.attr("data-type"),_self.attr("data-type2"))
                                })
                            })
                        }
                    })
                })
            }
        })
    }
    function commentUp(e,type){
        $.ajax({
            url:$ip+'dynamic/comment/up',
            data:{
                uid:localStorage.uid,
                token:localStorage.token,
                topicId:myTopicId,
                commentId:e,
                cancel:type,
                pageID:localStorage.canvasCode,
            },
            success:function(data){
                //console.log('評論點讚',data)
                if(data.code!=1){
                    layer.msg(data.msg);
                    return;
                }
                comment(sessionStorage.topicId)
   
           
                
            }
        })
    }
    function commentSend(comm1,comm2){
        var obj={
            "text": ""+$(".reply2-input").val()+"",
        }
        $.ajax({
            url:$ip+'dynamic/comment/send',
            data:{
                uid:localStorage.uid,
                token:localStorage.token,
                commentId:comm1,
                replyId:comm2,
                topicId:myTopicId,
                pageID:localStorage.canvasCode,
                content:JSON.stringify(obj),
            },
            success:function(data){
                //console.log('發佈評論',data)
                if(data.code!=1){
                    layer.msg(data.msg)
                    return;
                }
                layer.msg("回復成功")
                $(".reply-input-box").remove()
                setTimeout(function(){
                    comment(sessionStorage.topicId)
                },300)
                
            }
        })
    }
    function flvPlay(e){
        var player = document.getElementById('videoElement');
        if (flvjs.isSupported()) {
            var flvPlayer = flvjs.createPlayer({
                type: 'flv',
                enableWorker:true,
                hasAudio:true,
                hasVideo:true,
                url: e
            });
            flvPlayer.attachMediaElement(videoElement);
            flvPlayer.load(); //加载
            flvPlayer.on(flvjs.Events.ERROR, (err, errdet) => {
              // 参数 err 是一级异常,errdet 是二级异常
              if (err == flvjs.ErrorTypes.MEDIA_ERROR) {
                //console.log('媒体错误')
                if(errdet == flvjs.ErrorDetails.MEDIA_FORMAT_UNSUPPORTED) {
                  //console.log('媒体格式不支持')
                }
              }
              if (err == flvjs.ErrorTypes.NETWORK_ERROR) {
                //console.log('网络错误')
                if(errdet == flvjs.ErrorDetails.NETWORK_STATUS_CODE_INVALID) {
                  //console.log('http状态码异常')
                }
              }
              if(err == flvjs.ErrorTypes.OTHER_ERROR) {
                //console.log('其他异常:', errdet)
              }
            })
        }
    }
    function flv_start() {
        player.play();
    }
    function flv_pause() {
        player.pause();
    }
    function flv_destroy() {
        player.pause();
        player.unload();
        player.detachMediaElement();
        player.destroy();
        player = null;
    }
    function loginLayer(){
        $(".login-box1").show()
        $(".login-box2").hide()
        $(".login-box3").hide()
        $(".login-box4").hide()
        layer.open({
            type: 1,
            title: false,
            shadeClose: true,
            skin: "yourclass5",
            area: ["470px", "631px"],
            content: $(".layer-login"),
            end: function () {
                $(".layui-layer-shade").hide()
                layer.closeAll()
            }
        })
    }

})
</script>
<script>
  //5
  //17
  //23

    function addUrl(e){
        $.ajax({
            url:$ip+'frontPage/queryTopics',
            data:{
                pageID:localStorage.canvasCode,
                pageNum:e,
                type:1,
                pageSize:500,
                language:2,
                tag:'',
                duration:-1,
                sort:-1,
                period:-1,
                // topicId:localStorage.out
            },
            type: 'post',
            success:function(data){
                console.log('获取帖子',data)
                var html=[];
                for(var i=0;i<data.dataList.length;i++){
                    var list=data.dataList[i];
                    // var videoList=JSON.parse(list.content)
                    html+='https://www.footseen.xyz/room/videoRoom.html?topicId='+list.topicId+'&mark=1<br>'
                }
                $(".more-url").append(html);
            }
        })
    }


</script>
</html>