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

21 lines
1008 B
Plaintext
Raw Normal View History

<!--pages/index/index.wxml-->
<view>
<image src="../../image/home.jpg" style="width: 100vw; height: 41.5vw;"></image>
<view style="display: block; padding-left: 30px; padding-top: 12px;">
<text>欢迎你,{{ displayUsername }}</text>
</view>
<view>
<text>调试信息:{{ debugText }}</text>
</view>
<view id="menu-view">
<view class="menu-item" v-for="menuItem in filterMenuItems" :key="menuItem.id">
<view :class="{ 'add-dot': menuItem.addDot }" style="display: inline-block;">
<image :src="'../../image/icon/' + menuItem.image" class="item-image" bindtap='switchTo(menuItem.switchFunc, menuItem.url)'></image>
</view>
<view>{{ menuItem.title }}</view>
</view>
</view>
<button type="primary" size="mini" bindtap="toggleDot('code', true)">显示小红点</button>
<button type="primary" size="mini" bindtap="toggleDot('code', false)">隐藏小红点</button>
<button type="warn" size="mini" bindtap="magicButton">魔法按钮</button>
</view>