Files
xhs-examples/xhs-mini-demos/api-case/get-system-info/get-system-info.xhsml
2025-09-14 00:21:54 +08:00

18 lines
879 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="container">
<showbox title="获取手机信息">
<box>
<view class="_ui-space">
<view>手机品牌:{{systemInfo.brand}}</view>
<view>手机型号:{{systemInfo.model}}</view>
<view>小红书语言:{{systemInfo.language}}</view>
<view>小红书版本:{{systemInfo.version}}</view>
<view>屏幕宽度:{{systemInfo.windowWidth}}</view>
<view>屏幕高度:{{systemInfo.windowHeight}}</view>
<view>DPR{{systemInfo.pixelRatio}}</view>
<button class="_ui-button" hover-class="_ui-button-hover" bindtap="getSystemInfo">获取手机系统信息</button>
<button class="_ui-button" hover-class="_ui-button-hover" bindtap="getSystemInfoSync">同步获取手机系统信息</button>
</view>
</box>
</showbox>
</view>
<include src="templates.xhsml" />