<view class="bg" wx:if="{{userinfo.id}}">
      <view class="info">
        <view class='avatar'>
            <image style="width:100%;height:100%;"  src="{{userinfo.avatar}}"></image>
        </view>
        <view class="name">
            <view>{{userinfo.username}}</view>
            <text wx:if='{{userinfo.id}}'>代码：{{userinfo.usercode}}</text>
        </view>
        <navigator  url="../homepage/homepage?user_id={{userinfo.id}}&type=1" class="mine">我的主页</navigator>
      </view>
      <view  wx:if='{{todayinfo.today_fund}}' class="today">
      <navigator hover-class="none"  url="../today/today?id={{todayinfo.match_id}}&record_id={{todayinfo.id}}&user_id={{todayinfo.user_id}}">
      
      <view class="money">
        <text class="{{todayinfo.today_income_fund < 0 ?'down':'up'}}">{{todayinfo.today_income_fund}}  </text>
        <text class="{{todayinfo.today_income[0]=='-' ?'todaydown':'todayup'}}">{{todayinfo.today_income}}</text>
        <text class="today_text">今日收益</text>
      </view>
      <view class="date">
        <text>日期 <text>{{todayinfo.stock_date}}</text> </text>
        <text>排名 <text>{{todayinfo.group_rank==null?'无':todayinfo.group_rank}}</text> </text>
      </view>
      <view class="date">
        <text>资产 <text>{{todayinfo.today_fund}}w</text> </text>
        <text >总收益 <text class="{{todayinfo.total_income[0]=='-' ?'down':'up'}}"> {{todayinfo.total_income}}</text></text>
      </view>
      </navigator>
      <navigator class="msg"  hover-class="none"  url="../today/today?id={{todayinfo.match_id}}&record_id={{todayinfo.id}}&user_id={{todayinfo.user_id}}">
        <view ><image mode="widthFix" src="../../images/msg.png"></image>{{todayinfo.comments_count}}</view>
        <view><image mode="widthFix" src="../../images/zan.png"></image>{{todayinfo.zan_count}}</view>
      </navigator>
      </view>


      <view class="list" style="padding:0 30rpx;background:#fff;">
        <navigator hover-class="none"  class="item" url="../message/message">
            咨询我们
              <button class="contactus"></button>
              <image mode="widthFix" src="../../images/right_icon.png"></image>
        </navigator>
        <navigator hover-class="none"  class="item" url="../aboutus/aboutus">
            关于我们  <image mode="widthFix" src="../../images/right_icon.png"></image>
        </navigator>
        <navigator hover-class="none" style="border:none"   class="item" bindtap="logout">
            退出登录  <image mode="widthFix" src="../../images/right_icon.png"></image>
        </navigator> 
      </view>  
      
      <view class="shenming" >
        <view class="shenming_text">
        郑重声明:用户在比赛社区发表的所有信息(包括但不限于文字、数据及图表)仅代表个人观点，与本应用立场无关，不对您构成任何投资建议，据此操作风险自担。请勿相信代客理财、免费荐股和炒股培训等宣传内容，远离非法证券活动。请勿添加发言用户的手机号码、公众号、微博、微信及QQ等信息，谨防上当受骗!
        </view>
      </view>
  
</view>

<view class="no_login" wx:if="{{!userinfo.id}}">
  <view class="title">欢迎来到湖南顽主杯实盘大赛</view>
    <view class='avatar'>
            <image src="../../images/logo.png"></image>
    </view>
  <navigator url="../login/user"><image style="width: 24px;" mode="widthFix" src="../../images/bs.png"></image>报名参赛(做选手)</navigator>
  <navigator style="background: none;color:#D94B24;" url="../login/user"><image style="width: 24px;" mode="widthFix" src="../../images/yk.png"></image>访问系统(不参赛)</navigator>
  <navigator style="background: none;color:#D94B24;" url="../login/user"><image style="width: 18px;" mode="widthFix" src="../../images/zx.png"></image>咨询顽主</navigator>
</view>
