|
1 | 1 | <template>
|
2 | 2 | <view class="container flex-col items-center">
|
3 |
| - <scroll-view class="w-full h-full" scroll-y enable-flex> |
| 3 | + <scroll-view class="h-full w-full" scroll-y enable-flex> |
4 | 4 | <view class="row">
|
5 | 5 | 注意:服务和权限是不同的概念。服务指手机硬件和系统提供的功能,权限指手机给予应用的功能。比如定位,如果手机允许了应用的定位权限,但手机没有开启定位服务,应用可以定位但没办法获取正确的数据,或者直接无法定位。
|
6 | 6 | </view>
|
7 | 7 | <view class="row">
|
8 | 8 | <button
|
9 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 9 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
10 | 10 | @click="handleCheckSystemEnableLocation"
|
11 | 11 | >
|
12 | 12 | Android, iOS - 是否开启定位服务
|
13 | 13 | </button>
|
14 | 14 | </view>
|
15 | 15 | <view class="row">
|
16 | 16 | <button
|
17 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 17 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
18 | 18 | @click="handleOpenPermissionSetting"
|
19 | 19 | >
|
20 | 20 | Android, iOS - 打开应用权限页面
|
21 | 21 | </button>
|
22 | 22 | </view>
|
23 | 23 | <view v-if="isIOS" class="row">
|
24 | 24 | <button
|
25 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 25 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
26 | 26 | @click="handleCheckIOSLocationPermission"
|
27 | 27 | >
|
28 | 28 | iOS - 是否开启位置权限
|
29 | 29 | </button>
|
30 | 30 | </view>
|
31 | 31 | <view v-if="isIOS" class="row">
|
32 | 32 | <button
|
33 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 33 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
34 | 34 | @click="handleCheckIOSPushPermission"
|
35 | 35 | >
|
36 | 36 | iOS - 是否开启推送权限
|
37 | 37 | </button>
|
38 | 38 | </view>
|
39 | 39 | <view v-if="isIOS" class="row">
|
40 | 40 | <button
|
41 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 41 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
42 | 42 | @click="handleCheckIOSCameraPermission"
|
43 | 43 | >
|
44 | 44 | iOS - 是否开启摄像头权限
|
45 | 45 | </button>
|
46 | 46 | </view>
|
47 | 47 | <view v-if="isIOS" class="row">
|
48 | 48 | <button
|
49 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 49 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
50 | 50 | @click="handleCheckIOSPhotoLibraryPermission"
|
51 | 51 | >
|
52 | 52 | iOS - 是否开启相册权限
|
53 | 53 | </button>
|
54 | 54 | </view>
|
55 | 55 | <view v-if="isIOS" class="row">
|
56 | 56 | <button
|
57 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 57 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
58 | 58 | @click="handleCheckIOSRecordPermission"
|
59 | 59 | >
|
60 | 60 | iOS - 是否开启麦克风权限
|
61 | 61 | </button>
|
62 | 62 | </view>
|
63 | 63 | <view v-if="isIOS" class="row">
|
64 | 64 | <button
|
65 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 65 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
66 | 66 | @click="handleCheckIOSContactPermission"
|
67 | 67 | >
|
68 | 68 | iOS - 是否开启通讯录权限
|
69 | 69 | </button>
|
70 | 70 | </view>
|
71 | 71 | <view v-if="isIOS" class="row">
|
72 | 72 | <button
|
73 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 73 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
74 | 74 | @click="handleCheckIOSCalendarPermission"
|
75 | 75 | >
|
76 | 76 | iOS - 是否开启日历权限
|
77 | 77 | </button>
|
78 | 78 | </view>
|
79 | 79 | <view v-if="isIOS" class="row">
|
80 | 80 | <button
|
81 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 81 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
82 | 82 | @click="handleCheckIOSMemoPermission"
|
83 | 83 | >
|
84 | 84 | iOS - 是否开启备忘录权限
|
85 | 85 | </button>
|
86 | 86 | </view>
|
87 | 87 | <view v-if="isAndroid" class="row">
|
88 | 88 | <button
|
89 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 89 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
90 | 90 | @click="handleCheckAndroidNotExistPermission"
|
91 | 91 | >
|
92 | 92 | Android - 是否开启不存在权限
|
93 | 93 | </button>
|
94 | 94 | </view>
|
95 | 95 | <view v-if="isAndroid" class="row">
|
96 | 96 | <button
|
97 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 97 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
98 | 98 | @click="handleCheckAndroidCameraPermission"
|
99 | 99 | >
|
100 | 100 | Android - 是否开启摄像头权限
|
101 | 101 | </button>
|
102 | 102 | </view>
|
103 | 103 | <view v-if="isAndroid" class="row">
|
104 | 104 | <button
|
105 |
| - class="px-8 text-base leading-loose text-white bg-blue-6" |
| 105 | + class="bg-blue-6 px-8 text-base leading-loose text-white" |
106 | 106 | @click="handleCheckAndroidMultiPermissions"
|
107 | 107 | >
|
108 | 108 | Android - 是否开启摄像头、位置和麦克风权限
|
|
0 commit comments