<template>
  <div class="wrap" >
    <div class="headerWrap">
<!--      <div v-if="isWebFunc()" style="opacity: 0;" class="back"></div>-->
      <img  class="back" @click="backHandle" src="@/assets/secondHandCar/back.png" />
      <span>免责声明</span>
      <div style="opacity: 0;" class="back"></div>
    </div>
    <div class="contentWrap">
      <iframe :src="url"></iframe>
    </div>
 </div>
</template>

<script>
import {myMixins} from "@/utils/myMixins"
export default {
  name: "privacyComponent",
  mixins:[myMixins],
  data(){
    return{
      url:''
    }
  },
  async mounted() {
      this.url=this.$route.query.url
    console.log("1122",this.$route.params.form,this.$route.params.radio)
  },
  beforeUnmount() {

  },
  methods:{
    backHandle(){
      if(this.isWebFunc()){
        this.h5GoBack()
      }else{
        if(this.$route.query.type == 1){
          this.$router.push({ name: 'carSource',query: {type:1},params: {
              form: this.$route.params.form,
              radio:this.$route.params.radio ,
              areaName:this.$route.params.areaName ,
              vehicleLicensePhotoList:this.$route.params.vehicleLicensePhotoList ,
              vehicleAnglePhotoList:this.$route.params.vehicleAnglePhotoList ,
              otherImgSrcList:this.$route.params.otherImgSrcList ,
              otherImgSrc:this.$route.params.otherImgSrc ,

            } })

        }else{
          this.$router.push({ name: 'wantBuy',query: {type:1},params: { form: this.$route.params.form,radio:this.$route.params.radio } })
        }
      }
    },
  }
}
</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);
  //overflow-y: auto;
  iframe{
    overflow-y:hidden;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    border: none;
  }
}
</style>
