<template>
	<view class="container">
		详情{{saleid}}
	</view>
</template>

	<script setup>
	import { ref, onMounted } from 'vue'
	import { onLoad } from '@dcloudio/uni-app'
	
	const saleid = ref('')
	
	onLoad((options) => {
	    if (options.saleid) {
	        saleid.value = options.saleid
	        // 这里可以根据saleid请求详情数据
			console.log('加载合同详情，ID:', saleid.value)
	        // loadContractDetail(saleid.value)
	    }
	})
	
	function loadContractDetail(id) {
	    // 根据saleid请求详情数据的逻辑
	    console.log('加载合同详情，ID:', id)
	}
	</script>

<style scoped>
	.container {
		padding: 10px;
		background-color: #f5f7fa;
		min-height: 100vh;
	}
</style>