<template>
	<view class="content">
		<view class="logo">
			<image class="logo" src="../../static/img3.jpg" mode=""></image>
			<view class="version">{{ item.title }}</view>
		</view>
		<view class="item">
			<view class="name" @click="phone()">
				联系电话
				<text class="tag">{{ item.helpPhone }}</text>
			</view>
		</view>
		<view class="item">
			<view class="name">
				邮箱
				<text class="tag">xxxxxxx</text>
			</view>
		</view>
		<view class="item">
			<view class="name">
				地址
				<text class="tag">xxxxx</text>
			</view>
		</view>
		<view class="copyright">Copyright © 2021 {{ item.title }} 版权所有</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			item: {}
		};
	},
	onLoad(e) {
		this.$http.request({
			url: this.$http.urls.getAboutUs,
			success: res => {
				console.log('asd:' + JSON.stringify(res));
				this.item = res.data.data.aboutUs;
			}
		});
	},
	methods: {
		phone() {
			uni.makePhoneCall({
				phoneNumber: this.item.helpPhone
			});
		}
	}
};
</script>

<style lang="scss">
.content {
	padding: 15px 5px 15px 5px;
	.logo {
		text-align: center;
		image {
			width: 100px;
			height: 100px;
			margin: 0 auto;
			border-radius: 50%;
		}
		.version {
			margin-bottom: 20px;
			color: $dar;
			margin-top: 5px;
		}
	}
	.item {
		padding: 15px;
		border-bottom: 1px solid #f1f1f1;
		color: black;
		font-size: 15px;
		overflow: hidden;
		.tag {
			float: right;
			color: $dar2;
		}
	}
}
</style>
