<template>
	<view class="page">
		<navbar title="电子合同"
		leftClick 
		@leftClick="$utils.navigateBack"/>
		
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id : 0,
				detail : {},
			}
		},
		onLoad({id}) {
			this.id = id
			this.getDetail()
		},
		methods: {
			getDetail(){
					let data = {
						contractId: this.id
					}
					if (uni.getStorageSync('token')) {
						// data.token = uni.getStorageSync('token')
					}
					this.$api('queryContracById', data, res => {
						if (res.code == 200) {
							this.detail = res.result
						}
					})
			},
		}
	}
</script>

<style scoped lang="scss">

</style>
