uni-auth 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -2
- package/src/components/AuthPop.vue +30 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uni-auth",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -9,5 +9,14 @@
|
|
|
9
9
|
"keywords": [],
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
|
-
"description": "UniApp 授权模块"
|
|
12
|
+
"description": "UniApp 授权模块",
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"vue": "^3.0.0",
|
|
15
|
+
"@dcloudio/uni-app": "^3.0.0"
|
|
16
|
+
},
|
|
17
|
+
"peerDependenciesMeta": {
|
|
18
|
+
"vue": {
|
|
19
|
+
"optional": false
|
|
20
|
+
}
|
|
21
|
+
}
|
|
13
22
|
}
|
|
@@ -25,7 +25,8 @@ onMounted(() => {
|
|
|
25
25
|
if (systemInfo.value.platform !== 'ios') {
|
|
26
26
|
permissionListener.value = uni.createRequestPermissionListener()
|
|
27
27
|
permissionListener.value.onConfirm((e) => {
|
|
28
|
-
list.value = e.map((item) => getPermissionKeyByValue(item))
|
|
28
|
+
list.value = e.map((item) => getPermissionKeyByValue(item)).filter((item) => item)
|
|
29
|
+
|
|
29
30
|
isPermissionAlertShow.value = true
|
|
30
31
|
})
|
|
31
32
|
permissionListener.value.onComplete((e) => {
|
|
@@ -61,34 +62,46 @@ function getPermissionKeyByValue(permissionValue) {
|
|
|
61
62
|
position: fixed;
|
|
62
63
|
top: 0;
|
|
63
64
|
left: 0;
|
|
65
|
+
right: 0;
|
|
64
66
|
width: 90%;
|
|
65
|
-
|
|
66
|
-
background: #
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
border-radius: 14rpx;
|
|
70
|
-
margin-left: 5%;
|
|
71
|
-
margin-right: 5%;
|
|
72
|
-
animation: identifier 1s ease-in-out;
|
|
73
|
-
padding: 20rpx 30rpx;
|
|
67
|
+
margin: 0 auto;
|
|
68
|
+
background: #ffffff;
|
|
69
|
+
border-radius: 24rpx;
|
|
70
|
+
padding: 32rpx 32rpx 24rpx;
|
|
74
71
|
box-sizing: border-box;
|
|
72
|
+
z-index: 999999;
|
|
73
|
+
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
|
|
74
|
+
animation: slideDown 0.3s ease-out;
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
|
|
77
|
+
@keyframes slideDown {
|
|
77
78
|
0% {
|
|
78
|
-
transform: translateY(-
|
|
79
|
+
transform: translateY(-100%);
|
|
79
80
|
}
|
|
80
81
|
100% {
|
|
81
82
|
transform: translateY(0);
|
|
82
83
|
}
|
|
83
84
|
}
|
|
85
|
+
|
|
84
86
|
.title {
|
|
87
|
+
font-size: 32rpx;
|
|
85
88
|
font-weight: 600;
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
color: #222;
|
|
90
|
+
line-height: 1.4;
|
|
91
|
+
margin-bottom: 24rpx;
|
|
88
92
|
}
|
|
93
|
+
|
|
89
94
|
.msg {
|
|
90
|
-
font-size:
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
font-size: 28rpx;
|
|
96
|
+
color: #555;
|
|
97
|
+
line-height: 1.5;
|
|
98
|
+
margin-bottom: 16rpx;
|
|
99
|
+
padding: 6rpx 16rpx;
|
|
100
|
+
border-left: 6rpx solid #f0f0f0;
|
|
101
|
+
background: rgba(64, 128, 255, 0.04);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.msg:last-child {
|
|
105
|
+
margin-bottom: 0;
|
|
93
106
|
}
|
|
94
107
|
</style>
|