<style>
.flightPlanInfo .flightPlanInfo_list {
  padding: 20px 0;
}
.flightPlanInfo .flightPlanInfo_list > li {
  float: left;
  height: 180px;
  width: 300px;
  margin: 0 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 1);
  -webkit-box-shadow: 0px 0px 20px rgba(191, 191, 191, 1);
  box-shadow: 0px 0px 20px rgba(191, 191, 191, 1);
}
.flightPlanInfo .flightPlanInfo_list > li > div {
  height: 180px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.flightPlanInfo .flightPlanInfo_list > li .hl_img {
  width: 100%;
  height: 100%;
  filter: blur(10px);
  position: absolute;
}
.flightPlanInfo .hl_top {
  color: #ffffff;
}
.flightPlanInfo .hl_tit {
  width: 230px;
  font-size: 14px;
  position: absolute;
  left: 10px;
  top: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: underline;
  cursor: pointer;
}
.flightPlanInfo .hl_radius {
  width: 200px;
  height: 60px;
  background-color: #ffffff;
  border: solid 4px rgba(193, 193, 193, 2);
  box-shadow: 0px 0px 20px rgba(191, 191, 191, 1);
  line-height: 55px;
  border-radius: 4px;
  font-size: 18px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  text-align: center;
  font-size: 15px;
}
.flightPlanInfo .hl_row {
  width: 80%;
  height: 30px;
  background: rgba(23, 21, 26, 0.2);
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  font-size: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
}
.flightPlanInfo .hl_row > li {
  list-style: disc;
}
.flightPlanInfo .flightPlanInfo_info {
  padding: 0 65px;
}
.flightPlanInfo .flightPlanInfo_info .hl_info {
  color: #333333;
  color: 16px;
}
.flightPlanInfo .flightPlanInfo_info .hl_info span {
  color: #666666;
}
.flightPlanInfo .hl_flight {
  padding-top: 20px;
}
.flightPlanInfo .hl_flight li {
  display: flex;
  align-items: center;
}
.flightPlanInfo ._go {
  display: inline-block;
  height: 20px;
  width: 20px;
  background-color: #ff7862;
  color: white;
  font-size: 14px;
  text-align: center;
  line-height: 20px;
  border-radius: 4px;
  margin-right: 10px;
}
.flightPlanInfo ._textB14 {
  color: #333333;
  font-size: 14px;
}
.flightPlanInfo ._timeCity {
  margin: 15px 49px;
}
.flightPlanInfo ._time {
  color: #666666;
  font-size: 18px;
  font-weight: 700;
}
.flightPlanInfo ._city {
  color: #ff7862;
  font-size: 14px;
  text-align: center;
}
.flightPlanInfo ._line {
  display: flex;
  align-items: center;
}
.flightPlanInfo ._line span {
  display: inline-block;
  width: 50px;
  height: 2px;
  background-color: #ff7862;
}
.flightPlanInfo ._line span._lr {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: solid 2px #ff7862;
  background-color: white;
}
.flightPlanInfo ._flight_num,
._flight_name {
  color: #999999;
  font-size: 14px;
  font-weight: 700;
  margin-left: 15px;
}
.flightPlanInfo ._flight_name {
  font-weight: lighter;
}
.flightPlanInfo ._margintop30 {
  margin-top: 30px;
}
.flightPlanInfo ._details {
  margin-left: 20px;
  padding-top: 20px;
}
.flightPlanInfo ._details > li {
  border-left: 1px solid #e9e9e9;
  position: relative;
  padding-bottom: 15px;
  padding-left: 40px;
  padding-top: 15px;
}
.flightPlanInfo ._d_radius {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  left: -20px;
  top: 0px;
  background-color: #e95252;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  color: white;
  font-weight: 700;
}
.flightPlanInfo ._Itinerary {
  color: #333333;
  font-size: 18px;
  display: flex;
  align-items: center;
}
.flightPlanInfo ._Itinerary .iconfont {
  color: #666666;
}
.flightPlanInfo ._d_city,
._d_time {
  display: inline-block;
  padding: 0 20px;
}
.flightPlanInfo ._d_time {
  padding: 0 10px 0 0;
}
.flightPlanInfo ._d_info {
  color: #666666;
  font-size: 14px;
  line-height: 22px;
  padding-top: 16px;
}
.flightPlanInfo ._food_hotel {
  padding-top: 25px;
}
.flightPlanInfo ._food_hotel ._food,
._hotel {
  float: left;
  width: 50%;
}
.flightPlanInfo ._food_hotel .iconfont::before {
  font-size: 18px;
  color: #07a767;
}
.flightPlanInfo ._food_hotel ._hotel .iconfont::before {
  color: #2595ee;
}
.flightPlanInfo ._fh_tit {
  font-size: 16px;
}
.flightPlanInfo ._fist {
  padding-bottom: 10px;
}
.flightPlanInfo ._meidonfxi {
  text-align: center;
  padding: 25px 0;
}
.flightPlanInfo ._meidonfxi .iconfont {
  display: block;
  font-size: 50px;
  color: #d6d6d6;
}
.flightPlanInfo ._meidonfxi p {
  color: #999999;
  font-size: 14px;
}
.flightPlanInfo .el-dialog__header .el-dialog__title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
  margin: 0 auto;
}
.flightPlanInfo .leaderName {
  position: relative;
  top: -10px;
  left: 5px;
}
.flightPlanInfo .headerImg {
  width: 34px;
  height: 34px;
  border-radius: 34px;
  display: inline-block;
}
.flightPlanInfo .headerImg img {
  width: 100%;
}
.flightPlanInfo .grayLi img {
  -webkit-filter: grayscale(1) blur(10px) !important;
}
.flightPlanInfo .flightTitle {
  padding: 3px 10px;
  background-color: #e3e3e3;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  margin: 30px 0 10px 20px;
  font-size: 14px;
  color: #333333;
  line-height: 44px;
  text-align: center;
}
.flightPlanInfo .cityName {
  font-size: 20px;
  font-family: PingFangSC-Semibold, sans-serif;
}
.flightPlanInfo .icon-img_plane {
  font-size: 12px;
  color: #2aaef2;
  position: absolute;
  left: 158px;
  top: -8px;
  -webkit-transform: scale(0.8);
}
.flightPlanInfo .flightLine {
  color: #b7b7b7;
  display: inline-block;
  padding: 0 10px;
}
.flightPlanInfo .fLine {
  float: left;
}
.flightPlanInfo .planeTwo {
  left: 85px;
}
.flightPlanInfo .stName {
  display: inline-block;
  width: 60px;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  float: left;
}
</style>
<template>
     <div class="flexOne flightPlanInfo">
       <span class="flightTitle">
           {{$t('objFill.v101.weilaisangey')}}：<span class="cityName">{{StartCityName}}</span><span class="flightLine">----------</span><span class="cityName">{{ArriveCityName}}</span>
           <i class="iconfont icon-img_plane"></i>
       </span>
       <ul class="flightPlanInfo_list clearfix">
            <li v-for="(item,index) in dataList"  @click="getJourney(item.TCID,item.Title)" :key="index" :class="{'grayLi':item.TCType==3}">
                <div class="hl_top">
                    <img class="hl_img" src="../../assets/img/shoppingstore.jpg">
                    <el-tooltip class="item" effect="dark" :content="item.Title" placement="top-start" popper-class="max-w250">
                         <p class="hl_tit">{{item.Title}}</p>
                    </el-tooltip>
                    <div class="hl_radius">
                        <el-tooltip class="item" effect="dark" :content="item.StartCityName" placement="top-start" popper-class="max-w250">
                            <span class="stName">{{item.StartCityName}}</span>
                        </el-tooltip>
                        <span class="fLine">---------</span>
                        <el-tooltip class="item" effect="dark" :content="item.ArriveCityName" placement="top-start" popper-class="max-w250">
                            <span class="stName">{{item.ArriveCityName}}</span>
                        </el-tooltip>
                        <i class="iconfont icon-img_plane planeTwo"></i>
                    </div>
                    <ul class="hl_row" v-if="item.TCState!==6">
                        <li>{{item.TCStateStr}}{{$t('hotel.hotel_Inthe')}}</li>
                        <li>{{$t('hotel.hotel_expect')}}{{item.TotalNumber}}{{$t('hotel.hotel_people')}}</li>
                        <li>{{item.StartDateStr}}{{$t('hotel.hotel_StartTeam')}}</li>
                    </ul>
                </div>
            </li>
       </ul>
        <div class="noData" v-show="noData">
            {{$t('system.content_noData')}}
        </div>
        <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total>
        </el-pagination>
        <el-dialog custom-class='ComTeamPlan_info_box' :title="tripTitle" :visible.sync="outerVisible" center >
            <commonTeamInfo ref="comTeam"></commonTeamInfo>
      </el-dialog>
    </div>

