Skip to content
This repository was archived by the owner on Mar 14, 2022. It is now read-only.

Commit 938d1e0

Browse files
committed
style: format
1 parent b2f6b8f commit 938d1e0

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/pages/index/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
2-
<view class="absolute flex flex-col items-center justify-center w-full h-full">
3-
<image class="w-12 h-12" src="/static/logo.png" />
2+
<view class="absolute flex h-full w-full flex-col items-center justify-center">
3+
<image class="h-12 w-12" src="/static/logo.png" />
44
<text class="text-2xl">
55
{{ title }}
66
</text>
77
<!-- #ifdef APP-PLUS -->
8-
<button class="px-8 text-base leading-loose text-white bg-blue-6" @click="handleToPermission">
8+
<button class="bg-blue-6 px-8 text-base leading-loose text-white" @click="handleToPermission">
99
测试权限
1010
</button>
1111
<!-- #endif -->

src/pages/permission/index.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,108 @@
11
<template>
22
<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>
44
<view class="row">
55
注意:服务和权限是不同的概念。服务指手机硬件和系统提供的功能,权限指手机给予应用的功能。比如定位,如果手机允许了应用的定位权限,但手机没有开启定位服务,应用可以定位但没办法获取正确的数据,或者直接无法定位。
66
</view>
77
<view class="row">
88
<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"
1010
@click="handleCheckSystemEnableLocation"
1111
>
1212
Android, iOS - 是否开启定位服务
1313
</button>
1414
</view>
1515
<view class="row">
1616
<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"
1818
@click="handleOpenPermissionSetting"
1919
>
2020
Android, iOS - 打开应用权限页面
2121
</button>
2222
</view>
2323
<view v-if="isIOS" class="row">
2424
<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"
2626
@click="handleCheckIOSLocationPermission"
2727
>
2828
iOS - 是否开启位置权限
2929
</button>
3030
</view>
3131
<view v-if="isIOS" class="row">
3232
<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"
3434
@click="handleCheckIOSPushPermission"
3535
>
3636
iOS - 是否开启推送权限
3737
</button>
3838
</view>
3939
<view v-if="isIOS" class="row">
4040
<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"
4242
@click="handleCheckIOSCameraPermission"
4343
>
4444
iOS - 是否开启摄像头权限
4545
</button>
4646
</view>
4747
<view v-if="isIOS" class="row">
4848
<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"
5050
@click="handleCheckIOSPhotoLibraryPermission"
5151
>
5252
iOS - 是否开启相册权限
5353
</button>
5454
</view>
5555
<view v-if="isIOS" class="row">
5656
<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"
5858
@click="handleCheckIOSRecordPermission"
5959
>
6060
iOS - 是否开启麦克风权限
6161
</button>
6262
</view>
6363
<view v-if="isIOS" class="row">
6464
<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"
6666
@click="handleCheckIOSContactPermission"
6767
>
6868
iOS - 是否开启通讯录权限
6969
</button>
7070
</view>
7171
<view v-if="isIOS" class="row">
7272
<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"
7474
@click="handleCheckIOSCalendarPermission"
7575
>
7676
iOS - 是否开启日历权限
7777
</button>
7878
</view>
7979
<view v-if="isIOS" class="row">
8080
<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"
8282
@click="handleCheckIOSMemoPermission"
8383
>
8484
iOS - 是否开启备忘录权限
8585
</button>
8686
</view>
8787
<view v-if="isAndroid" class="row">
8888
<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"
9090
@click="handleCheckAndroidNotExistPermission"
9191
>
9292
Android - 是否开启不存在权限
9393
</button>
9494
</view>
9595
<view v-if="isAndroid" class="row">
9696
<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"
9898
@click="handleCheckAndroidCameraPermission"
9999
>
100100
Android - 是否开启摄像头权限
101101
</button>
102102
</view>
103103
<view v-if="isAndroid" class="row">
104104
<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"
106106
@click="handleCheckAndroidMultiPermissions"
107107
>
108108
Android - 是否开启摄像头、位置和麦克风权限

0 commit comments

Comments
 (0)