<template>
	<view class="index" :addre="addre">
		<view class="index1">
			<view class="img">
				<image :src="img" mode="widthFix" lazy-load>
			    </image>
			</view>
			<view class="name">{{name}}</view>	
		</view>
		<view class="index2" @tap="changeInfo">
			<view class="u-f" >
				<view class="icon iconfont icon-gerenxinxi"></view>
				<view>个人信息</view>
				<view>
					{{addre}}|{{sub}}|{{sco}}
				</view>
			</view>
			<view class="icon iconfont icon-gengduo2"></view>
		</view>
		<view class="index3" @tap="myCollection">
			<view class="u-f">
				<view class="icon iconfont icon-wodeshoucang"></view>
				<view>我的收藏</view>
			</view>
			<view class="icon iconfont icon-gengduo2"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				"img":"../../static/img/1.jpg",
				"name":"姓名",
				"addre":getApp().globalData.global_addre,
				"sub":getApp().globalData.global_sub,
				"sco":getApp().globalData.global_sco,
			}
		},
		onShow() {
			this.sub=getApp().globalData.global_sub;
			this.addre=getApp().globalData.global_addre;
			this.sco=getApp().globalData.global_sco;
		},
		methods: {
			changeInfo(){
				uni.navigateTo({
					url:"../changeInfo/changeInfo"
				})
			},
			myCollection(){
				uni.navigateTo({
					url:"../collection/collection"
				})
			}
		},
	}
</script>

<style scoped>
.u-f{
	display:flex;
	justify-content: flex-start;
	align-items: center;
}
.index{
	padding: 40upx;
}
.index1{
	display: flex;
	/* padding: 40upx; */
	margin-top: 60upx;
}
.index1 .img>image{
	width: 220upx;
	height: 220upx;
	border-radius: 100%;
	border: 1px solid #000000;
}
.index1 .name{
	display: flex;
	align-items: center;
	margin-left: 50upx;
	font-size: 55upx;
	font-weight: bold;
	letter-spacing: 10upx;
}
.index2{
	display: flex;
	justify-content: space-between;
	margin-top: 60upx;
}
.index2>view>view:last-of-type{
	color:#999999;
	font-size: 30upx;
}
.index3{
	display: flex;
	justify-content: space-between;
	margin-top: 60upx;
}
.icon-gengduo2{
	color:#E7E7E7;
}
.u-f>view{
	margin-right: 40upx;
}
</style>
