<style>
  .wl-section-block {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-tour {
    margin-bottom: 30px !important;
    padding: 30px 30px 0;
    border: 1px solid #e5e5e5;
    background-color: #fff;
  }

  .style5_item_title {
    padding: 20px 0;
    text-align: center;
    width: 100%;
  }

  .fee_title {
    color: #333;
    font-size: 18px;
    font-family: PingFangR;
  }

  .fee_line {
    text-align: center;
    color: #ccc;
    font-size: 12px;
    width: 100%;
  }

  .fee_line {
    width: 32px;
    height: 2px;
    background: #ee4454;
    display: inline-block;
  }

  .expense {
    /* display: flex; */
    margin: 30px auto;
    width: 100%;
  }

  .detail-box .expense .left {
    width: 100%;
    text-align: center;
    font-size: 17px;
    margin-bottom:20px;
    font-family: PingFangR;
  }

  .detail-box .expense .right {
    /* -webkit-box-flex: 1;
    flex: 1; */
    overflow: hidden;
    font-size: 16px;
    line-height: 25px;
    color: #666;
    text-align: left;
  }

  .section-tour .isHiden5 {
    height: 450px;
    overflow: hidden;
  }

  .toggle_down:before {
    content: "";
    width: 100%;
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 2;
    height: 100px;
    background-image: -webkit-linear-gradient(-90deg, rgba(255, 255, 255, 0), #fff);
    background-image: -moz-linear-gradient(-90deg, rgba(255, 255, 255, 0), #fff);
    background-image: -o-linear-gradient(-90deg, rgba(255, 255, 255, 0), #fff);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  }

</style>
<template>
  <div>
    <section class="section-tour wl-section-block">
      <div class="style5_item_title detail-box">
        <div :class="{'isHiden5':isShow}">
          <div class="fee_title">费用</div>
          <div class="fee_line">
            <small class="s"></small>
          </div>
          <div style="color:#ccc">Expense</div>
          <div class="expense">
            <div class="left">费用包含</div>
            <div class="right">
              <div v-html="htmlData1"></div>
            </div>
          </div>
          <div class="expense">
            <div class="left">自理费用</div>
            <div class="right">
              <div v-html="htmlData2"></div>
            </div>
          </div>
          <div class="fee_title">购物说明</div>
          <div class="fee_line">
            <small class="s"></small>
          </div>
          <div style="color:#ccc">Expense</div>
          <div class="expense">
            <div class="left"></div>
            <div class="right">
              <div v-html="htmlData3"></div>
            </div>
          </div>
          <div class="fee_title">预订须知</div>
          <div class="fee_line">
            <small class="s"></small>
          </div>
          <div style="color:#ccc">Tips</div>
          <div class="expense">
            <div class="left">重要提示</div>
            <div class="right">
              <div v-html="htmlData4"></div>
            </div>
          </div>
          <div class="expense">
            <div class="left">{{$t('v103.details.style.d4')}}</div>
            <div class="right">
              <div v-html="htmlData5"></div>
            </div>
          </div>
          <div class="fee_title">签证</div>
          <div class="fee_line">
            <small class="s"></small>
          </div>
          <div style="color:#ccc">Visa</div>
          <div class="expense">
            <div class="left">签证须知</div>
            <div class="right">
              <div v-html="dataList.feature.visaRemark"></div>
            </div>
          </div>
          <div class="fee_title">同行备注</div>
          <div class="fee_line">
            <small class="s"></small>
          </div>
          <div style="color:#ccc">Remark</div>
          <div class="expense">
            <div class="left"></div>
            <div class="right">
              <div v-html="dataList.feature.b2BRemark"></div>
            </div>
          </div>
        </div>
        <div class="collapse_toggle" v-if="!isShow">
          <i class="iconfont iconarrow-top" @click="isShow=true"></i>
        </div>
        <div class="collapse_toggle toggle_down" v-else>
          <i class="iconfont iconarrowdown" @click="isShow=false"></i>
        </div>
      </div>
    </section>
  </div>
</template>
<script>
  import { reactive, toRefs, defineComponent,  } from 'vue';
  import { useI18n } from 'vue-i18n'
  import { GetHtml } from 'src/utils/tools'
  export default defineComponent({
    components: {  },
    props: ['dataList'],
    setup(props) {
      const { t } = useI18n()
      const data= reactive({
        TripConfig: {},
        isShow: false,
        dataList: props.dataList,
        htmlData1: '',
        htmlData2: '',
        htmlData3: '',
        htmlData4: '',
        htmlData5: '',
      })
      const methods = {
        
      }
      if (localStorage.baseifo) {
        data.TripConfig = JSON.parse(localStorage.getItem('baseifo'));
      }
      if (data.TripConfig.TripConfig.NoticeItemIsOpen == 1) {
        data.isShow = false;
      } else {
        data.isShow = true;
      }
      data.htmlData1 = GetHtml(data.dataList.feature.feeInclude)
      data.htmlData2 = GetHtml(data.dataList.feature.feeNonInclude)
      data.htmlData3 = GetHtml(data.dataList.feature.shopRemark)
      data.htmlData4 = GetHtml(data.dataList.feature.importantTip)
      data.htmlData5 = GetHtml(data.dataList.feature.warmTip)
      return {
        ...toRefs(data),
        ...methods,
      }
    }
  })


</script>
