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
  • space
  • index.html
Find file
BlameHistoryPermalink
  • libai's avatar
    测试 · c2495947
    libai committed 2 years ago
    c2495947
index.html 45.4 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 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788
<!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">
    <title>footseen-腳控足控天堂-超激情美女主播視訊</title>
    <meta name="keywords" content="footseen,foot live,激情美女視訊,激情美女影片,腳控足控,絲足,裸足,美腿,絲襪,黑絲,台灣UU聊天室,swag,視訊聊天室,live173,uplive,vklive,nonolive,foot rub,foot fetish">
    <meta name="description" content="footseen,腳控足控天堂,絲足美腿視訊影片,台灣足控第一高效約會軟體,免費影片立即觀看,在線美女激情互動,成人視訊線上體驗,徹底釋放你的慾望。">
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/layer.css">
    <link rel="stylesheet" href="../css/login.css?v=2022101102">
    <link rel="stylesheet" href="css/index.css?v=2022080401">
    <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: #F0F1F4;">
    <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 style="display: none;" class=nav-login-btn>登入/註冊</div>
                <div style="display: none;" class="nav-login">
                    <img class="nav-login-face" src="" alt="">
                    <div class="nav-login-more">
                        <div class="nav-login-more-jiao"></div>
                        <div class="nav-login-more-top">
                            <img class="login-more-top-face" src="" alt="">
                            <p class="login-more-top-p1">主播暱稱預留</p>
                            <p class="login-more-top-p2">ID:246524</p>
                        </div>
                        <div class="login-more-content-box">
                            <div data-type="1">用戶中心</div>
                            <div data-type="2">儲值中心</div>
                            <div data-type="3">我的追蹤</div>
                            <div data-type="4">登出</div>
                        </div>
                    </div>
                </div> -->
            </div>
        </div>
    </div>
    <div class="m-box">
        <div style="height: 60px;"></div>
        <div class="space-box">
            <div class="space-top">
                <!-- <img class="space-face" src="https://zhibocdn.yabolive.net/comm/stscli/prod/883221/1648095196207/498F890F-33A1-4EE9-9854-9D39A6905E85.jpeg?x-oss-process=image/resize,w_100" alt="">
                <div class="space-name"><img class="space-level" src="https://app.ixiulive.com/static/vip/35.png"> 糖醋里脊肉</div>
                <div class="space-id">Footseen ID: 123456</div>
                <div class="space-num"><span>77</span>追隨 &nbsp;&nbsp;|&nbsp;&nbsp; <span>1440</span>粉絲</div>
                <div class="like-btn"></div> -->
                <!-- <div class="talk-btn"></div> -->
            </div>
            <div class="text-bg"> </div>
            <div class="space-content">
                <h2 class="space-h2"><div class="line"></div>基本信息</h2>
                <div class="space-line1"></div>
                <ul class="space-ul clearfix">
                    <!-- <li><span>性別: </span>女</li>
                    <li><span>年齡: </span>24</li>
                    <li><span>來自: </span>台灣</li>
                    <li><span>身高: </span>168cm</li>
                    <li><span>體重: </span>50kg</li>
                    <li><span>星座: </span>巨蟹座</li>
                    <li><span>學歷: </span>幼稚園</li>
                    <li><span>職業: </span>教師</li> -->
                </ul>
                <div class="space-money-box clearfix">
                    <p><span>收穫羽毛:</span> <img src="images/feather.png" alt="">--</p>
                    <p><span>贈出寶石:</span> <img src="images/diamond.png" alt="">--</p>
                </div>
                <div class="mc-car-box">
                    當前座駕:
                    <ul class="mc-car-ul">
                        <!-- <li><img src="images/gift-case.png" alt=""></li> -->
                    </ul>
                </div>
                <div class="mc-title-box">獲得勛章: 
                    <span>
                        <!-- <img src="images/gift-case.png" alt="">
                        <img src="images/gift-case.png" alt="">
                        <img src="images/gift-case.png" alt=""> -->
                    </span>
                </div>
       
            </div>
            <div class="space-photo">
                <h2 class="space-h2"><div class="line"></div>相冊</h2>
                <div class="space-line2"></div>
                <ul class="mc-images-ul clearfix">
                    <!-- <li style="background: url(https://zhibocdn.yabolive.net/comm/stscli/prod/2044606/1648779346851/A6C101FE-F919-41AB-8FF7-09BA33327B54.jpeg?x-oss-process=image/resize,w_180)no-repeat;background-size: cover;">
                        <div class="mc-images-li-bottom">
                            <span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">59</span>
                            <span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">10</span>
                            <span class="mc-images-li-span3">10:34</span>
                        </div>
                        <div class="mc-images-li-shadow"></div>
                    </li> -->
                </ul>
                <!-- <ul class="phone-ul clearfix">
                    <li>
                        <div class="mc-images-li-bottom">
                            <span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">59</span>
                            <span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">10</span>
                            <span class="mc-images-li-span3">10:34</span>
                        </div>
                        <div class="mc-images-li-shadow"></div>
                    </li>
                    <li>
                        <div class="mc-images-li-bottom">
                            <span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">59</span>
                            <span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">10</span>
                            <span class="mc-images-li-span3">10:34</span>
                        </div>
                        <div class="mc-images-li-shadow"></div>
                    </li>
                    <li>
                        <div class="mc-images-li-bottom">
                            <span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">59</span>
                            <span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">10</span>
                            <span class="mc-images-li-span3">10:34</span>
                        </div>
                        <div class="mc-images-li-shadow"></div>
                    </li>
                    <li>
                        <div class="mc-images-li-bottom">
                            <span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">59</span>
                            <span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">10</span>
                            <span class="mc-images-li-span3">10:34</span>
                        </div>
                        <div class="mc-images-li-shadow"></div>
                    </li>
                    <li>
                        <div class="mc-images-li-bottom">
                            <span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">59</span>
                            <span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">10</span>
                            <span class="mc-images-li-span3">10:34</span>
                        </div>
                        <div class="mc-images-li-shadow"></div>
                    </li>
                    <li>
                        <div class="mc-images-li-bottom">
                            <span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">59</span>
                            <span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">10</span>
                            <span class="mc-images-li-span3">10:34</span>
                        </div>
                        <div class="mc-images-li-shadow"></div>
                    </li>
                    <li>
                        <div class="mc-images-li-bottom">
                            <span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">59</span>
                            <span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">10</span>
                            <span class="mc-images-li-span3">10:34</span>
                        </div>
                        <div class="mc-images-li-shadow"></div>
                    </li>
                    <li>
                        <div class="mc-images-li-bottom">
                            <span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">59</span>
                            <span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">10</span>
                            <span class="mc-images-li-span3">10:34</span>
                        </div>
                        <div class="mc-images-li-shadow"></div>
                    </li>
                </ul> -->
            </div>
        
        </div>
        <div style="height: 60px;"></div>
    </div>
    <div class="layer-photo">
        <img class="photo-arrow-left" src="images/photo-arrow.png" alt="">
        <img class="photo-arrow-right" src="images/photo-arrow.png" alt="">
        <div class="layer-photo-content">
            <div class="layer-photo-content-left">
                <img class="photo-content-left-img" src="https://zhibocdn.yabolive.net/comm/user/img/134601/f4035e3045c640ddaf5b8318ccc8e6c5.jpg?x-oss-process=image/resize,w_775" alt="">
            </div>
            <div class="layer-photo-content-right">
                <div class="photo-content-top">
                    <img class="photo-content-top-face" src="https://zhibocdn.yabolive.net/comm/stscli/prod/123456/1651905234496/656591F9-8A58-4DD2-8C12-FF2C4E899CDA.jpeg?x-oss-process=image/resize,w_50" alt="">
                    <div class="photo-content-name">主播暱稱預留 <span class="photo-name-like">+追蹤</span></div>
                </div>
                <div class="photo-content-center">
                    <p class="photo-time-p">2022年3月1日</p>
                    <div class="photo-content-speak">我和你就限制暗示法那是反扒說法麼啊發順豐安撫熬死第三方三個偷回家我不明白</div>
                    <div class="photo-content-like">
                        <span><img src="images/icon1.png" alt="">25</span>
                        <span><img src="images/icon2.png" alt="">25</span>
                    </div>
                </div>
                <ul class="photo-content-right-ul">
                    <!-- <li>
                        <img class="photo-message-face" src="https://zhibocdn.yabolive.net/comm/stscli/prod/123456/1651905234496/656591F9-8A58-4DD2-8C12-FF2C4E899CDA.jpeg?x-oss-process=image/resize,w_50" alt="">
                        <p class="photo-message-name">用戶暱稱預留</p>
                        <p class="photo-message-content">阿薩德鬧翻那傻逼噶搜啊什麼封啊實打實搜啊什麼封啊實打實搜啊什麼封啊實打實搜啊什麼封啊實打實</p>
                        <p class="photo-message-time">12小時前 <span>回復</span></p>
                        <div class="photo-more-message">
                            <div class="more-message-box">
                                <img class="more-message-face" src="https://zhibocdn.yabolive.net/comm/stscli/prod/123456/1651905234496/656591F9-8A58-4DD2-8C12-FF2C4E899CDA.jpeg?x-oss-process=image/resize,w_50" alt="">
                                <p class="more-message-content"><span>主播暱稱預留:</span> 哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈</p>
                                <p class="more-message-time">12小時前 <span>回復</span></p>
                            </div>
                            <div class="more-message-box">
                                <img class="more-message-face" src="https://zhibocdn.yabolive.net/comm/stscli/prod/123456/1651905234496/656591F9-8A58-4DD2-8C12-FF2C4E899CDA.jpeg?x-oss-process=image/resize,w_50" alt="">
                                <p class="more-message-content"><span>主播暱稱預留:</span> 哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈</p>
                                <p class="more-message-time">12小時前 <span>回復</span></p>
                            </div>
                        </div>
                    </li> -->
                </ul>
                <div class="photo-content-msg">
                    <input placeholder="請輸入要發送的內容" class="photo-content-input" type="text">
                    <div class="photo-msg-btn">發送</div>
                </div>
            </div>
        </div>
    </div>
    <div class="login-content"></div>
