我使用 Ionic FabButton 作为固定位置内容上方的浮动按钮。我的代码是:-
<ion-fab bottom right class="fab-image" (tap)="nextStep()">
<button ion-fab style="display: none;"></button>
<img src="assets/icon/custom/green_arrow.png" alt="">
</ion-fab>
Run Code Online (Sandbox Code Playgroud)
我的 CSS 如下fab-image:-
.fab-image{
position: fixed !important;
width: 62px;
}
Run Code Online (Sandbox Code Playgroud)
现在它在 Android 上运行得很好:-
在 iPhone 中它的工作原理如下:
问题是 iPhone 上的故障。fab 按钮随着屏幕移动而移动。有什么想法如何解决这个问题吗?
我想在不请求身份验证服务的情况下只授予我的 firestore 数据库集合中的一个字段的写入/更新访问权限。我的firestore规则是:
service cloud.firestore {
match /databases/{database}/documents {
match /businesses/{businessId} {
allow read;
allow write: if request.auth.uid != null;
}
}
}
Run Code Online (Sandbox Code Playgroud)
我的数据库结构businesses是:
addedBy: string;
address: string;
category: string;
claim: boolean;
city: string;
email: string;
id: string;
likes: number;
location: {
_lat: number,
_long: number
};
name: string;
ocHours: [{
day: string,
from: string,
status: string,
to: string
}];
phone: number;
sponsored: boolean;
state: string;
status: string;
verificationCode: string;
Run Code Online (Sandbox Code Playgroud)
我只想更新claim没有request.auth.uid != null.
有什么建议?