效果预览
<!--index.wxml-->
<view class='page'>
<view class='nav'>
<view bindtap='click1' class='{
{nav1}}'>
<text>待办</text>
</view>
<view bindtap='click2' class='{
{nav2}}'>
<text>已办</text>
</view>
</view>
<view class='body'>
<!-- 待办开始 -->
<view wx:if="{
{condition1}}">
<view class='guide'>
<text>单机完成事项</text>
</view>
<view class='list1' wx:for="{
{array}}" id='{
{index}}