</body>
<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=2022101107"></script>
<script src="../lib/qrcode.min.js"></script>
<script src="../lib/login.js?v=2022101105"></script>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>
<script>
$(function(){
    loginGo()
  
    var fid=data.fid
    zoneList()
    $.ajax({
        url: $ip + 'room/enterRoom',
        data: {
            uid: localStorage.uid,
            token: localStorage.token,
            // pass: true,
            roomId: fid,
            pageID: localStorage.canvasCode,
        },
        success: function (data) {
            //console.log('用戶信息', data)
            $("title").text(data.room.nickName+'的個人空間-footseen')
            $(".text-bg").text(data.roomBaseInfo.sign.replace("Firefly Live","Footseen"))
            var html = [];
            if(data.roomOtherInfo.motoring.resource!=undefined)html += '<li><img src="https://zhibocdn.yabolive.net/comm' + data.roomOtherInfo.motoring.resource + '?x-oss-process=image/resize,w_45" alt=""></li>';
            $(".mc-car-ul").html(html)
            var html=[];
            for(var i=0;i<data.roomOtherInfo.medals.length;i++){
                var list=data.roomOtherInfo.medals[i]
                html+='<img src="https://zhibocdn.yabolive.net/comm' + data.roomOtherInfo.medals[i] + '?x-oss-process=image/resize,w_45" alt="">';
            }
            $(".mc-title-box >span").html(html);
            var html=[];
            html+='<img class="space-face" src="https://zhibocdn.yabolive.net/comm'+data.room.face+'?x-oss-process=image/resize,w_100" alt="">';
            html+='<div class="space-name">';
            if(data.room.level!=0)html+='<img class="space-level" src="https://app.ixiulive.com/static/vip/'+data.room.level+'.png"> ';
            html+=''+data.room.nickName+'</div>';
            html+='<div class="space-id">Footseen ID: '+data.room.roomId+'</div>';
            html+='<div class="space-num"><span>'+data.roomOtherInfo.myfollow+'</span>追隨 &nbsp;&nbsp;|&nbsp;&nbsp; <span>'+data.roomOtherInfo.followme+'</span>粉絲</div>';
            if(data.room.isLike>0) html+='<div data-type="'+data.room.roomId+'" data-type2="2" class="like-btn like-btn-end"></div>';
            else html+='<div data-type="'+data.room.roomId+'" data-type2="1" class="like-btn"></div>';
            $(".space-top").html(html);
            var html=[]
            if(data.roomBaseInfo.sex==-1)html+='<li><span>性別: </span>未知</li>';
            else if(data.roomBaseInfo.sex==1)html+='<li><span>性別: </span>男</li>';
            else if(data.roomBaseInfo.sex==0)html+='<li><span>性別: </span>女</li>';
            html+='<li><span>年齡: </span>'+data.roomBaseInfo.age+'</li>';
            if (data.roomBaseInfo.addr != '')html+='<li><span>來自: </span>'+data.roomBaseInfo.addr+'</li>';
            else html+='<li><span>來自: </span>未知</li>';
            if(data.roomBaseInfo.height=='')html+='<li><span>身高: </span>未知</li>';
            else html+='<li><span>身高: </span>'+data.roomBaseInfo.height+'cm</li>';
            if(data.roomBaseInfo.weight=='')html+='<li><span>體重: </span>未知</li>';
            else html+='<li><span>體重: </span>' + data.roomBaseInfo.weight + 'kg</li>';
            html+='<li><span>星座: </span>' + data.roomBaseInfo.constellation + '</li>';
            html+='<li><span>學歷: </span>' + data.roomBaseInfo.culture + '</li>';
            html+='<li><span>職業: </span>' + data.roomBaseInfo.work + '</li>';
            $(".space-ul").html(html);
            var html=[];
            html+='<p><span>收穫羽毛:</span> <img src="images/feather.png" alt="">'+data.roomOtherInfo.charm+'</p>';
            html+='<p><span>贈出寶石:</span> <img src="images/diamond.png" alt="">'+data.roomOtherInfo.rich+'</p>';
            $(".space-money-box").html(html);
            $(".like-btn").unbind("click").on("click",function(){
                if(localStorage.uid==undefined){
                    loginLayer()
                    return;
                }
                var _self=$(this)
                $.ajax({
                    url:$ip+'room/likeOpt',
                    data:{
                        roomId:_self.attr("data-type"),
                        optType:_self.attr("data-type2"),
                        uid:localStorage.uid,
                        token:localStorage.token,
                        pageID: localStorage.canvasCode,
                    },
                    success:function(data){
                        //console.log('關注',data)
                        if(data.code==1){
                            if(_self.attr("data-type2")==2){
                                _self.attr("data-type2","1")
                                _self.removeClass("like-btn-end")
                               
                            }
                            else if(_self.attr("data-type2")==1){
                                _self.attr("data-type2","2")
                                _self.addClass("like-btn-end")
                            
                            }
                        }else{
                            layer.msg(data.msg)
                        }
                    }
                })
            })
        },
    })
    function zoneList(){
        $.ajax({
            url:$ip+'zone/dynamic/album/getList',
            data:{
                zoneId:fid,
                pageNum:1,
                pageSize:99,
                //,
                pageID:localStorage.canvasCode
            },
            success:function(data){
                dataArr=data
                //console.log('获取相册列表',data)
                $(".material-span-other2").text("相冊("+data.dataList.length+")")
                var html=[];
                if(data.dataList.length==0){
                    html+="<div class='images-no-box'><img src='images/no-icon.png'><p>該用戶暫無相冊噢</p></div>"
                }
                for(var i=0;i<data.dataList.length;i++){
                    var list=data.dataList[i];
                    var content=JSON.parse(list.content)
                    if(list.type==3){
                        html+='<li data-type2='+i+' data-type='+list.topicId+' style="background: url(https://zhibocdn.yabolive.net/comm'+content.videos[0].cover+'?x-oss-process=image/resize,w_180)no-repeat;background-size: cover;">';
                        html+='<div class="mc-images-li-bottom">';
                        html+='<span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">'+list.comment+'</span>';
                        html+='<span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">'+list.up+'</span>';
                        html+='<span class="mc-images-li-span3">'+add0(Math.floor(content.videos[0].duration/60000))+':'+add0(Math.floor(content.videos[0].duration%60000/1000))+'</span>';
                        html+='</div>';
                        html+='<div class="mc-images-li-shadow"></div>';
                        html+='</li>';
                    }else{
                        html+='<li data-type2='+i+' data-type='+list.topicId+' style="background: url(https://zhibocdn.yabolive.net/comm'+content.images[0].url+'?x-oss-process=image/resize,w_180)no-repeat;background-size: cover;">';
                        html+='<div class="mc-images-li-bottom">';
                        html+='<span class="mc-images-li-span1"><img src="images/images-icon1.png" alt="">'+list.comment+'</span>';
                        html+='<span class="mc-images-li-span2"><img src="images/images-icon2.png" alt="">'+list.up+'</span>';
                        html+='</div>';
                        html+='<div class="mc-images-li-shadow"></div>';
                        html+='</li>';
                    }
                }
                $(".mc-images-ul").html(html);
                $(".mc-images-ul li").unbind("click").on("click",function(){
                    var _self=$(this);
                    photo(_self.attr("data-type"),_self.attr("data-type2"))
                    layer.open({
                        type: 1,
                        title: false,
                        shadeClose: true,
                        skin: "yourclass5",
                        area: ["1300px", "900px"],
                        content: $(".layer-photo"),
                        end: function () {
                            $(".layui-layer-shade").hide()
                            layer.closeAll()
                        }
                    })
                    // $(".photo-arrow-left").unbind("click").on("click",function(){
                    //     var photoNum= _self.attr("data-type2")
                    //     if(photoNum!=0){
                    //         //console.log(dataArr.dataList[photoNum-1].topicId)
                    //     }
                        
                        
                       
                    //     // photo(_self.attr("data-type"))
                    // })
                    // $(".photo-arrow-right").unbind("click").on("click",function(){
                    //     // photo(_self.attr("data-type"))
                    // })
                })
                
            }
        })
    }
    function photo(e,num){
        $.ajax({
            url:$ip+'frontPage/queryTopicInfo',
            async:false,
            data:{
                topicId:e,
                pageID:localStorage.canvasCode,
                uid:localStorage.uid,
                token:localStorage.token,
            },
            success:function(data){
                //console.log('查看帖子详情',data)
                var list=data.topic
                var myTopicId=list.topicId
                var imagesList=JSON.parse(list.content);
                
                if(list.type==2){
                    //console.log(imagesList)
                    var html=[];
                    if(imagesList.images.length>1){
                        var ulWidth=126*imagesList.images.length
                        var ulLeft=63*imagesList.images.length
                        html+='<ul style="width:'+ulWidth+'px;margin-left:'+-ulLeft+'px" class="photo-content-left-ul">';
                        for(var i=0;i<imagesList.images.length;i++){
                            if(i==0) html+='<li data-type='+imagesList.images[i].url+' class="photo-li-click" style="background:url(https://zhibocdn.yabolive.net/comm'+imagesList.images[i].url+'?x-oss-process=image/resize,w_105);background-size:cover"></li>';
                            else html+='<li data-type='+imagesList.images[i].url+' style="background:url(https://zhibocdn.yabolive.net/comm'+imagesList.images[i].url+'?x-oss-process=image/resize,w_105);background-size:cover"></li>'; 

                        }
                        html+='</ul>';
                    }
                    // if(imagesList.images[0].wide>imagesList.images[0].high) html+='<img style="width: 775px;" class="photo-content-left-img" src="https://zhibocdn.yabolive.net/comm'+imagesList.images[0].url+'?x-oss-process=image/resize,w_775" alt="">';
                    // else html+='<img style="height: 900px;" class="photo-content-left-img" src="https://zhibocdn.yabolive.net/comm'+imagesList.images[0].url+'?x-oss-process=image/resize,w_775" alt="">';
                    if(imagesList.images[0].high>900) html+='<img style="height:900px" class="photo-content-left-img" src="https://zhibocdn.yabolive.net/comm'+imagesList.images[0].url+'?x-oss-process=image/resize,w_775" alt="">';
                    else if(imagesList.images[0].wide>775)html+='<img style="width:775px" class="photo-content-left-img" src="https://zhibocdn.yabolive.net/comm'+imagesList.images[0].url+'?x-oss-process=image/resize,w_775" alt="">';
                    else html+='<img style="height:'+imagesList.images[0].high+'px;width:'+imagesList.images[0].wide+'px" class="photo-content-left-img" src="https://zhibocdn.yabolive.net/comm'+imagesList.images[0].url+'?x-oss-process=image/resize,w_775" alt="">';
                    
                    $(".layer-photo-content-left").html(html);
                    if(imagesList.images.length>1){
                        $(".photo-content-left-ul li").unbind("click").on("click",function(){
                            var _self=$(this);
                            $(".photo-content-left-ul li").removeClass("photo-li-click")
                            _self.addClass("photo-li-click")
                            $(".photo-content-left-img").attr("src","https://zhibocdn.yabolive.net/comm"+_self.attr("data-type")+"?x-oss-process=image/resize,w_775")
                        })
                    }
                }else if(list.type==3){
                    var html=[];
                    if(imagesList.videos[0].wide>imagesList.videos[0].high) html+='<video style="width:775px" controls src="https://zhibocdn.yabolive.net/comm'+imagesList.videos[0].url.replace(".flv",".mp4")+'">';
                    else html+='<video style="height: 900px;" controls src="https://zhibocdn.yabolive.net/comm'+imagesList.videos[0].url.replace(".flv",".mp4")+'">';
                    $(".layer-photo-content-left").html(html);
                    $(".layer-photo-content-left video").on("error",function(){
                        $(".layer-photo-content-left video").attr("src",'https://zhibocdn.yabolive.net/comm'+imagesList.videos[0].url.replace(".flv",".MP4")+'')
                    })
                }
                var html=[];
                html+='<img class="photo-content-top-face" src="https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_50" alt="">';
                html+='<div class="photo-content-name">'+list.nickname+''; 
                if(list.isLikeRoom==0)html+='<span class="photo-name-like">+追蹤</span>';
                html+='</div>';
                $(".photo-content-top").html(html);
                var html=[];
                html+='<p class="photo-time-p">'+timeGet(list.updateTime)[0]+'年'+timeGet(list.updateTime)[1]+'月'+timeGet(list.updateTime)[2]+'日</p>';
                html+='<div class="photo-content-speak">'+imagesList.title+'</div>';
                html+='<div class="photo-content-like">';
                html+='<span><img src="images/icon1.png" alt="">'+list.comment+'</span>';
                if(list.selfUp==1)html+='<span><img  data-type="1" class="up-click" src="images/icon2-click.png" alt=""><span>'+list.up+'</span></span>';
                else html+='<span><img  data-type="0" class="up-click" src="images/icon2.png" alt=""><span>'+list.up+'</span></span>';
                html+='</div>';
                $(".photo-content-center").html(html);
                // setTimeout(function(){
                //     //console.log($(".photo-content-center").height())
                // },50)   
        
                $(".up-click").unbind("click").on("click",function(){
                    if(localStorage.uid==undefined){
                        layer.closeAll()
                        setTimeout(function(){ loginLayer()},300)

                        return;
                    }
                    if(data.selfUp==1){
                        return;
                    }
                    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){
                                $(".up-click").attr("data-type",'1');
                                $(".up-click").attr("src","images/icon2-click.png")
                                $(".up-click").siblings("span").text((Number($(".up-click").siblings("span").text())+1))
                            }
                            else if(_self.attr("data-type")==1){
                                $(".up-click").attr("data-type",'0');
                                $(".up-click").attr("src","images/icon2.png")
                                $(".up-click").siblings("span").text((Number($(".up-click").siblings("span").text())-1))
                            }
                        }
                    })
                })
                $(".photo-arrow-left").attr("data-type",""+(num-1)+"")
                $(".photo-arrow-right").attr("data-type",""+(Number(num)+1)+"")
                $(".photo-arrow-left").unbind("click").on("click",function(){
                    var _self=$(this)
                    if(_self.attr("data-type")>-1){
                        var nextNum=_self.attr("data-type")
                        pid=dataArr.dataList[nextNum].topicId
                        photo(pid,nextNum)
                    }
                })
                $(".photo-arrow-right").unbind("click").on("click",function(){
                    var _self=$(this)
                    if(dataArr.dataList[_self.attr("data-type")]!=undefined){
                        var nextNum=Number(_self.attr("data-type"))
                        pid=dataArr.dataList[nextNum].topicId
                        photo(pid,nextNum)
                    }
                })

                $(".photo-msg-btn").unbind("click").on("click",function(){
                    if(localStorage.token==undefined){
                        layer.closeAll()
                        setTimeout(function(){
                            loginLayer()
                        }, 300);
                        return;
                    }
                    if($(".photo-content-input").val()==''||$(".photo-content-input").val().split(" ").join("").length == 0){
                        layer.msg("請輸入要評論的內容")
                        return;
                    }
                    if(comment1!=0&&comment2!=0){
                        commentSend(myTopicId,$(".photo-content-input").val(),comment1,comment2)
                    }else if(comment1!=0&&comment2==0){
                        commentSend(myTopicId,$(".photo-content-input").val(),comment1)
                    }else if(comment1==0&&comment2==0){
                        commentSend(myTopicId,$(".photo-content-input").val())
                    }
                    
                })
                $(".good-btn").unbind("click").on("click",function(){
                    if(data.selfUp==1){
                        return;
                    }
                    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))
                            }
                        }
                    })
                })
            }
        })
        commentList(e)
    }
    function  commentSend(e,contentStr,comm,reId){
        var obj={
            "text": ""+contentStr+"",
        }
        $.ajax({
            url:$ip+'dynamic/comment/send',
            data:{
                uid:localStorage.uid,
                token:localStorage.token,
                topicId:e,
                commentId:comm,
                replyId:reId,
                content:JSON.stringify(obj),
                pageID:localStorage.canvasCode,
            },
            success:function(data){
                //console.log('發佈評論',data)
                if(data.code==1){
                    layer.msg("評論成功")
                    $(".photo-content-input").val("")
                    setTimeout(function() {
                        commentList(e)
                    },500);
                }else{
                    layer.msg(data.msg)
                    
                }
            }
        })
    }

    function commentList(e){
        $.ajax({
            url:$ip+'dynamic/comment/list',
            data:{
                topicId:e,
                pageNum:1,
                pageSize:99,
                pageID:localStorage.canvasCode,
            },
            success:function(data){
                //console.log('查看评论列表',data)
                $(".photo-content-input").val("")
                $(".photo-content-input").attr("placeholder","請輸入要評論的內容")
                setTimeout(function() {
                    comment1=0
                    comment2=0
                    var rightHeight=900-$(".photo-content-center").height()-80-75
                    $(".photo-content-right-ul").height(rightHeight)
                    if(data.commentResult.length==0){
                        $(".photo-content-right-ul").html('');
                        return;
                    }
                    var html=[];
                    for(var i=0;i<data.commentResult.length;i++){
                        var list=data.commentResult[i]
                        if(data.systemDate-list.updateTime<86400000){
                            var outTime=Math.ceil((data.systemDate-list.updateTime)/3600000)+'小時前'
                        }else{
                            var outTime=timeGet(list.updateTime)[0]+'年'+timeGet(list.updateTime)[1]+'月'+timeGet(list.updateTime)[2]+'日 '+timeGet(list.updateTime)[2]+':'+timeGet(list.updateTime)[3]
                        }
                        html+='<li>';
                        html+='<img class="photo-message-face" src="https://zhibocdn.yabolive.net/comm'+list.face.split('?')[0]+'?x-oss-process=image/resize,w_50" alt="">';
                        html+='<p class="photo-message-name">'+list.nickname+'</p>';
                        if(JSON.parse(list.content).images!=undefined){
                            html+='<p class="photo-message-content">'+JSON.parse(list.content).text+'<br><img class="small-img" src="https://zhibocdn.yabolive.net/comm'+JSON.parse(list.content).images[0].url+'?x-oss-process=image/resize,w_300"></p>';
                        }
                        else html+='<p class="photo-message-content">'+JSON.parse(list.content).text+'</p>';
                        html+='<p class="photo-message-time">'+list.remark+' <span data-type='+list.commentId+' class="Reply-btn">回復</span></p>';
                        if(list.replyResult.length!=0){
                            html+='<div class="photo-more-message">';
                            for(var j=0;j<list.replyResult.length;j++){
                                if(data.systemDate-list.replyResult[j].updateTime<86400000){
                                    var outTime2=Math.ceil((data.systemDate-list.replyResult[j].updateTime)/3600000)+'小時前'
                                }else{
                                    var outTime2=timeGet(list.replyResult[j].updateTime)[0]+'年'+timeGet(list.replyResult[j].updateTime)[1]+'月'+timeGet(list.replyResult[j].updateTime)[2]+'日 '+timeGet(list.replyResult[j].updateTime)[2]+':'+timeGet(list.replyResult[j].updateTime)[3]
                                }
                                html+='<div class="more-message-box">';
                                html+='<img class="more-message-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="more-message-content"><span>'+list.replyResult[j].nickname+'</span>回復'+list.replyResult[j].toNickname+':'+JSON.parse(list.replyResult[j].content).text+'</p>';
                                else html+='<p class="more-message-content"><span>'+list.replyResult[j].nickname+':</span> '+JSON.parse(list.replyResult[j].content).text+'</p>';
                                //插入图片
                                if(JSON.parse(list.replyResult[j].content).images!=undefined){
                                    html+='<p style="width:250px" class="photo-message-content">'+JSON.parse(list.replyResult[j].content).text+'<br><img class="small-img" src="https://zhibocdn.yabolive.net/comm'+JSON.parse(list.replyResult[j].content).images[0].url+'?x-oss-process=image/resize,w_300"></p>'
                                }
                                html+='<p class="more-message-time">'+list.replyResult[j].remark+' <span data-type='+list.commentId+' data-type2='+list.replyResult[j].commentId+' class="Reply-btn2">回復</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>';
                        }
                        html+='</li>';
                    }
                    $(".photo-content-right-ul").html(html);
                    $(".small-img").unbind("click").on("click",function(){
                        var _self=$(this)
                        if(_self.hasClass("big-img")){
                            _self.removeClass("big-img")
                        }else{
                            _self.addClass("big-img")
                        }
                    })
                    $(".Reply-btn").unbind("click").on("click",function(){
                        if(localStorage.uid==undefined){
                            layer.closeAll()
                            setTimeout(function(){
                                loginLayer()
                            }, 300);
                            return;
                        }
                        var _self=$(this);
                        comment1=_self.attr("data-type")
                        $(".photo-content-input").attr("placeholder",'回復'+_self.parent().siblings(".photo-message-name").text()+':')
                        $(".photo-content-input").val('')
                        $('.photo-content-input').focus()
                        
                    })
                    $(".Reply-btn2").unbind("click").on("click",function(){
                        if(localStorage.uid==undefined){
                            layer.closeAll()
                            setTimeout(function(){
                                loginLayer()
                            }, 300);
                            return;
                        }

                        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").val('')
                        $('.photo-content-input').focus()
                    })
                    $(".comment-more").unbind("click").on("click",function(){
                        if(localStorage.uid==undefined){
                            layer.closeAll()
                            setTimeout(function(){
                                loginLayer()
                            }, 300);
                            return;
                        }
                        _self=$(this)
                        $.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="more-message-box">';
                                    html+='<img class="more-message-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="more-message-content"><span>'+list.nickname+'</span>回復'+list.toNickname+':'+JSON.parse(list.content).text+'</p>';
                                    else html+='<p class="more-message-content"><span>'+list.nickname+':</span> '+JSON.parse(list.content).text+'</p>';
                                    html+='<p class="more-message-time">'+list.remark+' <span data-type='+_self.attr("data-type")+' data-type2='+list.commentId+' class="Reply-btn2">回復</span></p>';
                                    html+='</div>';
                                }
                                $(".more-replay").hide()
                                _self.parent().parent().html(html);
                                $(".Reply-btn2").unbind("click").on("click",function(){
                                    if(localStorage.uid==undefined){
                                        loginLayer()
                                        return;
                                    }
                                    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").val('')
                                    $('.photo-content-input').focus()
                                })
                            }
                        })
                    })
                }, 300);
                
                
            }
        })

    }

})
</script>
</html>