YNUtdPlatform/pages/realName/workbench/electronicContract/contractPdf.vue

91 lines
1.8 KiB
Vue

<template>
<view class="page">
<u-navbar class="u-navbar" title="电子合同" placeholder @leftClick="leftClick" leftIconColor="#fff" bgColor="#00337A" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"/>
<view class="file-box">
<PdfView :path="webUrl1" style="width: 100%;height: 80%!important;"/>
</view>
<view class="bottom-box">
<view class="btn1" @click="leftClick">返回</view>
<view class="btn2" @click="fillContract">填写合同</view>
</view>
</view>
</template>
<script>
import PdfView from '../../components/PdfView.vue'
import config from '@/config'
export default {
components: { PdfView },
data() {
return {
videoUrl:"",
webUrl1:config.realFileUrl+`ynRealName/contract/pdf/contract.pdf`,
}
},
onLoad(option) {
this.videoUrl=option.videoUrl||"";
console.log('?? ~ mounted ~ mounted-index:')
},
onShow() {
},
methods: {
fillContract(){
uni.navigateTo({
url: `/pages/realName/workbench/electronicContract/contractFill?videoUrl=${this.videoUrl}`
})
},
// 返回
leftClick() {
console.log('返回')
uni.navigateBack({
delta: 1 // 返回
});
}
},
}
</script>
<style lang="scss">
.page {
width: 100vw;
height: 100vh;
background-color: #EFEFEF;
box-sizing: border-box;
position: relative;
.file-box{
width: 100%;
height: 80vh;
// overflow-y: auto;
}
.bottom-box{
width: 90%;
margin: 0 auto;
height: 120rpx;
display: flex;
justify-content: space-between;
align-items: center;
.btn1{
width: 40%;
height: 80rpx;
display: flex;
align-items: center;justify-content: center;
color: #FFF;
background: #00337A;
border-radius: 10rpx;
}
.btn2{
width: 40%;
height: 80rpx;
display: flex;
align-items: center;justify-content: center;
color: #FFF;
background: #00337A;
border-radius: 10rpx;
}
}
}
</style>