<wxs module="filters" src="../../utils/toFixed.wxs" />
<!--index.wxml-->
<!-- <view   class="marquee_container"  
  style="{{'--marqueeWidth--:'+-12*notices.length+'em'}}">
    <view class="zd"></view>
    <image src="../../images/tttz.png" mode="widthFix"></image>
      <view class="marquee_text">
        <navigator hover-class="none" url="../detail/detail?id={{item.id}}" wx:for="{{notices}}">{{item.name}}</navigator>
      </view>
  </view> -->

<view class="list-top">
    <navigator url="../stock/stock?type=1&stock_date={{date}}">
      <image mode="widthFix" src="../../xiao/rmgp@2x.png"></image>
      热门股票
    </navigator>
    <navigator url="../hotuser/hotuser">
      <image mode="widthFix" src="../../xiao/rmxs@2x.png"></image>
      热门选手
    </navigator>
    <navigator url="../tlb/tlb?match_id={{winLost.match_id}}">
      <image mode="widthFix" src="../../xiao/jryk@2x.png"></image>
      屠龙榜
    </navigator>
    <navigator url="../baike/baike">
      <image mode="widthFix" src="../../xiao/baike@2x.png"></image>
      短线百科
    </navigator>
    <navigator url="../todayExp/todayExp">
      <image mode="widthFix" src="../../xiao/jrly@2x.png"></image>
      今日留言
    </navigator>
    <navigator url="../myfollow/myfollow">
      <image mode="widthFix" src="../../xiao/wdgz@2x.png"></image>
      我的关注
    </navigator>
    <navigator url="../article/article?type=游资专场">
      <image mode="widthFix" src="../../xiao/yzzc@2x.png"></image>
      游资专场
    </navigator>
    <navigator url="../article/article?type=冠军交割">
      <image mode="widthFix" src="../../xiao/gjjg@2x.png"></image>
      冠军交割
    </navigator>
    <navigator url="../article/article?type=牛人专场">
      <image mode="widthFix" src="../../xiao/nrzc@2x.png"></image>
      牛人专场
    </navigator>
    <navigator url="../article/article?type=妖股列传">
      <image mode="widthFix" src="../../xiao/yglz@2x.png"></image>
      妖股列传
    </navigator>
</view>

<swiper class="banner-list" 	indicator-active-color='#FF5800'	indicator-color='rgba(255,255,255,.6)'  indicator-dots='{{true}}'>
        <block wx:for="{{banners}}" wx:key="*this">
          <swiper-item>
            <navigator url="../detail/detail?id={{item.id}}"><image mode="widthFix" src="{{item.img}}"></image></navigator>
            <view class="name">{{item.name}}</view>
          </swiper-item>
        </block>
</swiper>

<view class="notice">
  <view>
    <image mode="widthFix" src="../../xiao/gonggao@2x.png"></image>
    <text>公告：</text>
  </view>
  <view class="notice-list">
        <navigator hover-class="none" url="../detail/detail?id={{item.id}}" wx:for="{{notices}}">{{item.name}}</navigator>
  </view>
</view>

<view class="up-down-view">
  <view class="up-title">
        {{winLost.match_name}}
        <navigator url="../winlost/winlost">历届最高<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>
  </view>
  <scroll-view 	scroll-x='{{true}}' >
    <view class="content-list">
      <view class="up-down">
        <text>盈利榜</text>
        <navigator wx:for="{{winLost.total_income_up}}" hover-class="none"  url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
            <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
            <text wx:else class="number">{{index+1}}</text>
            <image class="avatar"   src="{{filters.defaultImg(item.avatar)}}"></image>
            <text class="usm">{{item.username}}</text>
            <text class="up">{{ filters.toFix2(item.total_income*100)}}%</text>
        </navigator>
      </view>
      <view class="up-down">
        <text>赚钱榜</text>
        <navigator wx:for="{{winLost.total_win_up}}" hover-class="none"  url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
            <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
            <text wx:else class="number">{{index+1}}</text>
            <image class="avatar"  src="{{filters.defaultImg(item.avatar)}}"></image>
            <text class="usm">{{item.username}}</text>
            <text class="up">{{ filters.toFix2(item.total_win)}}w</text>
        </navigator>
      </view>
      <view class="up-down">
        <text>亏损榜</text>
        <navigator wx:for="{{winLost.total_income_down}}" hover-class="none"  url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
            <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
            <text wx:else class="number">{{index+1}}</text>
            <image class="avatar"   src="{{filters.defaultImg(item.avatar)}}"></image>
            <text class="usm">{{item.username}}</text>
            <text class="down">{{ filters.toFix2(item.total_income*100)}}%</text>
        </navigator>
      </view>
      <view class="up-down">
        <text>亏钱榜</text>
        <navigator wx:for="{{winLost.total_win_down}}" hover-class="none"  url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
            <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
            <text wx:else class="number">{{index+1}}</text>
            <image class="avatar"   src="{{filters.defaultImg(item.avatar)}}"></image>
            <text class="usm">{{item.username}}</text>
            <text class="down">{{ filters.toFix2(item.total_win)}}w</text>
        </navigator>
      </view>
    </view>
  </scroll-view>
</view>