</template>
<script>
import commonTeamInfo from "../commonPage/commonTeamInfo.vue";
export default {
  data() {
    return {
      msg: {
        pageIndex: 1,
        pageSize: 10,
        StartCityID: "",
        ArriveCityId: ""
      },
      total: 0,
      currentPage: 1,
      noData: false,
      dataList: "",
      TripList: "",
      tripTitle: "",
      StartCityName: "",
      ArriveCityName: "",
      outerVisible: false,
    };
  },
  components: {
    commonTeamInfo: commonTeamInfo
  },
  methods: {
    getList() {
      //获取列表数据
      this.apipost(
        "AirTicketOrder_Get_GetAirTicketPlanDetailsPageList",
        this.msg,
        res => {
          if (res.data.resultCode == 1) {
            this.total = res.data.data.count;
            if (res.data.data.count > 0) {
              this.dataList = res.data.data.pageData;
              res.data.data.pageData.forEach(x => {
                this.StartCityName = x.StartCityName;
                this.ArriveCityName = x.ArriveCityName;
              });
              this.noData = false;
            } else {
              this.noData = true;
              this.dataList = [];
            }
          } else {
            this.tips(res.data.message, "warning");
          }
        },
        err => {}
      );
    },
    tips(msg, type) {
      this.$message({
        message: msg,
        duration: 2000,
        type: type
      });
    },
    handleCurrentChange(val) {
      //翻页功能按钮
      this.msg.pageIndex = val;
      this.getList();
    },
    getJourney(id,title) {
      //根据ID 获取行程内容
      var that = this;
      this.tripTitle = title;
      this.$nextTick(() => {
        that.$refs.comTeam.GetTrip(id);
      });
      that.outerVisible = true;
    }
  },
  mounted() {
    this.msg.StartCityID = this.$route.query.StartCityID;
    this.msg.ArriveCityId = this.$route.query.ArriveCityId;
    this.getList();
  }
};
</script>


