<template>
	<view class="about">
		<view class="about_info">
			<view class="about_head">
				<image :src="info.logo"  mode="scaleToFill"></image>
			</view>
			<view class="about_name">{{info.name}}</view>
		</view>
		<view class="profile_item" @click="userServiceClick">
			<view>服务协议</view>
			<view class="iconfont icon-arrows_right"></view>
		</view>
	</view>
</template>

<script>
	import { netServiceText } from '@/api/index.js'
	import { BASE_IMG_URL } from '@/util/api.js'
	export default {
		data() {
			return {
				info:{},
				BASE_IMG_URL:BASE_IMG_URL,
			}
		},
		onShow() {
			this.getInfo()
		},
		methods: {
			userServiceClick() {
				uni.navigateTo({
					url:'/pagesA/profile/about/userServiceAgreement/userServiceAgreement'
				})
			},
			getInfo() {
				netServiceText().then(res=>{
					this.info = res.data
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.about_info {
		width: 100%;
		margin-top: 100rpx;
		text-align: center;
		.about_head {
			width: 100rpx;
			height: 100rpx;
			border-radius: 20rpx;
			margin: 0 auto;
			image{
				width: 100rpx;
				height: 100rpx;
				border-radius: 20rpx;
			}
		}

		.about_name {
			font-size: 40rpx;
			line-height: 60rpx;
			margin-top: 20rpx;
		}

		.about_announ {
			color: #999;
			font-size: 28rpx;
			margin-bottom: 80rpx;
		}
	}

	.about_footer {
		position: relative;
		text-align: center;
		margin-top: 580rpx;
		line-height: 40rpx;
	}

	.profile_item {
		background-color: #fff;
		display: flex;
		padding: 0 30rpx;
		justify-content: space-between;
		height: 110rpx;
		line-height: 110rpx;
		border-bottom: 1rpx solid #EAEAEA;
		font-size: 28rpx;
		margin-top:50rpx;
		:nth-child(2) {
			margin-left: -468rpx;
		}
	}
</style>
