<template>
	<view class="page">
		<view class="add-list">
			<view class="list">
				<view class="title">
					<text>租赁人姓名</text>
					<text class="star">*</text>
				</view>
				<view class="content">
					<input type="text" placeholder="请输入">
				</view>
			</view>
			<view class="list">
				<view class="title">
					<text>身份证号</text>
					<text class="star">*</text>
				</view>
				<view class="content">
					<input type="text" placeholder="请输入">
				</view>
			</view>
			<view class="list">
				<view class="title">
					<text>联系方式</text>
					<text class="star">*</text>
				</view>
				<view class="content">
					<input type="text" placeholder="请输入">
				</view>
			</view>
			<view class="list">
				<view class="title">
					<text>意向租期</text>
					<text class="star">*</text>
				</view>
				<view class="content">
					<input type="text" placeholder="请选择">
				</view>
			</view>
			<view class="list">
				<view class="title">
					<text>经营用途</text>
					<text class="star">*</text>
				</view>
				<view class="content">
					<input type="text" placeholder="请选择">
					<image :src="$imgUrl('/right2.png')" ></image>
				</view>
			</view>
			<view class="list">
				<view class="title">
					<text>经营类型</text>
					<text class="star">*</text>
				</view>
				<view class="content">
					<input type="text" placeholder="请选择">
					<image :src="$imgUrl('/right2.png')"></image>
				</view>
			</view>
			<view class="feedback-data">
				<view>
					<view class="title">
						<text>法人身份证正反面</text>
						<text class="star">*</text>
					</view>
				</view>
				<view class="voucher-img">
					<view class="voucher-list">
						<image :src="$imgUrl('/voucher_bg.png')"></image>
					</view>
				</view>
			</view>
			<view class="feedback-data">
				<view>
					<view class="title">
						<text>营业许可证</text>
						<text class="star">*</text>
					</view>
				</view>
				<view class="voucher-img">
					<view class="voucher-list">
						<image  :src="$imgUrl('/voucher_bg.png')"></image>
					</view>
				</view>
			</view>
			<view class="feedback-data">
				<view>
					<view class="title">
						<text>餐饮服务许可证</text>
						<text class="star">*</text>
					</view>
				</view>
				<view class="voucher-img">
					<view class="voucher-list">
						<image :src="$imgUrl('/voucher_bg.png')" ></image>
					</view>
				</view>
			</view>
		</view>
		<!-- 保存按钮 -->
		<view class="page-footer" @click="go">
		  <view class="footer-buy">
		    <view class="cart-add">
		      <text>提交</text>
		    </view>
		  </view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		  onLoad() {
		    // 检查用户是否登录
		    const isLogin = uni.getStorageSync('token') || false;
		    if (!isLogin) {
		      // 如果未登录，跳转到登录页面
		     uni.redirectTo({
		       url: '/pages/login/login'
		     });
		    }
		  },
		methods:{
			go(){
				uni.navigateTo({
					url: '/pages/record/record'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	@import 'leaseAdd.scss';
</style>
