<template>
	<view class="content">
		<view class="logo">
			<image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/logo.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="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/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="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/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 style="height: 1px;background-color: #F5F6FA;"></view>
			<view class="item" @click="navTo">
				<view class="left">
					<text class="text">资质文件</text>
				</view>
				<image class="right" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png" mode="aspectFill"></image>
			</view>
			<view style="height: 1px;background-color: #F5F6FA;"></view>
			<view class="item" @click="openContent('userRegister')">
				<view class="left">
					<text class="text">用户协议</text>
				</view>
				<image class="right" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png" mode="aspectFill"></image>
			</view>
			<view style="height: 1px;background-color: #F5F6FA;"></view>
			<view class="item" @click="openContent('userPrivacy')">
				<view class="left">
					<text class="text">隐私协议</text>
				</view>
				<image class="right" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png" mode="aspectFill"></image>
			</view>
			<view style="height: 1px;background-color: #F5F6FA;"></view>
			<view class="item" @click="openContent('storeRules')">
				<view class="left">
					<text class="text">商家规则</text>
				</view>
				<image class="right" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png" mode="aspectFill"></image>
			</view>
			<view style="height: 1px;background-color: #F5F6FA;"></view>
			<view class="item" @click="openContent('residencyAgreement')">
				<view class="left">
					<text class="text">入驻协议</text>
				</view>
				<image class="right" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png" mode="aspectFill"></image>
			</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: ""
			})
		},
 		openContent(type) {
 			uni.navigateTo({
 				url: '/pages_user/agreement?type=' + type
 			});
 		},
		navTo() {
			uni.navigateTo({
				url:'/pages_user/cert'
			})
		}
 	}
 }
 
 
</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>
