<style>
    .pageViewTrip {
        width: 100%;
        height: 100%;
        color: #4F5A61;
        font-size: 14px;
        
    }

    .pageViewTrip .tripContWrap {
        position: relative;
        height: 100%;
    }

    .pageViewTrip .sideBar {
        position: fixed;
        width: 250px;
        top: 0;
        height: 800px;
        padding: 15px 30px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .pageViewTrip .sideBarBtns .btnPage {
        cursor: pointer;
        height: 27px;
        margin-bottom: 5px;
    }

    .pageViewTrip .sideBar ul,
    .pageViewTrip .sideBarBtns {
        position: relative;
        z-index: 1;
    }

    .pageViewTrip .sideBarBtns .btnPage.active {
        color: #00A4A8;
    }

    .pageViewTrip .sideBarBtns .btnPage i {
        display: inline-block;
        font-size: 20px;
        width: 45px;
        vertical-align: middle;
        font-weight: bold;
    }

    .pageViewTrip .border {
        border-top: 1px #cfd2d5 solid;
        margin-top: 15px;
        height: 15px;
        max-width: 140px;
    }

    .pageViewTrip .sideBar ul {
        list-style: none;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        width: 190px;
        max-height: calc(100vh - 220px);
    }

    .pageViewTrip .sideBar ul li {
        display: block;
        line-height: 30px;
        height: 30px;
        cursor: pointer;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        -webkit-transition: all .3s ease;
        -moz-transition: all .3s ease;
        transition: all .3s ease;
    }

    .pageViewTrip .sideBar ul li i:last-child {
        display: none;
    }

    .pageViewTrip .sideBar ul li .dayIndex {
        display: inline-block;
        width: 45px;
        font-size: 16px;
        font-weight: 700;
    }

    .pageViewTrip .main {
        max-width: 480px;
        margin-left: 250px;
    }

    .tripViewContainer .inner {
        margin: 15px;
        color: #869096;
        font-size: 14px;
    }

    .slideHeader {
        color: #00A4A8;
        font-weight: 700;
        font-size: 26px;
        overflow: hidden;
        font-family: 'PingFangR';
    }

    #footer:after,
    #footer:before,
    #pageWrap:after,
    #pageWrap:before,
    .clear:after,
    .clear:before,
    .container980:after,
    .container980:before,
    .formRow:after,
    .formRow:before,
    .row:after,
    .row:before {
        display: table;
        content: " ";
        clear: both;
    }

    .tripViewContainer .cityDayList .tripDay {
        padding: 10px 0 10px 65px;
        box-sizing: border-box;
        position: relative;
        border-bottom: 1px #DCDEE0 solid;
        min-height: 60px;
    }

    .tripViewContainer .cityDayList .tripDay .left {
        position: absolute;
        left: 0;
        width: 65px;
        text-align: center;
        top: 50%;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        -moz-transform: translateY(-50%);
    }

    .tripViewContainer .cityDayList .tripDay .cities {
        font-size: 18px;
        line-height: 24px;
        min-height: 40px;
        width: 100%;
        color: #455661;
        border-left: 1px #DCDEE0 solid;
        padding: 10px 0 10px 15px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .tripViewContainer .cityDayList .tripDay .left .dayIndex {
        color: #00A4A8;
        font-size: 20px;
        font-family: 'PingFangR';
    }

    .tripViewContainer .inner .articleCont {
        min-height: 30px;
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 160%;
    }

    .articleCont p {
        margin: 16px 0;
    }

    .row {
        margin-right: -10px;
        margin-left: -10px;
    }

    .col-md-12 {
        width: 100%;
    }

    .noteSubHeader .subTitle {
        display: inline-block;
        background: #fff;
        padding-right: 10px;
        position: relative;
        z-index: 2;
    }

    .noteSubHeader {
        color: #4F5A60;
        font-weight: 500;
        font-size: 16px;
        line-height: 20px;
        margin: 25px 0 15px;
        position: relative;
    }

    .noteSubHeader:after {
        display: block;
        position: absolute;
        border-bottom: 1px #eee solid;
        width: 100%;
        z-index: 0;
    }

    .tripViewContainer .notes .col-md-6 {
        width: 100%;
    }

    .noteBriefPiece {
        padding: 10px 10px 10px 80px;
        box-sizing: border-box;
        position: relative;
        margin-bottom: 10px;
        cursor: pointer;
        border: 1px #eeeeee solid;
        color: #455661;
    }

    .col-md-1,
    .col-md-10,
    .col-md-11,
    .col-md-12,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-sm-1,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9 {
        float: left;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }

    .arrangementSubHeader,
    .noteSubHeader {
        font-weight: 500;
        font-size: 16px;
        line-height: 20px;
        margin: 25px 0 15px;
        position: relative;
    }

    .arrangementSubHeader .subTitle {
        display: inline-block;
        background: #fff;
        padding-right: 10px;
        position: relative;
        z-index: 2;
        color: #4F5A60;
    }

    .arrangementSubHeader:after {
        display: block;
        position: absolute;
        border-bottom: 1px #DBE0E4 solid;
        width: 100%;
        z-index: 0;
        bottom: 1px;
    }

    .arrangementSubHeader:after,
    .noteSubHeader:after,
    .tripMenuWrap .btnDayHeader:before {
        top: 10px;
        content: " ";
    }

    .arrangements .arrangementSubContainer {
        border: 1px solid #DBE0E4;
        border-radius: 5px;
        margin: 8px 0;
        min-height: 40px;
    }

    .arrangements .arrangementSubContainer .header {
        background-color: #EFF1F2;
        height: 34px;
        font-size: 14px;
        border-bottom: #DBE0E4 dotted 1px;
        padding: 0 10px;
        line-height: 34px;
    }

    .arrangements .arrangementSubContainer .header .dayIndex {
        color: #00B2B4;
        margin-right: 10px;
    }

    .arrangements .arrangementSubContainer .content {
        padding: 5px 8px;
    }

    .arrangements .arrangementSubContainer .content .name {
        font-size: 14px;
        color: #4F5A60;
        margin: 5px 0;
    }

    .arrangements .arrangementSubContainer .content .fromTo {
        position: relative;
        overflow: hidden;
        height: 70px;
    }

    .arrangements .arrangementSubContainer .content .fromTo .from {
        float: left;
        width: 50%;
        box-sizing: border-box;
        padding-right: 50px;
        color: #4F5A60;
    }

    .arrangements .arrangementSubContainer .content .fromTo .name {
        font-size: 14px;
    }

    .arrangements .arrangementSubContainer .content .fromTo .time {
        font-size: 10px;
    }

    .arrangements .arrangementSubContainer .content .fromTo .middle {
        position: absolute;
        text-align: center;
        width: 100%;
        top: -3px;
    }

    .arrangements .arrangementSubContainer .content .fromTo .middle .icon {
        font-size: 24px;
        color: #4F5A60;
    }

    .arrangements .arrangementSubContainer .content .fromTo .to {
        float: left;
        width: 50%;
        box-sizing: border-box;
        padding-left: 50px;
        color: #4F5A60;
    }

    .arrangements .arrangementSubContainer .content .fromTo .middle .icon {
        font-size: 30px;
        color: #4F5A60;
    }

    .transit {
        font-weight: 700;
    }

    .arrangements .arrangementSubContainer .header {
        background-color: #EFF1F2;
        height: 34px;
        font-size: 14px;
        border-bottom: #DBE0E4 dotted 1px;
        padding: 0 10px;
        line-height: 34px;
    }

    .arrangements .arrangementSubContainer .header.hotel {
        background-color: #FFF;
        display: flex;
    }

    .arrangements .arrangementSubContainer .header.hotel .city {
        color: #455661;
        font-size: 14px;
        font-weight: 700;
        margin-right: 10px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .arrangements .arrangementSubContainer .content .name.hotel {
        position: relative;
        overflow: hidden;
    }

    .arrangements .arrangementSubContainer .content .name .left {
        float: left;
        color: #00B2B4;
        font-size: 20px;
        width: 10%;
        box-sizing: border-box;
        padding-left: 3px;
    }

    .arrangements .arrangementSubContainer .content .name .right {
        margin-top: 4px;
        float: left;
        width: 90%;
        box-sizing: border-box;
    }

    .dayAgenda .slideHeader {
        padding: 18px 0 2px 80px;
    }

    .slideHeader .dayNum {
        font-size: 40px;
        font-weight: 400;
        line-height: 40px;
        position: absolute;
        left: 0;
        top: 0;
    }

    .slideHeader .dayNumRight {
        font-size: 16px;
        font-weight: 400;
        color: #4F5A61;
        margin-left: 90px;
    }

    .slideHeader .dateEleSpace {
        height: 16px;
    }

    .slideHeader .dayNumRight .cities {
        min-height: 20px;
    }

    .slideHeader .date span,
    .slideHeader .dayNumRight .cities .arrow,
    .slideHeader .dayNumRight .cities .city {
        display: inline-block;
    }

    .slideHeader .cities i {
        font-size: 14px;
        padding: 0 5px;
        display: inline-block;
        color: #00A4A8;
    }

    .tripViewContainer .inner .articleCont {
        min-height: 30px;
        margin-bottom: 20px;
    }

    .articleCont {
        font-size: 16px;
        line-height: 160%;
    }

    .slideSubHeader {
        position: relative;
        color: #00A4A8;
    }

    .slideSubHeader:after {
        content: " ";
        display: block;
        position: absolute;
        border-bottom: 1px #00B2B4 solid;
        width: 100%;
        top: 10px;
        z-index: 0;
    }

    .slideSubHeader .subTitle {
        display: inline-block;
        background: #fff;
        padding-right: 10px;
        position: relative;
        z-index: 2;
    }

    .tripViewAgendaList {
        margin-top: 30px;
    }

    .tripViewAgendaList .agendaBox {
        background: #fff;
        position: relative;
        margin-bottom: 60px;
    }

    .tripViewAgendaList .agendaBox .indexNum.hotelPre {
        background: #3D4756;
        color: #fff;
    }

    .tripViewAgendaList .agendaBox .indexNum {
        font-size: 18px;
        line-height: 40px;
        text-align: center;
        width: 40px;
        border-radius: 40px;
        position: absolute;
        top: -20px;
        left: 20px;
        z-index: 9;
    }

    .tripViewAgendaList .agendaBox .coverWrap {
        text-align: right;
        height: 150px;
        color: #fff;
        position: relative;
        background-size: cover !important;
    }

    .tripViewAgendaList .agendaBox .txtCont {
        padding: 10px 20px;
        box-shadow: rgba(0, 0, 0, .1) 0 1px 1px 0;
        white-space: unset !important;
    }

    .tripViewAgendaList .agendaBox .agendaPoi .bed {
        color: #3D4756;
        font-size: 22px;
    }

    .tripViewAgendaList .agendaBox .agendaPoi .tour {
        color: #00A4A8;
        font-size: 22px;
    }


    .tripViewAgendaList .agendaBox .txtCont .title {
        font-size: 22px;
        line-height: 24px;
        max-height: 48px;
        overflow: hidden;
        font-weight: 700;
        padding: 0 12px;
        color: #3D4756;
        font-family: 'PingFangR';
    }

    .tripViewAgendaList .agendaBox .detailBox {
        color: #626262;
        font-size: 14px;
    }

    .tripViewAgendaList .agendaBox .detailSection {
        border-top: 1px #eee solid;
        padding: 10px 0;
        margin-top: 20px;
    }

    .tripViewAgendaList .agendaBox .item {
        margin: 8px 0;
    }

    .tripViewAgendaList .agendaBox .label {
        display: inline-block;
        width: 25%;
        color: #959595;
        vertical-align: top;
        padding-right: 15px;
        text-align: right;
    }

    .tripViewAgendaList .agendaBox .purchaseNote,
    .tripViewAgendaList .agendaBox .text {
        display: -webkit-inline-box;
        width: calc(100% - 25% - 15px);
        vertical-align: top;
    }

    .subSection {
        border-top: 1px #eee solid;
        padding: 20px 0;
    }

    .tripViewAgendaList .agendaBox .table .item {
        margin: 8px 0;
    }

    .tripViewAgendaList .agendaBox .table .label {
        display: inline-block;
        width: 22%;
        color: #959595;
        vertical-align: top;
        padding-right: 15px;
        text-align: right;
    }

    .tripViewAgendaList .agendaBox .table .purchaseNote,
    .tripViewAgendaList .agendaBox .table .text {
        display: -webkit-inline-box;
        width: 72%;
        vertical-align: top;
    }

    .Divtriangle {
        position: absolute;
        left: 26px;
        bottom: -16px;
        width: 0;
        height: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 15px solid #DCDEDF;
    }

    .Divtriangle span {
        display: block;
        width: 0;
        height: 0;
        border-left: 28px solid transparent;
        border-right: 28px solid transparent;
        border-top: 28px solid #fff;
        position: absolute;
        left: -28px;
        top: -29px;
    }

    /* .xuxian{
        position: absolute;
        width:1px;
        height:30px;
        bottom:-50px;
        left:38px;
        background: url('../../assets/img/newtrip/agendaBorder.png');
        background-size:2px auto;
    } */

    .tripViewAgendaList .agendaBox .numberList {
        background: #00A4A8;
        color: #fff;
        top: -16px;
        left: 20px;
    }

    .tripViewAgendaList .agendaPoi {
        margin: 10px 0 20px 0;
    }

    .tripViewAgendaList .agendaBox .food {
        color: #00A4A8 !important;
    }

    .tripViewAgendaList .agendaBox .food1 {
        font-size: 22px !important;
    }

    .tripAgendaTransitBox {
        overflow: hidden;
        margin: 60px 0;
    }

    .tripAgendaTransitBox .transitIcon {
        float: left;
        margin: 5px 0 0 60px;
        font-size: 16px;
    }

    .tripAgendaTransitBox .transitIcon i {
        font-size: 20px;
    }

    .tripAgendaTransitBox .transitInfoTxt {
        line-height: 34px;
        position: relative;
        top: 3px;
        margin-left: 10px;
    }

    .tripViewAgendaList {
        margin-top: 30px;
        background: url(../assets/img/newtrip/agendaBorder.png) 40px top repeat-y;
        background-size: 2px auto;
    }

    .pageViewTrip .viewTripMap {
        position: fixed;
        top: 0;
        left: 730px;
        right: 0;
        height: 100%;
        /* z-index:-1; */
    }

    .cityDayList .tripDay .cities i {
        color: #00A4A8;
        margin: 0 10px;
        font-size: 18px;
    }

    .cityDayList .tripDay .cities i:last-child {
        display: none;
    }

    .tripViewAgendaList .agendaBox .txtCont {
        padding: 10px 20px;
        box-shadow: rgba(0, 0, 0, .1) 0 1px 1px 0;
        border: 1px solid #DCDEDF;
        white-space: pre-wrap;
    }

    .agendaBox .longTransitPoi .left {
        position: absolute;
        left: 7px;
        top: 50%;
        margin-top: -10px;
        font-size: 20px;
    }

    .agendIndex {
        background-color: #00A4A8;
        color: #fff;
    }

    .tripViewAgendaList .agendaBox .city {
        color: #00A4A8;
        font-size: 18px;
    }

    .agendaBox .poiName {
        font-weight: 700;
        color: #4B4E52;
        font-size: 22px;
    }

    .agendaBox .time {
        color: #8F9296;
        font-size: 14px;
    }

    .agendaBox .longTransitPoi {
        padding: 10px 10px 10px 60px;
        position: relative;
    }

    .agendaBox .longTransitMethod {
        padding: 10px 10px 10px 60px;
        position: relative;
    }

    .agendaBox .longTransitMethod .left {
        position: absolute;
        left: 0;
        top: 50%;
        margin-top: -40px;
    }

    .agendaBox .longTransitMethod .left .frame {
        position: absolute;
        font-size: 80px;
        line-height: 80px;
        height: 80px;
        z-index: 0;
        left: 1px;
        top: -60px;
        padding-top: 7px;
    }

    .agendaBox .longTransitMethod .left .method {
        position: absolute;
        z-index: 1;
        left: 0;
        top: 0;
        font-size: 18px;
        width: 36px;
        height: 86px;
        line-height: 86px;
        text-align: center;
    }

    .agendaBox .longTransitMethod .name {
        font-weight: 700;
        color: #4B4E52;
        font-size: 22px;
    }

    .agendaBox .longTransitMethod .time {
        color: #8F9296;
        font-size: 14px;
    }

    .frame i {
        font-size: 30px;
        line-height: 80px;
    }

    .pageViewTrip .active {
        color: #00A4A8 !important;
    }

    .slideHeader .cities i:last-child {
        display: none;
    }

    .tripViewAgendaList .agendaBox .showMore {
        color: #00B2B4;
        margin: 10px auto;
        padding: 4px 2px;
        border-radius: 2px;
        border: 1px solid #00B2B4;
        width: 100px;
        text-align: center;
        font-size: 12px;
        cursor: pointer;
    }

    .tripViewAgendaList .agendaBox .hideAgendaDetails {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        padding: 20px 0 0 0;
        margin-bottom: 20px;
        -webkit-box-orient: vertical;
    }

    .tripAgendaTransitBox .btnTransit {
        border: 2px #00A4A8 solid;
        color: #00A4A8;
        font-size: 16px;
        cursor: pointer;
        float: left;
        border-radius: 40px;
        padding: 6px 15px;
        margin-left: 20px;
        margin-right: 10px;
        background: #fff;
    }

    .tripViewPop {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .6);
        z-index: 201;
        position: fixed;
    }

    .tripViewPop .detailBox {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 400px;
        margin-left: -200px;
        background: #fff;
        border-radius: 5px;
        padding: 70px 0 20px;
        min-height: 140px;
        -webkit-overflow-scrolling: touch;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -webkit-box-shadow: 1px 1px 8px rgba(0, 0, 0, .16);
        -moz-box-shadow: 1px 1px 8px rgba(0, 0, 0, .16);
        box-shadow: 1px 1px 8px rgba(0, 0, 0, .16);
    }

    .tripViewPop .detailBox .btnClose {
        position: absolute;
        right: 20px;
        top: 20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        cursor: pointer;
        z-index: 2;
        color: #fff;
        border-radius: 40px;
        -webkit-box-shadow: rgba(0, 0, 0, .2) 2px 2px 6px;
        -moz-box-shadow: rgba(0, 0, 0, .2) 2px 2px 6px;
        box-shadow: rgba(0, 0, 0, .2) 2px 2px 6px;
        background: #00A4A8;
    }

    .tripViewPop .detailBox .tripViewPopCont {
        width: 100%;
        min-height: 140px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        box-sizing: border-box;
        /* padding: 0 30px; */
    }

    .slideList {
        background: #fff;
        margin: 30px 0;
        position: relative;
    }
    .Nt_downLoad{
        background-color: #00A4A8;
        width:120px;
        color:#fff;
        border:none;
        box-shadow: -1px -2px -2px 0 #00A4A8;
        border-radius:3px;
        font-size:16px;
        padding:5px;
        outline: none;
        cursor: pointer;
    }
</style>
<template>
    <div class="pageViewTrip" v-if="isShow">
        <div class="tripContWrap">
            <div class="sideBar mobileHide">
                <div class="sideBarBtns sideTop">
                    <div :class="crtnav=='tripLine'?'active':''" class="btnPage" @click="goScroll('tripLine','')">
                        <i class="iconfont icon-huozhuduanchaxunxianlu"></i>行程线路
                    </div>
                    <div :class="crtnav=='aboutTrip'?'active':''" class="btnPage" @click="goScroll('aboutTrip','')">
                        <i class="iconfont icon-message"></i>关于这次旅行
                    </div>
                    <div :class="crtnav=='tripArrange'?'active':''" class="btnPage" @click="goScroll('tripArrange','')">
                        <i class="iconfont icon-order_icon"></i>行程安排
                    </div>
                    <div class="border"></div>
                </div>
                <ul>
                    <li v-for="(item,index) in dataList.dayList" :key="index" :class="crtnav=='dayList'+(item.dayNum)?'active':''" @click="goScroll('dayList'+(item.dayNum),item.dayNum)">
                        <span class="dayIndex">D{{index+1}}</span>
                        <template v-for="(suItem,subIndex) in item.dayArray">
                            <template v-if="suItem.type==1" v-for="(childItem,childIndex) in suItem.childItem.subTraffic">
                                <template v-if="childIndex==0">
                                    <span class="city">{{childItem.startCityName}}</span>
                                    <i>-</i>
                                    <span class="city">{{childItem.arrivalCityName}}</span>
                                    <i>-</i>
                                </template>
                                <template v-else>
                                    <span class="city">{{childItem.arrivalCityName}}</span>
                                    <i class="iconfont icon-daoda icon"></i>
                                </template>
                            </template>
                        </template>
                    </li>
                </ul>
                <div class="border"></div>
                <input type="button" @click="downLoadTrip()" class="Nt_downLoad" style="display:none;" value="行程下载" />
            </div>
            <div class="tripViewContainer main ">
                <div class="slideList" id="tripLine">
                    <div class="inner">
                        <div class="slideHeader">行程路线</div>
                        <div>
                            <div class="cityDayList clear">
                                <div class="tripDay" v-for="(item,index) in dataList.dayList" :key="index">
                                    <div class="left">
                                        <div class="dayIndex">D{{index+1}}</div>
                                    </div>
                                    <div class="cities">
                                        <template v-for="suItem in item.dayArray">
                                            <template v-if="suItem.type==1" v-for="(childItem,childIndex) in suItem.childItem.subTraffic">
                                                <template v-if="childIndex==0">
                                                    <span class="city">{{childItem.startCityName}}</span>
                                                    <i class="iconfont icon-daoda icon"></i>
                                                    <span class="city">{{childItem.arrivalCityName}}</span>
                                                    <i class="iconfont icon-daoda icon"></i>
                                                </template>
                                                <template v-else>
                                                    <span class="city">{{childItem.arrivalCityName}}</span>
                                                    <i class="iconfont icon-daoda icon"></i>
                                                </template>
                                            </template>
                                        </template>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="slideList" id="aboutTrip">
                    <div class="inner">
                        <div class="slideHeader">关于这次旅行</div>
                        <div class="articleCont articleTxt">
                            <p>旅游并不一定是舟车劳顿的代名词</p>
                            <p>为了是挣脱都会丛林中污浊的空气</p>
                            <p>还是杂乱的交通</p>
                            <p>或者是拥挤的人群</p>
                            <p>寻求一丝自我的空间</p>
                            <p>您的梦想即将实现</p>
                            <p>就让我们为您实现一次精彩的旅行</p>
                        </div>
                    </div>
                </div>
                <div class="slideList" id="tripArrange">
                    <div class="inner slideQuote">
                        <div class="slideHeader">行程安排</div>
                        <div class="arrangements">
                            <div class="row">
                                <div class="col-md-12 arrangementHeader">
                                    <div class="arrangementSubHeader">
                                        <span class="subTitle">交通方案</span>
                                    </div>
                                </div>
                                <div class="col-md-12 col-sm-12" v-if="dataList.currentPriceInfo&&dataList.currentPriceInfo.priceFlight&&dataList.currentPriceInfo.priceFlight.length>0">
                                    <template v-for="(item,index) in dataList.currentPriceInfo.priceFlight">
                                        <div class="arrangementSubContainer" :key="index">
                                            <div class="header">
                                                <span class="dayIndex">{{item.startDate}}</span>
                                            </div>
                                            <div class="content">
                                                <div class="name transit">{{item.flightNumber}}</div>
                                                <div class="fromTo">
                                                    <div class="from">
                                                        <div class="name">{{item.departureAirPortName}}</div>
                                                        <div class="time">出发时间 {{item.departureTime}}</div>
                                                    </div>
                                                    <div class="middle">
                                                        <div>
                                                            <i class="iconfont icon-daoda icon"></i>
                                                        </div>
                                                    </div>
                                                    <div class="to">
                                                        <div class="name">{{item.arrivalAirPortName}}</div>
                                                        <div class="time">到达时间 {{item.arrivalTime}}</div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </template>
                                </div>
                            </div>
                        </div>
                        <div class="arrangements">
                            <div class="row">
                                <div class="col-md-12 arrangementHeader">
                                    <div class="arrangementSubHeader">
                                        <span class="subTitle">酒店安排</span>
                                    </div>
                                    <template v-for="(item,index) in dataList.dayList">
                                        <div class="col-md-12 col-sm-12">
                                            <div class="arrangementSubContainer">
                                                <div class="header hotel">
                                                    <span class="dayIndex">D{{item.dayNum}}</span>
                                                    <div class="city">
                                                        <span>
                                                            <template v-for="(subItem,subIndex) in getHotelArray(item.dayArray)" v-if="subIndex==0">
                                                                {{subItem.childItem.cityName}}
                                                            </template>
                                                        </span>
                                                    </div>
                                                </div>
                                                <div class="content">
                                                    <template v-for="(subItem,subIndex) in item.dayArray" v-if="subItem.type==3">
                                                        <div class="name hotel">
                                                            <span class="left">
                                                                <i class="iconfont icon-bed"></i>
                                                            </span>
                                                            <span class="right">
                                                                <template v-if="subItem.childItem.newHotelName!=''">{{subItem.childItem.newHotelName}}</template>
                                                                <template v-else>{{subItem.childItem.hotelName}}</template>
                                                            </span>
                                                        </div>
                                                    </template>
                                                </div>
                                            </div>

                                        </div>
                                    </template>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="slideList" v-for="(item,index) in dataList.dayList" :id="'dayList'+(index+1)" :key="index">
                    <div class="inner">
                        <div class="slideHeader" style="position:relative;">
                            <div class="dayNum">D{{index+1}}</div>
                            <div class="dayNumRight">
                                <div class="dateEleSpace"></div>
                                <div class="cities">
                                    <template v-for="suItem in item.dayArray">
                                        <template v-if="suItem.type==1" v-for="(childItem,childIndex) in suItem.childItem.subTraffic">
                                            <template v-if="childIndex==0">
                                                <span class="city">{{childItem.startCityName}}</span>
                                                <i class="iconfont icon-daoda icon"></i>
                                                <span class="city">{{childItem.arrivalCityName}}</span>
                                                <i class="iconfont icon-daoda icon"></i>
                                            </template>
                                            <template v-else>
                                                <span class="city">{{childItem.arrivalCityName}}</span>
                                                <i class="iconfont icon-daoda icon"></i>
                                            </template>
                                        </template>
                                    </template>
                                </div>
                            </div>
                        </div>
                        <div class="articleCont articleTxt">
                            <p>今日推荐：</p>
                            <template v-for="(subItem,subIndex) in item.dayArray" v-if="subItem.type==7">
                                <p :key="subIndex">{{subItem.childItem.title}}</p>
                            </template>
                        </div>
                        <div class="articleCont articleTxt" v-if="dataList.warmTipList[index].description!=''">
                            <p>温馨提示：</p>
                            <div v-html="dataList.warmTipList[index].description"></div>
                        </div>
                        <div class="agendaSection">
                            <div class="slideSubHeader">
                                <span class="subTitle">D{{index+1}} 日程安排</span>
                            </div>
                            <div class="tripViewAgendaList">
                                <template v-for="subItem in item.dayArray">
                                    <template v-if="subItem.type==2">
                                        <div class="agendaBox">
                                            <div class="indexNum numberList">{{index+1}}</div>
                                            <div class="coverWrap" :style="`background: url(${subItem.childItem.imaArray[0].url}) center`" @click="bigImgShow(subItem.childItem.imaArray[0].url)">
                                            </div>
                                            <div class="txtCont icon-triangle">
                                                <div class="agendaPoi">
                                                    <i class="iconfont icon-jingdianjingguan tour"></i>
                                                    <span class="title" style="color:#00A4A8;">{{subItem.childItem.couponsName}}</span>
                                                </div>
                                                <div class="detailBox">
                                                    <div style="border-top:0;margin:20px 0;" v-html='subItem.childItem.descriptionText'></div>
                                                </div>
                                                <div class="Divtriangle">
                                                    <span></span>
                                                </div>
                                                <div class="detailSection" style="margin-top:0;" v-if="subItem.childItem.playTimeHour||subItem.childItem.playTimeMinutes">
                                                    <div class="item">
                                                        <span class="label">建议游玩时间</span>
                                                        <span class="text">
                                                            约<template v-if="subItem.childItem.playTimeHour">{{subItem.childItem.playTimeHour}}小时</template><template v-if="subItem.childItem.playTimeMinutes">{{subItem.childItem.playTimeMinutes}}分钟</template>
                                                        </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <template v-if="subItem.childItem.trafficType==1">
                                            <div class="tripAgendaTransitBox">
                                                <div class="transitIcon">
                                                    <i class="iconfont icon-feiji2"></i>飞机
                                                </div>
                                            </div>
                                        </template>
                                        <template v-if="subItem.childItem.trafficType==2">
                                            <div class="tripAgendaTransitBox">
                                                <div class="transitIcon">
                                                    <i class="iconfont icon-icon-" style="font-size:25px;"></i>专车
                                                </div>
                                            </div>
                                        </template>
                                        <template v-if="subItem.childItem.trafficType==3">
                                            <div class="tripAgendaTransitBox">
                                                <div class="btnTransit" @click="getSubWay(subItem.childItem.trafficImage)">
                                                    <i class="iconfont icon-subway" style="margin-right:10px;font-size:18px;"></i>查看交通详情
                                                </div>
                                                <div class="transitIcon" style="margin-left:0;">
                                                    <span>地铁</span>
                                                </div>
                                            </div>
                                        </template>
                                        <template v-if="subItem.childItem.trafficType==4">
                                            <div class="tripAgendaTransitBox">
                                                <div class="transitIcon">
                                                    <i class="iconfont icon-walking"></i>
                                                    {{subItem.childItem.trafficContent}}
                                                </div>
                                            </div>
                                        </template>

                                    </template>
                                    <template v-if="subItem.type==3">
                                        <div class="agendaBox">
                                            <div class="indexNum tos-icon hotelPre  ">
                                                <i class="iconfont icon-moono"></i>
                                            </div>
                                            <div class="coverWrap" v-if="subItem.childItem.imaArray.length>0" @click="bigImgShow(subItem.childItem.imaArray[0].url)"
                                                :style="`background: url(${subItem.childItem.imaArray[0].url}) center`">
                                            </div>
                                            <div class="txtCont icon-triangle">
                                                <div class="agendaPoi">
                                                    <i class="iconfont icon-bed bed"></i>
                                                    <span class="title">
                                                        <template v-if="subItem.childItem.newHotelName">{{subItem.childItem.newHotelName}}</template>
                                                        <template v-else>{{subItem.childItem.hotelName}}</template>
                                                    </span>
                                                </div>
                                                <div class="detailBox">
                                                    <div class="detailSection" v-if="subItem.childItem.isShow">
                                                        <div class="item">
                                                            <span class="label">酒店星级</span>
                                                            <span class="text">
                                                                <!-- <el-rate v-model="subItem.childItem.star" disabled></el-rate> -->
                                                                <q-rating
                                                                    v-model="subItem.childItem.star"
                                                                    :max="subItem.childItem.star"
                                                                    size="1em"
                                                                    color="orange"
                                                                    readonly
                                                                    class="q-pl-sm"
                                                                />
                                                            </span>
                                                        </div>
                                                        <div class="item" v-if="getService(subItem.childItem.facilityServices)!=''">
                                                            <span class="label">设施服务</span>
                                                            <span class="text">{{getService(subItem.childItem.facilityServices)}}</span>
                                                        </div>
                                                    </div>
                                                    <div class="subSection" :class="{'hideAgendaDetails':!subItem.childItem.isShow}" v-if="subItem.childItem.hotelNewDescriptionText"
                                                        v-html="subItem.childItem.hotelNewDescriptionText">
                                                    </div>
                                                    <div class="detailSection" style="margin-top:0;" v-if="subItem.childItem.isShow">
                                                        <div class="item" v-if="subItem.childItem.hotelAddress!=''">
                                                            <span class="label">地址</span>
                                                            <span class="text">{{subItem.childItem.hotelAddress}}</span>
                                                        </div>
                                                        <div class="item" v-if="subItem.childItem.url!=''">
                                                            <span class="label">网址</span>
                                                            <span class="text">{{subItem.childItem.url}}</span>
                                                        </div>
                                                    </div>
                                                    <div class="showMore" @click="getShowMore(subItem.childItem)">{{subItem.childItem.isShow==true?'点我收起':'点我展开详情'}}</div>
                                                </div>
                                                <div class="Divtriangle">
                                                    <span></span>
                                                </div>
                                            </div>
                                        </div>
                                    </template>
                                </template>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="viewTripMap">
                <tripMap :locationArray="travelLngLat" :type="showType" ref="tripMap" v-if="showMapType==2"></tripMap>
                <tripBaiDuMap :locationArray="travelLngLat" :type="showType" ref="tripMap" v-if="showMapType==1"></tripBaiDuMap>
            </div>
            <div class="tripViewPop" v-if="showSubwayDiv">
                <div class="detailBox">
                    <div class="btnClose icon-close" @click="showSubwayDiv=false">×</div>
                    <div class="tripViewPopCont">
                        <div class="detailHtml">
                            <img :src="subWaySrc" alt="">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <viewer style="display:none" :images="images" :options='imageOptions' @inited="inited" class="viewer" ref="viewer">
            <img v-for="(item,index) in images" :src="item" :key="index+8000" class="12312312">
        </viewer>
    </div>
</template>
<script>
    import tripMap from '../components/common/tripMap.vue'
    import tripBaiDuMap from '../components/common/tripBaiduMap.vue'
    export default {
        data() {
            return {
                defaultImg: 'this.src="' + require('../assets/img/newtrip/hotel.jpg') + '"',
                travelLngLat: [],
                showType: 1, //显示类型(1-所有的，2-每天的)
                showMapType:0,
                //请求参数
                msg: {
                    ID: 0,
                    tcid: 0,
                    pType: 1,//类型 1 来源B2C
                    newConfigId: 0,//列表里的configId
                },
                dataList: {},
                scrollobj: null,
                crtnav: '',
                isShow: false,
                dataindex: 0,
                images: [],
                imageOptions: {
                    navbar: false,
                    title: false
                },
                FlightList: [],
                StartData: "",
                showSubwayDiv: false,
                subWaySrc: '',
                TitleName:'',
                navs:[{
                    id:'tripLine',
                    offsetTop:0
                },{
                    id:'aboutTrip',
                    offsetTop:0
                },{
                    id:'tripArrange',
                    offsetTop:0
                }]
            }
        },
        mounted() {
            this.msg.ID = this.$route.query.ID;
            this.msg.tcid = this.$route.query.tcid;
            this.msg.newConfigId = this.$route.query.ConfigId;
            this.crtnav = 'tripLine';
            
            this.getTrip();

            if(!this.$q.platform.is.desktop){
                this.$router.push({
                        path: '/tripMobile',
                        query: {
                            ID: decodeURIComponent(this.msg.ID),
                            tcid: decodeURIComponent(this.msg.tcid),
                            newConfigId: decodeURIComponent(this.msg.newConfigId)
                        }
                    });
            }
            this.isInChina()
        },
        components: {
            tripMap,
            tripBaiDuMap
        },
        watch: {
            //滚动检测day滚动
            dataindex(newValue, old) {
                this.getDayPoint(this.dataindex);
            },
            //滚动检测头部三个
            crtnav(newValue, old) {
                if (newValue == 'tripLine' || newValue == 'aboutTrip' || newValue == 'tripArrange') {
                    this.getAllPoint();
                }
            }
        },
        methods: {
            isInChina() {
                let that=this
                var url = '//graph.facebook.com/feed?callback=h';
                var xhr = new XMLHttpRequest();
                var called = false;
                xhr.open('GET', url);
                xhr.onreadystatechange = function() {
                    if (xhr.readyState === 4 && xhr.status === 200) {
                        called = true;
                        that.countryCb(false);
                    }
                };
                xhr.send();
                // timeout 1s, this facebook API is very fast.
                setTimeout(function() {
                    if (!called) {
                        xhr.abort();
                        that.countryCb(true);
                    }
                }, 1000);
            },
            countryCb(r){
                this.showMapType = r? 1:2
            },
            inited(viewer) {
                this.$viewer = viewer;
            },
            bigImgShow(url) {
                let index = this.images.indexOf(url);
                if (this.images.length > 0) {
                    this.$viewer.view(index)
                    this.$viewer.show();
                }
            },
            //加载数据
            getTrip() {
                this.$q.loading.show()
                this.apipost('b2b_get_GetB2BTravelInfoV1', this.msg, res => {
                    this.$q.loading.hide()
                    if (res.data.resultCode == 1) {
                        this.dataList = res.data.data;
                        this.TitleName = this.dataList.lineName+''+this.dataList.ltName;
                        if (res.data.data.currentPriceInfo && res.data.data.currentPriceInfo.priceFlight) {
                            this.FlightList = res.data.data.currentPriceInfo.priceFlight;
                        }
                        if (res.data.data.currentPriceInfo && res.data.data.currentPriceInfo.startDate) {
                            this.StartData = res.data.data.currentPriceInfo.startDate;
                        }

                        this.isShow = true;
                        if(this.$q.platform.is.desktop){
                            this.$nextTick(()=>{
                                this.scrollobj = document.body;
                                
                                window.addEventListener('scroll', this.handleScroll);
                                this.initLeftDoomHandler()
                            })
                        }
                        
                        this.getAllPoint();
                        //装载景点酒店图片以供预览
                        this.images = [];
                        this.dataList.dayList.forEach(x => {
                            x.dayArray.forEach(y => {
                                if (y.type == 2 || y.type == 3) {
                                    if (y.childItem.imaArray.length > 0) {
                                        this.images.push(y.childItem.imaArray[0].url);
                                    }
                                    y.childItem.isShow = false;
                                }
                            })
                        })
                    } else {
                        this.Error(res.data.message)
                    }
                }, null)
            },
            //遍历设施服务
            getService(item) {
                let Obj = JSON.parse(item);
                let str = ''
                Obj[0].checked.forEach(ckItem => {
                    Obj[0].list.forEach(x => {
                        if (ckItem == x.ID) {
                            str += x.Content + '  '
                        }
                    });
                })
                return str;
            },
            //滚动定位
            goScroll(id, dayNum) {
                if (id == 'tripLine' || id == 'aboutTrip' || id == 'tripArrange') {
                    this.$refs.tripMap.mapBuild();
                }
                if (Number(dayNum) >= 0) {
                    this.getDayPoint(dayNum);
                    this.$refs.tripMap.mapBuild();
                }
                this.crtnav = id;
                console.log(document.getElementById(id).offsetTop)
                document.documentElement.scrollTop = document.getElementById(id).offsetTop;
            },
            addDate(date, days) {
                if (days == 0) {
                    return date;
                }
                var date = new Date(date);
                date.setDate(date.getDate() + days);
                var month = date.getMonth() + 1;
                var day = date.getDate();
                return date.getFullYear() + '-' + this.getFormatDate(month) + '-' + this.getFormatDate(day);
            },
            // 日期月份/天的显示，如果是1位数，则在前面加上'0'
            getFormatDate(arg) {
                if (arg == undefined || arg == '') {
                    return '';
                }
                var re = arg + '';
                if (re.length < 2) {
                    re = '0' + re;
                }
                return re;
            },
            //加载所有坐标点
            getAllPoint() {
                let Arr = [];
                if (this.dataList && this.dataList.dayList && this.dataList.dayList.length > 0) {
                    this.dataList.dayList.forEach(x => {
                        x.dayArray.forEach(y => {
                            if (y.type == 1) {
                                y.childItem.subTraffic.forEach(z => {
                                    let obj1 = {
                                        lat: z.startCityPoint[1],
                                        lng: z.startCityPoint[0],
                                        name: z.startCityName,
                                        type: 1,
                                        isFly: 0,
                                        trafficType: 0,
                                    }
                                    let obj2 = {
                                        lat: z.arrivalCityPoint[1],
                                        lng: z.arrivalCityPoint[0],
                                        name: z.arrivalCityName,
                                        type: 1,
                                        isFly: 0,
                                        trafficType: 0,
                                    }
                                    Arr.push(obj1);
                                    Arr.push(obj2);
                                })
                            }
                        })
                    });
                    this.travelLngLat = Arr;
                    this.showType = 1;
                }
            },
            //加载当日坐标点
            getDayPoint(dayNum) {
                let Arr = [];
                this.showType = 2;
                if (this.dataList && this.dataList.dayList && this.dataList.dayList.length > 0) {
                    var startTrafficArray = [];
                    var arrivalTrafficArray = [];
                    var hotelArray = [];
                    var scenicArray = [];
                    var YesterdayObj = {}; //前一天
                    var YesterdayHotelArray = [];
                    this.dataList.dayList.forEach((item, index) => {
                        if (item.dayNum == dayNum) {
                            item.dayArray.forEach(x => {
                                if (x.type == 1) {
                                    x.childItem.subTraffic.forEach(z => {
                                        let obj1 = {
                                            lat: z.startCityPoint[1],
                                            lng: z.startCityPoint[0],
                                            name: z.startCityName,
                                            type: 1,
                                            trafficType: x.childItem.trafficIntroduce
                                                .trafficType
                                        }
                                        let obj2 = {
                                            lat: z.arrivalCityPoint[1],
                                            lng: z.arrivalCityPoint[0],
                                            name: z.arrivalCityName,
                                            type: 1,
                                            trafficType: x.childItem.trafficIntroduce
                                                .trafficType
                                        }
                                        startTrafficArray.push(obj1);
                                        arrivalTrafficArray.push(obj2);
                                    })
                                }
                                //放入景点
                                var tempScenicArray = this.getItemArray(item, 2);
                                if (tempScenicArray && tempScenicArray.length > 0) {
                                    scenicArray.push(...tempScenicArray);
                                }
                                //放入住宿
                                var tempHotelArray = this.getItemArray(item, 3);
                                if (tempHotelArray && tempHotelArray.length > 0) {
                                    hotelArray.push(...tempHotelArray);
                                }
                            });

                            if (item.dayNum > 1) {
                                YesterdayObj = this.dataList.dayList[index - 1];
                                //放入住宿
                                var tempHotelArray = this.getItemArray(YesterdayObj, 3);
                                if (tempHotelArray && tempHotelArray.length > 0) {
                                    YesterdayHotelArray.push(...tempHotelArray);
                                }
                            }
                        }
                    })
                    var newDayNum = dayNum - 1;
                    var newDate = this.addDate(this.StartData, newDayNum);
                    //第一天国内出发
                    if (dayNum == 1) {
                        if (this.FlightList && this.FlightList.length > 0) {
                            var trafficType = 0;
                            if (startTrafficArray && startTrafficArray.length > 0) {
                                trafficType = startTrafficArray[0].trafficType;
                            }
                            this.FlightList.forEach(subItem => {
                                if (subItem.startDate == newDate) {
                                    Arr.push({
                                        lat: subItem.dLat,
                                        lng: subItem.dLng,
                                        name: subItem.departureAirPortName,
                                        type: 1,
                                        isFly: 1,
                                        trafficType: trafficType
                                    });
                                    Arr.push({
                                        lat: subItem.aLat,
                                        lng: subItem.aLng,
                                        name: subItem.arrivalAirPortName,
                                        type: 1,
                                        isFly: 1,
                                        trafficType: trafficType
                                    })
                                }
                            });
                        } else {
                            if (startTrafficArray && startTrafficArray.length > 0) {
                                Arr.push(...startTrafficArray);
                            }
                        }
                    }
                    //从酒店出发
                    else {
                        if (YesterdayHotelArray && YesterdayHotelArray.length > 0) {
                            YesterdayHotelArray.forEach((hItem, hIndex) => {
                                if (hIndex == 0) {
                                    Arr.push({
                                        lat: hItem.lat,
                                        lng: hItem.lng,
                                        name: hItem.name,
                                        type: 1,
                                        isFly: 0,
                                        trafficType: 0,
                                    })
                                }
                            });
                        }
                        //最后一天 
                        if (dayNum == this.dataList.dayList[this.dataList.dayList.length - 1].dayNum) {
                            if (this.FlightList && this.FlightList.length > 0) {
                                this.FlightList.forEach(subItem => {
                                    if (subItem.startDate == newDate) {
                                        Arr.push({
                                            lat: subItem.dLat,
                                            lng: subItem.dLng,
                                            name: subItem.departureAirPortName,
                                            type: 1,
                                            isFly: 1
                                        });
                                        Arr.push({
                                            lat: subItem.aLat,
                                            lng: subItem.aLng,
                                            name: subItem.arrivalAirPortName,
                                            type: 1,
                                            isFly: 1
                                        })
                                    }
                                });
                            } else {
                                Arr.push(...startTrafficArray);
                            }
                        }
                    }

                    if (scenicArray && scenicArray.length > 0) {
                        Arr.push(...scenicArray)
                    }
                    //只取第一个酒店
                    if (hotelArray && hotelArray.length > 0) {
                        hotelArray.forEach((hItem, hIndex) => {
                            if (hIndex == 0) {
                                Arr.push(hItem)
                            }
                        })
                    }
                    this.travelLngLat = Arr;
                }
            },
            getItemArray(item, type) {
                var newArray = [];
                item.dayArray.forEach(x => {
                    //放入景点
                    if (x.type == type && type == 2) {
                        if (x.childItem.pointArray && x.childItem.pointArray.length > 0 && x
                            .childItem.pointArray[1] != '' && x.childItem.pointArray[0] !=
                            "") {
                            let obj3 = {
                                lat: x.childItem.pointArray[1],
                                lng: x.childItem.pointArray[0],
                                name: x.childItem.couponsName,
                                type: 2,
                                trafficType: x.childItem.trafficType,
                            }
                            newArray.push(obj3);
                        }
                    }
                    //放入住宿
                    if (x.type == type && type == 3) {
                        let obj4 = {
                            lat: x.childItem.pointArray[1],
                            lng: x.childItem.pointArray[0],
                            name: '',
                            type: 3,
                            trafficType: 2
                        }
                        if (x.childItem.newHotelName && x.childItem.newHotelName != '') {
                            obj4.name = x.childItem.newHotelName;
                        } else {
                            obj4.name = x.childItem.hotelName;
                        }
                        newArray.push(obj4);
                    }
                })
                return newArray;
            },
            getHotelArray(hotelArray) {
                var newArray = [];
                if (hotelArray != null && hotelArray.length > 0) {
                    hotelArray.forEach(item => {
                        if (item.type == 3) {
                            newArray.push(item);
                        }
                    })
                }
                return newArray;
            },
            initLeftDoomHandler(){
                this.dataList.dayList.forEach((x, index) => {
                    this.navs.push({
                        id:'dayList' + x.dayNum,
                        offsetTop:0
                    })
                })
                this.navs.forEach(x=>{
                    x.offsetTop=document.querySelector("#"+x.id).offsetTop
                })
                this.navs = this.navs.sort((a,b)=>b.offsetTop-a.offsetTop)
            },
            //滚动选中
            handleScroll() {
                let top=document.documentElement.scrollTop
                try {
                    this.crtnav = this.navs.find(x=>x.offsetTop<=top).id
                    if (this.crtnav.indexOf("dayList") != -1) {
                        let index = this.crtnav.split('dayList')[1];
                        this.dataindex = index;
                    }
                } catch (error) {
                    console.log("地图报错了：",error.message)
                }
                // console.log(this.crtnav,this.navs,top)
               
                //滚动条到底了
                if (this.scrollobj.scrollHeight - top == this.scrollobj.clientHeight) {
                    var lastChecked = this.navs[0].id //navs.pop();
                    if (lastChecked.indexOf("dayList") != -1) {
                        this.crtnav = lastChecked;
                    }
                }
            },
            //隐藏显示
            getShowMore(item) {
                item.isShow = !item.isShow;
                this.$forceUpdate();
            },
            //查看
            getSubWay(url) {
                this.showSubwayDiv = true;
                this.subWaySrc = url;
            },
            //行程下载
            downLoadTrip() {
                var fileName=this.TitleName;
                this.$q.loading.show()
                let urlObj = this.domainManager();
                let msg = {
                    tcid:  this.$route.query.tcid,
                    //用户Id
                    // UId: this.getLocalStorage().EmployeeId
                    UId:0
                };
                this.$http({
                    headers: {
                        'Content-Type': 'application/json'
                    },
                    method: 'post',
                    url: urlObj.DomainUrl + '/api/file/GetB2CWebHtmlToPdf',
                    data: {
                        "msg": msg
                    }
                }).then(res => {
                    if (res.data.resultCode === 1) {
                        const a = document.createElement('a');
                        a.setAttribute('download', '');
                        a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' +
                            fileName +
                            '.pdf&&fPath=' + res.data.data);
                        a.click();
                    } else {
                        this.$message.error('PDF获取失败');
                    }
                    this.$q.loading.hide()
                }).catch(err => {

                })
            }
        }
    }
</script>