permission.vue 2.25 KB
<template>
	<view class="page-home">
		<navigation-bar :title="'应用权限'"/>
		<view class="content">
			<view class="list_item" v-for="(item,index) in list" :key="index">
				<view class="image_wrapper">
					<image class="image" :src="item.icon" mode="aspectFit"></image>
				</view>
				<view class="text_wrapper">
					<view class="title">{{item.title}}</view>
					<view class="des">{{item.des}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import navigationBar from '../components/navigationBar.vue';
	export default {
		data() {
			return {
				list: [{title: "网络权限", icon: "../static/permission_1.png", des: "允许查看、访问网络连接"},
					{title: "蓝牙权限	", icon: "../static/permission_2.png", des: "允许使用蓝牙,允许发现和配对新的蓝牙设备,允许程序连接配对过的蓝牙设备"},
					{title: "储存权限", icon: "../static/permission_3.png", des: "允许查看、使用内部储存,上传/下载笔记相关的文字图片"},
					{title: "相机权限", icon: "../static/permission_4.png", des: "允许使用摄像头,拍照设置用户头像"}
				]
			}
		},
		components: {
			navigationBar
		},
		onLoad() {
	
		},
		methods: {
			
		}
	}
	
</script>

<style lang="scss" scoped>
	.page-home {
		display: flex;
		position: relative;
		flex-direction: column;
		width: 100%;
		height:100vh;
		background-color: #F5F5F5;
		.content {
			display: flex;
			flex-direction: column;
			position: relative;
			width: 100%;
			.list_item {
				display: flex;
				position: relative;
				flex-direction: row;
				justify-content: space-between;
				margin-top: 30px;
				
				.image_wrapper {
					display: flex;
					margin-left: 24px;
					width: 56px;
					height: 56px;
					.image {
						width: 56px;
						height: 56px;
					}
				}
				.text_wrapper {
					display: flex;
					flex: 1;
					flex-direction: column;
					margin-left: 16px;
					margin-right: 26px;
					.title {
						display: flex;
						height: 25px;
						// justify-content: center;
						font-size: 18px;
						color: #2D2D2D;
						font-weight: 500;
					}
					.des {
						font-size: 14px;
						color: #626B76;
						flex-wrap: wrap;
						margin-top: 8px;
						line-height: 20px;
					}
				}
				
			}
		}
	}
</style>