-
Notifications
You must be signed in to change notification settings - Fork 155
Update my.getSystemInfo.md #2103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jujubefoxx
wants to merge
2
commits into
AlipayDocs:main
Choose a base branch
from
jujubefoxx:patch-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,10 +75,32 @@ success 回调函数会携带一个 Object 类型的对象,其属性如下: | |
| | screen | Object | 屏幕宽度和高度。结构为: { width: Number, height: Number } 单位:px。 | | ||
| | screenWidth | Number | 屏幕宽度。单位:px。此属性在 Android 上取值有误,**建议使用 screen.width 替代。** | | ||
| | screenHeight | Number | 屏幕高度。单位:px。此属性在 Android 上取值有误,**建议使用 screen.height 替代。** | | ||
| | safeArea | Object | 在竖屏正方向下的安全区域。单位:px。| | ||
| | safeArea | Object | 在竖屏正方向下的安全区域插入位置。单位:px。| | ||
| | brand | String | 手机品牌。 | | ||
| | fontSizeSetting | Number | 用户设置字体大小。单位:px | | ||
| | app | String | 当前运行的客户端。若当前为支付宝,则有效值为 "alipay"。不同的客户端,对应的有效值如下:<ul><li>alipay:支付宝。</li><li>UC:UC 浏览器。</li><li>QUARK:夸克浏览器。</li><li>AK:阿里健康。</li><li>amap:高德。</li><li>YK:优酷。</li><li>DINGTALK:钉钉。</li></ul> | | ||
|
|
||
| #### safeArea 返回值说明 | ||
|
|
||
| | **手机型号** | **类型** | **说明** | | ||
| | ----------------- | -------------- | ------------------------- | | ||
| | top | number | 安全区域左上角纵坐标 | | ||
| | bottom | number | 安全区域右下角纵坐标 | | ||
| | left | number | 安全区域左上角横坐标 | | ||
| | right | number | 安全区域右上角横坐标 | | ||
| | height | number | 安全区域的高度 | | ||
| | width | number | 安全区域的宽度 | | ||
|
|
||
| #### safeAreaInsets 返回值说明 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 没有 safeAreaInsets 这个出参
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| | **手机型号** | **类型** | **说明** | | ||
| | ----------------- | -------------- | ------------------------- | | ||
| | top | number | 安全区顶部插入位置 | | ||
| | bottom | number | 安全区底部插入位置 | | ||
| | left | number | 安全区域左侧插入位置 | | ||
| | right | number | 安全区域右侧插入位置 | | ||
|
|
||
| #### model 参数 | ||
|
|
||
| 对于 iPhone,model 参数将返回 iPhone 内部代码(Internal Name)。iPhone 手机型号与对应的 model 返回值如下表所示: | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right、安全区域右下角横坐标。目前 safeArea 线上还是有问题的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
safeArea 出参的话线上目前安卓是没有对齐的,所以暂时不予上线