<template>
	<view class="content">
		<view class="logo">
			<image src="https://cos.his.cdwjyyh.com/fs/20240423/1287b2bf7c944538905f5092e8ff7db9.png"></image>
			<p>彩虹惠医互联网医院</p>
		</view>
		<view class="set-box">
			<view class="item" @click="callPhone()">
				<view class="left">
					<text class="text">联系我们</text>
				</view>
				<image class="right" src="/static/images/arrow_gray.png" mode="aspectFill"></image>
			</view>
			<view style="height: 1px;background-color: #F5F6FA;"></view>
			<view class="item" >
				<view class="left">
					<text class="text">在线客服</text>
				</view>
				<image class="right" src="/static/images/arrow_gray.png" mode="aspectFill"></image>
				<button class='contact-btn' open-type="contact">
					1111
				</button>
				
			</view>
			<view style="height: 1px;background-color: #F5F6FA;"></view>
			<view class="item">
				<view class="left">
					<text class="text">版本号</text>
				</view>
				<view class="right-text">
					<text class="text">v{{version}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
 
 export default {
 	data() {
 		return {
			tel:undefined,
			version:"1.0"
 		}
 	},
	onLoad() {
		const accountInfo = wx.getAccountInfoSync();
		this.version = accountInfo.miniProgram.version 
	},
 	methods: {
		callPhone(){
			uni.makePhoneCall({
				phoneNumber: "4000717770"
			})
		},
 		submit(){
 			
 		}
 	}
 }
 
 
</script>


<style scoped lang="scss">
page{
	height: 100%;
	background-color: #f5f5f5;
}
.content{
	height: 100%;
}
.logo{
	padding-top: 15%;
	text-align: center;
	image{
		width: 80px;
		height: 80px;
	}
	p{
		margin: 10px 0px;
		font-size: 14px;
	}
}
.set-box{
	margin-top: 30upx;
	background: #fff;
	padding: 0 40upx;
	.item{
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 25upx 0;
		.left{
			display: flex;
			align-items: center;
			.text{
				font-size: 30upx;
				color: #666;
			}
		}
		.right{
			width: 10upx;
			height: 20upx;
		}
		.right-text{
			 
		}
	}
}
.contact-btn {
	position: absolute;
	width: 100%;
	display: flex;
	opacity: 0;
}

</style>
