<template>
	<view>
		<u-navbar title="修改密码" autoBack placeholder></u-navbar>
		<view class="card_password">
			<view class="item_pass">
				<view class="pass_title">旧密码<span style="color: red;">*</span></view>
				<u--input placeholder="请输入内容" border="surround" v-model="userInfo.name"></u--input>
			</view>
			<view class="item_pass">
				<view class="pass_title">新密码<span style="color: red;">*</span></view>
				<u--input placeholder="请输入内容" border="surround" v-model="userInfo.name"></u--input>
			</view>
			<view class="item_pass">
				<view class="pass_title">再次输入新密码<span style="color: red;">*</span></view>
				<u--input placeholder="请输入内容" border="surround" v-model="userInfo.name"></u--input>
			</view>
		</view>
		<view class="card_btn">
			<u-button type="primary" :disabled="disabled" text="提交"></u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				model1: {
					name: 'uView UI',
				},
				userInfo: {
					name: ''
				},
				rules: {
					'name': {
						type: 'string',
						required: true,
						message: '请填写姓名',
						trigger: ['blur', 'change']
					},
				},
				disabled:false,
			}
		}
	}
</script>

<style lang="scss">
	.card_password {
		padding: 20rpx 40rpx 40rpx 40rpx;
	}

	.item_pass {
		margin-top: 30rpx;
	}

	.pass_title {
		margin-bottom: 20rpx;
	}

	.card_btn {
		margin: 20rpx;
	}
</style>