<template>
  <div class="wrap" >
    <div class="headerWrap">
      <img  class="back" @click="h5GoBack" src="@/assets/secondHandCar/back.png" />
      <span>免责声明</span>
      <div style="opacity: 0;" class="back"></div>
    </div>
    <div class="contentWrap">
      <iframe :src="urls"></iframe>
    </div>
 </div>
</template>
<script>
import {myMixins} from "@/utils/myMixins"
export default {
  name: "privacyComponent",
  mixins:[myMixins],
  data(){
    return{
      urls:''
    }
  },
  async mounted() {
    let url='';
    if (window.location.href.includes('www.sinoassist.com')) {
      url = 'https://www.sinoassist.com'
    } else if (window.location.href.includes('ccreview.sino-assist.com')) {
      url = 'https://ccreview.sino-assist.com'
    } else if (window.location.href.includes('uat.sino-assist.com')) {
      url = 'https://api-uat.sino-assist.com'
    } else {
      url = 'https://crm1.sino-assist.com'
    }
    this.urls=url + '/h5/supplier/dispatch/res/privacy.html'
  },
  methods:{ }
}
</script>

<style scoped lang="scss">
@import '@/styles/mixin.scss';
.wrap {
  @include wh(100%, 100%);
  position: relative;
  background-color: #F6F6F6;
}
.headerWrap{
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  .back{
    @include wh(15px,15px);
    cursor: pointer;
  }
  span{
    font-weight: bold;
    font-size: 16px;
    color: #203152;
  }
}
.contentWrap{
  height: calc(100% - 42px);
  iframe{
    overflow-y:hidden;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    border: none;
  }
}
</style>
