permission.vue
2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<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>