<view class="up-down-view">
  <scroll-view scroll-x='{{true}}'>
    <view class="content-list">
      <view class="up-down">
        <view class="article-title"> <navigator url="../article/article?type=游资专场">more<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>游资专场</view>
        <navigator wx:for="{{articleList1}}" wx:if="{{index<5}}" hover-class="none" url="../detail/detail?id={{item.id}}" >
          <text class="article-name">{{item.name}}</text>
          <image class="article-img" mode="aspectFill" src="{{item.img}}"></image>
        </navigator>
      </view>
      <view class="up-down">
        <view class="article-title"> <navigator url="../article/article?type=冠军交割">more<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>冠军交割</view>
        <navigator wx:for="{{articleList2}}" wx:if="{{index<5}}" hover-class="none" url="../detail/detail?id={{item.id}}" >
          <text class="article-name">{{item.name}}</text>
          <image class="article-img" mode="aspectFill" src="{{item.img}}"></image>
        </navigator>
      </view>
      <view class="up-down">
        <view class="article-title"> <navigator url="../article/article?type=牛人专场">more<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>牛人专场</view>
        <navigator wx:for="{{articleList3}}" wx:if="{{index<5}}" hover-class="none" url="../detail/detail?id={{item.id}}" >
          <text class="article-name">{{item.name}}</text>
          <image class="article-img" mode="aspectFill" src="{{item.img}}"></image>
        </navigator>
      </view>
      <view class="up-down">
        <view class="article-title"> <navigator url="../article/article?type=妖股列传">more<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>妖股列传</view>
        <navigator wx:for="{{articleList4}}" wx:if="{{index<5}}" hover-class="none" url="../detail/detail?id={{item.id}}" >
          <text class="article-name">{{item.name}}</text>
          <image class="article-img" mode="aspectFill" src="{{item.img}}"></image>
        </navigator>
      </view>
    </view>
  </scroll-view>
</view>


<view class="baike">
        <view class="article-title"> <navigator url="../baike/baike">更多<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>短线百科</view>
        <navigator wx:for="{{baikeList}}" class="baike-list" url="../detail/detail?id={{item.category_id}}&type=百科">
          <view>{{item.name}}</view>
          <view class="baike-info">
            <image wx:if='{{item.img}}' mode="aspectFill" src="{{item.img}}"></image>
            <image wx:else mode="aspectFill" src="../../xiao/default_img@2x.png"></image>
            <text>{{item.intro}}</text>
          </view>
        </navigator>
</view>



<view class="tab">
    <view wx:for='{{tabs}}' bindtap="tabChange" data-id='{{index}}' class="{{index==cur?'act':''}}">{{item}}</view>
</view>

<swiper class="swiper-content" current='{{cur}}'  bindchange='curChange'>
  <swiper-item>
      <scroll-view  scroll-y='{{true}}'  bindscrolltolower='next1'>
          <view  class="item1" wx:for='{{explist}}'>
            <navigator hover-class="none"  url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
              <view class="relist">
                <image  src="{{filters.defaultImg(item.avatar)}}"></image>
                  <view class="msg">
                      <text class="name">{{item.username}}</text>
                  </view>
                  <view class="msg">
                      <text class="date">{{item.stock_date}}</text>
                  </view>
              </view>
              <view class="item_money"><label class="item_money_title">资产 </label>{{item.today_fund}}w <label class="item_money_title"> 总收益 </label> <label class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</label>  <label class="item_money_title"> 今日收益 </label><label class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</label>
              </view>

              <view class="content" wx:if="{{item.experience}}">{{item.experience}}</view>
              <view class="recomment">
                  <image mode="widthFix" src="../../images/msg.png"></image>
                  <text>{{item.comments_count}}</text>
                  <image mode="widthFix" src="../../images/zan.png"></image>
                  <text>{{item.zans_count}}</text>
              </view>
              </navigator>
          </view>
          <block wx:if='{{total1 >= 20}}'>
            <view class='loading' wx:if='{{explist.length < total1}}'>上拉加载更多...</view>
          </block>
      </scroll-view>
  </swiper-item>
  <swiper-item>
      <scroll-view   upper-threshold="0" bindscrolltoupper='fresh' scroll-y='{{true}}' bindscrolltolower='next2'>
          <view wx:if='{{loading}}' class="loading">下拉刷新</view>
          <view  class="item1" wx:for='{{followList}}'>
            <navigator hover-class="none"  url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
              <view class="relist">
                <image  src="{{filters.defaultImg(item.avatar)}}"></image>
                  <view class="msg">
                      <text class="name">{{item.username}}</text>
                  </view>
                  <view class="msg">
                      <text class="date">{{item.stock_date}}</text>
                  </view>
              </view>
              <view class="item_money"><label class="item_money_title">资产 </label>{{item.today_fund}}w <label class="item_money_title"> 总收益 </label> <label class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</label>  <label class="item_money_title"> 今日收益 </label><label class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</label>
              </view>
              <view class="content" wx:if="{{item.experience}}">{{item.experience}}</view>
              <view class="imgs">
                <image wx:for='{{item.today_stock_img}}' wx:for-item='i'  catchtap="preview" data-src='{{i}}' data-urls='{{item.today_stock_img}}'
                 class="img" src="{{i}}"  mode="heightFix"></image>
              </view> 
              <view class="recomment">
                  <image mode="widthFix" src="../../images/msg.png"></image>
                  <text>{{item.comments_count}}</text>
                  <image mode="widthFix" src="../../images/zan.png"></image>
                  <text>{{item.zan_count}}</text>
              </view>
            </navigator>
              
          </view>
          <block wx:if='{{total2 >= 20}}'>
            <view class='loading' wx:if='{{followList.length < total2}}'>上拉加载更多...</view>
          </block>
          <block wx:if='{{total2 == 0}}'>
            <view class='loading' style="margin-top:200rpx;">暂无关注选手</view>
          </block>
      </scroll-view>
  </swiper-item>
  
</swiper>