二手车交易,协议链接加返回按钮
This commit is contained in:
@ -47,5 +47,13 @@ const secondHandCar = [
|
||||
title: '我的发布',
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/privacyComponent',
|
||||
name: 'privacyComponent',
|
||||
component: () => import('@/views/secondHandCar/privacy.vue'),
|
||||
meta:{
|
||||
title: '免责声明',
|
||||
}
|
||||
},
|
||||
]
|
||||
export default secondHandCar
|
||||
|
@ -226,7 +226,8 @@ export default {
|
||||
url = 'https://crm1.sino-assist.com'
|
||||
// url = 'http://localhost:8080'
|
||||
}
|
||||
window.location.href=url + '/h5/supplier/dispatch/res/privacy.html'
|
||||
let urls=url + '/h5/supplier/dispatch/res/privacy.html'
|
||||
this.$router.push({ name: "privacyComponent", query: {url:urls}})
|
||||
},
|
||||
closeParentDialog() {
|
||||
if (window.parent) {
|
||||
|
72
src/views/secondHandCar/privacy.vue
Normal file
72
src/views/secondHandCar/privacy.vue
Normal file
@ -0,0 +1,72 @@
|
||||
<template>
|
||||
<div class="wrap" >
|
||||
<div class="headerWrap">
|
||||
<div v-if="isWebFunc()" style="opacity: 0;" class="back"></div>
|
||||
<img v-else class="back" @click="h5GoBack" 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
|
||||
},
|
||||
beforeUnmount() {
|
||||
|
||||
},
|
||||
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);
|
||||
}
|
||||
span{
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
color: #203152;
|
||||
}
|
||||
}
|
||||
.contentWrap{
|
||||
height: calc(100% - 42px);
|
||||
overflow-y: auto;
|
||||
iframe{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #FFFFFF;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -164,7 +164,8 @@ export default {
|
||||
url = 'https://crm1.sino-assist.com'
|
||||
// url = 'http://localhost:8080'
|
||||
}
|
||||
window.location.href=url + '/h5/supplier/dispatch/res/privacy.html'
|
||||
let urls=url + '/h5/supplier/dispatch/res/privacy.html'
|
||||
this.$router.push({ name: "privacyComponent", query: {url:urls}})
|
||||
},
|
||||
closeParentDialog() {
|
||||
if (window.parent) {
|
||||
|
Reference in New Issue
Block a user