search.wxml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <view class="search">
  2. <image mode="heightFix" src="../../images/ss1.png"></image>
  3. <input bindinput="inputChange" placeholder-style="color:#999;" placeholder="选手名"></input>
  4. <text bindtap="search">搜索</text>
  5. </view>
  6. <view class="picker_tab">
  7. <picker value="{{index1}}" range="{{arr1}}" data-item='zq' data-id='1' bindchange="bindDateChange">
  8. <view class="picker">
  9. <text wx:if='{{index1<0}}'>周期</text>
  10. {{arr1[index1]}}
  11. <image mode="heightFix" src="../../images/icon_down@2x.png"></image>
  12. </view>
  13. </picker>
  14. <picker value="{{index2}}" range="{{arr2}}" data-item='cw' data-id='2' bindchange="bindDateChange">
  15. <view class="picker">
  16. <text wx:if='{{index2<0}}'>仓位</text>
  17. {{arr2[index2]}}
  18. <image mode="heightFix" src="../../images/icon_down@2x.png"></image>
  19. </view>
  20. </picker>
  21. <picker value="{{index3}}" range="{{arr3}}" data-item='df' data-id='3' bindchange="bindDateChange">
  22. <view class="picker">
  23. <text wx:if='{{index3<0}}'>打法</text>
  24. {{arr3[index3]}}
  25. <image mode="heightFix" src="../../images/icon_down@2x.png"></image>
  26. </view>
  27. </picker>
  28. </view>
  29. <scroll-view scroll-y='{{true}}' bindscrolltolower='next'>
  30. <navigator hover-class="none" url="../homepage/homepage?user_id={{item.user_id}}" class="player" wx:for='{{list}}'>
  31. <view class="name">{{item.username}} <text>{{item.badge}}</text></view>
  32. <view class="info" wx:if='{{item.style.length>0}}'>风格:
  33. <label class="tag" wx:for='{{item.style}}' wx:for-item='i'>{{i}}</label>
  34. </view>
  35. <view class="info">资产:
  36. <view><label>{{item.fund}}w</label>
  37. (今日收益 <text class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>
  38. 总收益<text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>)
  39. </view>
  40. </view>
  41. </navigator>
  42. <block wx:if='{{total >= 20}}'>
  43. <view class='loading' wx:if='{{list.length < total}}'>上拉加载更多...</view>
  44. </block>
  45. <view wx:if="{{list.length<=0&&show}}" class="not_data">-暂无数据-</view>
  46. </scroll-view>