<!-- 若是没有登录就显示登录界面 -->
<block wx:if="{{login}}">
    <!-- logo -->
    <view class="logo" hover-class="none" hover-stop-propagation="false">
        <image class="logoImg" src="/image/logo.png" mode="widthFix" lazy-load="false"></image>
    </view>
    <!-- 登录按钮 -->
    <view class="loginButton" hover-class="none" hover-stop-propagation="false">
        <view class="wechatLogin">
            <button open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">
                <text class="icon-message"></text>  微信登录
            </button>
        </view>
        <view class="phoneLogin">
            <button>手机号登录</button>
        </view>
    </view>
</block>
<block wx:else>
    <!-- 搜索框 -->
    <search></search>
    <!-- 功能栏 -->
    <view class="titleBar">
      <view class="itemTitle {{index == currentIndex ? 'active' : ' '}}" 
        data-index="{{index}}" bindtap="checkItem" wx:for="{{content}}" wx:key="index">
          {{item.text}}
      </view>
    </view>
    <view class="collectionContent">
      暂无内容
    </view>
</block>