<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%;"/>
	</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'
export default {
  components: { PdfView },
  data() {
    return {
		webUrl1:`http://192.168.0.14:1909/file/ynRealName/contract/pdf/contract.pdf`,
    }
  },
  onLoad() {
    console.log('🚀 ~ mounted ~ mounted-index:')  
  },
  onShow() {
  },
  methods: {
	fillContract(){
		console.log(1111111)
		uni.navigateTo({
			url: `/pages/realName/workbench/electronicContract/contractFill`
		})
	},
    // 返回
    leftClick() {
      console.log('返回')
      uni.navigateBack({
      	delta: 1 // 返回
      });
    }
  },

}
</script>

<style lang="scss">
.page {
	width: 100vw;
	height: 100vh;
	background-color: #f8f8f8;
	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;
		z-index: 999999;
		.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>
