-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathget-battery-info.wxml
More file actions
33 lines (31 loc) · 1.17 KB
/
get-battery-info.wxml
File metadata and controls
33 lines (31 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<import src="/common/head.wxml" />
<import src="/common/foot.wxml" />
<view class="container page" data-weui-theme="{{theme}}">
<template is="head" data="{{title: 'getBatteryInfo'}}"/>
<view class="page-body">
<view class="page-section">
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell weui-cell_input">
<view class="weui-cell__hd">
<view class="weui-label">当前电量</view>
</view>
<view class="weui-cell__bd">
<input class="weui-input" type="text" disabled="{{true}}" placeholder="未获取" value="{{level}}"></input>
</view>
</view>
<view class="weui-cell weui-cell_input">
<view class="weui-cell__hd">
<view class="weui-label">电池模式</view>
</view>
<view class="weui-cell__bd">
<input class="weui-input" type="text" disabled="{{true}}" placeholder="未获取" value="{{isCharging}}"></input>
</view>
</view>
</view>
<button type="primary" bind:tap="getBatteryInfo" >
获取电量信息信息
</button>
</view>
</view>
<template is="foot" />
</view>