1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

20 lines
912 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.

<!--pages/index/index.wxml-->
<view>
<image src="../../image/home.jpg" style="width: 100vw; height: 41.5vw;"></image>
<view class="welcome-text">
<text>欢迎你,{{ displayUsername }}</text>
</view>
<view>
</view>
<view id="menu-view">
<view class="menu-item" wx:for="{{ filterMenuItems }}" wx:for-item="menuItem" wx:key="id">
<view class="{{ menuItem.addDot ? 'add-dot' : '' }}" style="display: inline-block;">
<image src="../../image/icon/{{ menuItem.image }}" class="item-image" bindtap='switchTo' data-switchfunc="{{menuItem.switchFunc}}" data-pageurl="{{menuItem.url}}"></image>
</view>
<view>{{ menuItem.title }}</view>
</view>
</view>
<button type="primary" size="mini" bindtap="toggleDot">切换小红点</button>
<button type="warn" size="mini" bindtap="magicButton">扫描门禁</button>
<text>调试信息:{{ debugText }}</text>
</view>