index.wxml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <!--index.wxml-->
  2. <view class="marquee_container"
  3. style="{{'--marqueeWidth--:'+-12*notices.length+'em'}}">
  4. <view class="zd"></view>
  5. <image src="../../images/tttz.png" mode="widthFix"></image>
  6. <view class="marquee_text">
  7. <navigator hover-class="none" url="../detail/detail?id={{item.id}}" wx:for="{{notices}}">{{item.name}}</navigator>
  8. </view>
  9. </view>
  10. <view class="tab">
  11. <view wx:for='{{tabs}}' bindtap="tabChange" data-id='{{index}}' class="{{index==cur?'act':''}}">{{item}}</view>
  12. </view>
  13. <swiper current='{{cur}}' bindchange='curChange'>
  14. <swiper-item>
  15. <scroll-view upper-threshold="0" bindscrolltoupper='fresh' scroll-y='{{true}}' bindscrolltolower='next'>
  16. <view wx:if='{{loading}}' class="loading">下拉刷新</view>
  17. <view class="item1" wx:for='{{followList}}'>
  18. <navigator hover-class="none" url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
  19. <view class="relist">
  20. <image src="{{item.avatar}}" ></image>
  21. <view class="msg">
  22. <text class="name">{{item.username}}</text>
  23. <view>日期:{{item.stock_date}}(今日收益 <label class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</label>)
  24. </view>
  25. <view>资产:{{item.today_fund}}w(总收益 <label class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</label>|胜率 {{item.win_rate}})</view>
  26. </view>
  27. </view>
  28. <view class="content" wx:if="{{item.experience}}">{{item.experience}}</view>
  29. <view class="imgs">
  30. <image wx:for='{{item.today_stock_img}}' wx:for-item='i' catchtap="preview" data-src='{{i}}' data-urls='{{item.today_stock_img}}'
  31. class="img" src="{{i}}" mode="heightFix"></image>
  32. </view>
  33. <view class="recomment">
  34. <image mode="widthFix" src="../../images/msg.png"></image>
  35. <text>{{item.comments_count}}</text>
  36. <image mode="widthFix" src="../../images/zan.png"></image>
  37. <text>{{item.zan_count}}</text>
  38. </view>
  39. <!-- <view class="name">{{item.username}} <text wx:if='{{item.badge}}'>{{item.badge}}</text>
  40. <view>TOP <text>{{item.group_rank}}</text></view></view>
  41. <view class="info">
  42. 日期: <view>{{item.stock_date}}(今日收益
  43. <text class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</text>)</view>
  44. </view>
  45. <view class="info">
  46. 资产: <view><label>{{item.today_fund}}w</label> (总收益
  47. <text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>
  48. 胜率<text class="{{item.win_rate[0]=='-' ?'down':'up'}}"> {{item.win_rate}}</text>
  49. )</view>
  50. </view>
  51. <view class="info">
  52. 持仓:
  53. <view wx:if='{{item.is_markt}}'>开超市</view>
  54. <view wx:elif='{{item.today_stock.length>0}}'>
  55. <block wx:for="{{item.today_stock}}" wx:for-item='i'> {{i.name}}({{i.fund}}w) </block>
  56. </view>
  57. <view wx:else>空仓</view>
  58. </view>-->
  59. </navigator>
  60. </view>
  61. <block wx:if='{{total >= 20}}'>
  62. <view class='loading' wx:if='{{followList.length < total}}'>上拉加载更多...</view>
  63. </block>
  64. <block wx:if='{{total == 0}}'>
  65. <view class='loading' style="margin-top:200rpx;">暂无关注选手</view>
  66. </block>
  67. </scroll-view>
  68. </swiper-item>
  69. <swiper-item>
  70. <view class="item2">
  71. <picker mode="date" value="{{date}}" bindchange="bindDateChange">
  72. <view class="date-picker">
  73. {{date}}
  74. <image style="width:24rpx;" mode="widthFix" src="../../images/icon_down@2x.png"></image>
  75. </view>
  76. </picker>
  77. <view class="hot">
  78. <!-- <view class="tab1">热门持仓</view>
  79. -->
  80. <!-- <view class="hot_tab">
  81. <view bindtap="tabChange1" data-id='0' class="{{hot==0?'act1':''}}">今日热门 <text></text></view>
  82. <view bindtap="tabChange1" data-id='1' class="{{hot==1?'act1':''}}">我的自选 <text></text></view>
  83. </view> -->
  84. <scroll-view style="padding:0;" scroll-y='{{true}}' style="height:calc(100vh - 377rpx);">
  85. <view wx:if='{{hot==0}}'>
  86. <navigator hover-class="none" url="../stock/stock?id={{item.id}}&date={{date}}" class="gp" wx:for='{{hotbuyList}}' wx:if='{{index<10}}'>
  87. <image wx:if='{{index==0}}' mode="widthFix" src="../../images/1.png"></image>
  88. <image wx:if='{{index==1}}' mode="widthFix" src="../../images/2.png"></image>
  89. <image wx:if='{{index==2}}' mode="widthFix" src="../../images/3.png"></image>
  90. <text class="rank" wx:if='{{index>2}}'>{{index+1}}</text>
  91. <view class="gp-name">{{item.stock_name}}</view>
  92. <view class="num"> <text>{{item.count}}</text> 人持仓</view>
  93. <view class="comment"><text>留言 {{item.comments_count}} 条</text></view>
  94. </navigator>
  95. <navigator hover-class="none" url="../stock/stock?date={{date}}&type=1" class="more">查看更多 <image mode="widthFix" src="../../images/right_icon.png"></image></navigator>
  96. </view>
  97. <view wx:if='{{hot==1}}'>
  98. <navigator hover-class="none" url="../stock/stock?id={{item.stock_id}}&date={{date}}" class="gp" wx:for='{{myList}}'>
  99. <!-- <image wx:if='{{index==0}}' mode="widthFix" src="../../images/1.png"></image>
  100. <image wx:if='{{index==1}}' mode="widthFix" src="../../images/2.png"></image>
  101. <image wx:if='{{index==2}}' mode="widthFix" src="../../images/3.png"></image> -->
  102. <text class="rank">{{index+1}}</text>
  103. <view class="gp-name">{{item.stock_name}}</view>
  104. <view class="num"> <text>{{item.count}}</text> 人持仓</view>
  105. <view class="comment"><text>留言 {{item.comments_count}} 条</text>|<text>跟踪 {{item.choice_count}} 人</text></view>
  106. </navigator>
  107. <view class="loading" wx:if='{{!myList}}'>暂无数据</view>
  108. </view>
  109. </scroll-view>
  110. </view>
  111. <!-- <view class="hot">
  112. <view class="tab2">热门清仓</view>
  113. <navigator hover-class="none" url="../stock/stock?id={{item.id}}&date={{date}}&type=2" class="gp" wx:for='{{hotsellList}}' wx:if='{{index<3}}'>
  114. <image wx:if='{{index==0}}' mode="widthFix" src="../../images/1.png"></image>
  115. <image wx:if='{{index==1}}' mode="widthFix" src="../../images/2.png"></image>
  116. <image wx:if='{{index==2}}' mode="widthFix" src="../../images/3.png"></image>
  117. <view class="gp-name">{{item.stock_name}}</view>
  118. <view class="num">清仓 <text>{{item.count}}</text> 人</view>
  119. </navigator>
  120. <navigator hover-class="none" url="../stock/stock?date={{date}}&type=2" class="more">查看更多 <image mode="widthFix" src="../../images/right_icon.png"></image></navigator>
  121. </view> -->
  122. </view>
  123. </swiper-item>
  124. <swiper-item>
  125. <scroll-view scroll-y='{{true}}' bindscrolltolower='next3'>
  126. <view class="item3">
  127. <navigator hover-class="none" class="win" wx:for='{{hotFollowList}}' url="../today/today?id={{item.match_id}}&user_id={{item.id}}">
  128. <image wx:if='{{index==0}}' mode="widthFix" src="../../images/1.png"></image>
  129. <image wx:if='{{index==1}}' mode="widthFix" src="../../images/2.png"></image>
  130. <image wx:if='{{index==2}}' mode="widthFix" src="../../images/3.png"></image>
  131. <text class="rank" wx:if='{{index>2}}'>{{index+1}}</text>
  132. <view class="name">
  133. {{item.player_name}} <text>{{item.badge}}</text>
  134. <view>关注
  135. <text>{{item.count}}</text>
  136. </view>
  137. </view>
  138. <view class="info" wx:if='{{item.style.length>0}}'>风格:
  139. <label class="tag" wx:for='{{item.style}}' wx:for-item='i'>{{i}}</label></view>
  140. <view class="info">
  141. 资产:
  142. <view><label>{{item.today_fund}}w</label>(总收益 <text class="{{item.total_income[0]=='-' ?'down':'up'}}"> {{item.total_income}} </text>
  143. <text style="color:#F5F5F5;"> | </text>
  144. <text style="color:#666;">胜率</text>
  145. <text class="{{item.win_rate[0]=='-' ?'down':'up'}}"> {{item.win_rate}} </text>)
  146. </view>
  147. </view>
  148. </navigator>
  149. </view>
  150. <block wx:if='{{total3 >= 20}}'>
  151. <view class='loading' wx:if='{{hotFollowList.length < total3}}'>上拉加载更多...</view>
  152. </block>
  153. </scroll-view>
  154. </swiper-item>
  155. <swiper-item>
  156. <scroll-view scroll-y='{{true}}' bindscrolltolower='next5'>
  157. <view class="item1" wx:for='{{explist}}'>
  158. <navigator hover-class="none" url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
  159. <view class="relist">
  160. <image src="{{item.user_avatar}}" ></image>
  161. <view class="msg">
  162. <text class="name">{{item.username}}</text>
  163. <view>资产:{{item.today_fund}}w(总收益 <label class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</label> | 今日收益 <label class="{{item.today_income[0]=='-' ?'down':'up'}}">{{item.today_income}}</label>)</view>
  164. </view>
  165. </view>
  166. <view class="content" wx:if="{{item.experience}}">{{item.experience}}</view>
  167. <view class="recomment">
  168. <image mode="widthFix" src="../../images/msg.png"></image>
  169. <text>{{item.comments_count}}</text>
  170. <image mode="widthFix" src="../../images/zan.png"></image>
  171. <text>{{item.zans_count}}</text>
  172. </view>
  173. </navigator>
  174. </view>
  175. <block wx:if='{{total5 >= 20}}'>
  176. <view class='loading' wx:if='{{explist.length < total5}}'>上拉加载更多...</view>
  177. </block>
  178. </scroll-view>
  179. </swiper-item>
  180. <!-- <swiper-item>
  181. <scroll-view scroll-y='{{true}}' bindscrolltolower='next1'>
  182. <view class="item3">
  183. <view class="exp">释义:开赛以来选手单日收益为正天数占总天数比重,检验进攻稳定性</view>
  184. <navigator hover-class="none" class="win" wx:for='{{winList}}' url="../today/today?id={{item.match_id}}&player_id={{item.player_id}}">
  185. <image wx:if='{{index==0}}' mode="widthFix" src="../../images/1.png"></image>
  186. <image wx:if='{{index==1}}' mode="widthFix" src="../../images/2.png"></image>
  187. <image wx:if='{{index==2}}' mode="widthFix" src="../../images/3.png"></image>
  188. <text class="rank" wx:if='{{index>2}}'>{{index+1}}</text>
  189. <view class="name">
  190. {{item.username}} <text>{{item.badge}}</text>
  191. <view>胜率
  192. <text class="{{item.win_rate[0]=='-' ?'down':'up'}}">{{item.win_rate}}</text>
  193. </view>
  194. </view>
  195. <view class="info" wx:if='{{item.style.length>0}}'>风格:
  196. <label class="tag" wx:for='{{item.style}}' wx:for-item='i'>{{i}}</label></view>
  197. <view class="info">
  198. 资产:
  199. <view><label>{{item.today_fund}}w</label>(总收益 <text class='up'> {{item.total_income}} </text>
  200. <text style="color:#F5F5F5;"> | </text>
  201. <text style="color:#666;">最大回撤</text>
  202. <text class="{{item.badest_income[0]=='-' ?'down':'up'}}"> {{item.badest_income}} </text>)
  203. </view>
  204. </view>
  205. </navigator>
  206. </view>
  207. <block wx:if='{{total1 >= 20}}'>
  208. <view class='loading' wx:if='{{winList.length < total1}}'>上拉加载更多...</view>
  209. </block>
  210. </scroll-view>
  211. </swiper-item> -->
  212. <!-- <swiper-item>
  213. <scroll-view scroll-y='{{true}}' bindscrolltolower='next2'>
  214. <view class="item4">
  215. <view class="exp">释义:开赛以来选手最大单日回撤,检验防守稳固性</view>
  216. <navigator hover-class="none" class="win" wx:for='{{defendList}}' url="../today/today?id={{item.match_id}}&player_id={{item.player_id}}">
  217. <image wx:if='{{index==0}}' mode="widthFix" src="../../images/1.png"></image>
  218. <image wx:if='{{index==1}}' mode="widthFix" src="../../images/2.png"></image>
  219. <image wx:if='{{index==2}}' mode="widthFix" src="../../images/3.png"></image>
  220. <text class="rank" wx:if='{{index>2}}'>{{index+1}}</text>
  221. <view class="name">
  222. {{item.username}} <text>{{item.badge}}</text>
  223. <view>最大回撤
  224. <text class="{{item.badest_income[0]=='-' ?'down':'up'}}">{{item.badest_income}}</text></view>
  225. </view>
  226. <view class="info" wx:if='{{item.style.length>0}}'>风格:
  227. <label class="tag" wx:for='{{item.style}}' wx:for-item='i'>{{i}}</label></view>
  228. <view class="info">
  229. 资产:
  230. <view><label>{{item.today_fund}}w</label>(总收益 <text class="{{item.total_income[0]=='-' ?'down':'up'}}">{{item.total_income}}</text>
  231. <text style="color:#F5F5F5;"> | </text>
  232. 胜率
  233. <text class="{{item.win_rate[0]=='-' ?'down':'up'}}">{{item.win_rate}}</text> )
  234. </view>
  235. </view>
  236. </navigator>
  237. </view>
  238. <block wx:if='{{total2 >= 20}}'>
  239. <view class='loading' wx:if='{{defendList.length < total2}}'>上拉加载更多...</view>
  240. </block>
  241. </scroll-view>
  242. </swiper-item> -->
  243. <swiper-item>
  244. <scroll-view scroll-y='{{true}}' bindscrolltolower='next6'>
  245. <navigator hover-class="none" url="../detail/detail?id={{item.id}}" class="list" wx:for='{{championList}}'>
  246. <view>
  247. <view class="title">
  248. {{item.name}}
  249. </view>
  250. <text>{{item.ctime}}</text>
  251. </view>
  252. <image src="{{item.img}}"></image>
  253. </navigator>
  254. <block wx:if='{{total6 >= 20}}'>
  255. <view class='loading' wx:if='{{championList.length < total6}}'>上拉加载更多...</view>
  256. </block>
  257. </scroll-view>
  258. </swiper-item>
  259. </swiper>