<template>
	<view class="container">
		<!--内容部分-->
		<tui-list-view>
			<tui-list-cell @tap="card">
				<view class="tui-item-box">
					<view class="tui-list-cell_name">家族名称</view>
					<view class="tui-right" style="color: #000000;margin-right: 0;">
						<input type="text"   placeholder="请输入家族名称" v-model="name" />
					</view>
				</view>
			</tui-list-cell>
			<tui-list-cell  @tap="portrait" :arrow="true" last="true">
				<view class="tui-item-box">
					<text class="tui-list-cell_name">家族头像</text>
					<view class="tui-right"><image src="/static/images/my/thorui.png" class="tui-logo" mode="widthFix"></image></view>
				</view>
			</tui-list-cell>
			<tui-list-cell  @tap="name" :arrow="true">
				<view class="tui-item-box">
					<view class="tui-list-cell_name">创建地</view>
					<view class="tui-right">陕西凤翔</view>
				</view>
			</tui-list-cell>
		</tui-list-view>
		<!--内容部分-->
		<view style="margin: 20rpx;"><tui-button>创建</tui-button></view>
	</view>
</template>

<script>
	import tuiButton from "@/components/thorui/tui-button/tui-button"
	import tuiListView from '@/components/thorui/tui-list-view/tui-list-view';
	import tuiListCell from '@/components/thorui/tui-list-cell/tui-list-cell';
	import tuiIcon from '@/components/thorui/tui-icon/tui-icon';
	import tuiTag from '@/components/thorui/tui-tag/tui-tag';
	import tuiBadge from '@/components/thorui/tui-badge/tui-badge';
	
	export default {
		components: {
			tuiListView,
			tuiListCell,
			tuiIcon,
			tuiTag,
			tuiButton,
			tuiBadge
		},
		data() {
			return {
				name:'',
			}
		},
		methods: {
			card: function() {
				uni.navigateTo({
					url: './card/card'
				});
			},
			portrait: function() {
				uni.navigateTo({
					url: './portrait/portrait'
				});
			},
			name: function() {
				uni.navigateTo({
					url: './name/name'
				});
			},
			sex: function() {
				uni.navigateTo({
					url: './sex/sex'
				});
			},
			phone: function() {
				uni.navigateTo({
					url: './phone/phone'
				});
			},
		}
	}
</script>

<style>
	.container {
		padding-bottom: env(safe-area-inset-bottom);
		width: 100%;
	}

	.tui-item-box {
		width: 100%;
		display: flex;
		align-items: center;
	}

	.tui-list-cell_name {
		padding-left: 20rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.tui-ml-auto {
		margin-left: auto;
	}

	.tui-right {
		margin-left: auto;
		margin-right: 34rpx;
		font-size: 26rpx;
		color: #999;
	}

	.tui-logo {
		height: 52rpx;
		width: 52rpx;
		flex-shrink: 0;
	}

	.tui-flex {
		display: flex;
		align-items: center;
	}

	.tui-msg-box {
		display: flex;
		align-items: center;
	}

	.tui-msg-pic {
		width: 100rpx;
		height: 100rpx;
		border-radius: 50%;
		display: block;
		margin-right: 24rpx;
		flex-shrink: 0;
	}

	.tui-msg-item {
		max-width: 500rpx;
		min-height: 80rpx;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.tui-msg-name {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		font-size: 34rpx;
		line-height: 1;
		color: #262b3a;
	}

	.tui-msg-content {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		font-size: 26rpx;
		line-height: 1;
		color: #9397a4;
	}

	.tui-msg-right {
		max-width: 120rpx;
		height: 88rpx;
		margin-left: auto;
		text-align: right;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: flex-end;
	}

	.tui-right-dot {
		height: 76rpx !important;
		padding-bottom: 10rpx !important;

	}

	.tui-msg-time {
		width: 100%;
		font-size: 24rpx;
		line-height: 24rpx;
		color: #9397a4;
	}
</style>
