index.wxml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. <wxs module="filters" src="../../utils/toFixed.wxs" />
  2. <!--index.wxml-->
  3. <!-- <view class="marquee_container"
  4. style="{{'--marqueeWidth--:'+-12*notices.length+'em'}}">
  5. <view class="zd"></view>
  6. <image src="../../images/tttz.png" mode="widthFix"></image>
  7. <view class="marquee_text">
  8. <navigator hover-class="none" url="../detail/detail?id={{item.id}}" wx:for="{{notices}}">{{item.name}}</navigator>
  9. </view>
  10. </view> -->
  11. <view class="list-top">
  12. <navigator url="../stock/stock?type=1&stock_date={{date}}">
  13. <image mode="widthFix" src="../../xiao/rmgp@2x.png"></image>
  14. 热门股票
  15. </navigator>
  16. <navigator url="../hotuser/hotuser">
  17. <image mode="widthFix" src="../../xiao/rmxs@2x.png"></image>
  18. 热门选手
  19. </navigator>
  20. <navigator url="../tlb/tlb?match_id={{winLost.match_id}}">
  21. <image mode="widthFix" src="../../xiao/jryk@2x.png"></image>
  22. 屠龙榜
  23. </navigator>
  24. <navigator url="../baike/baike">
  25. <image mode="widthFix" src="../../xiao/baike@2x.png"></image>
  26. 短线百科
  27. </navigator>
  28. <navigator url="../todayExp/todayExp">
  29. <image mode="widthFix" src="../../xiao/jrly@2x.png"></image>
  30. 今日留言
  31. </navigator>
  32. <navigator url="../myfollow/myfollow">
  33. <image mode="widthFix" src="../../xiao/wdgz@2x.png"></image>
  34. 我的关注
  35. </navigator>
  36. <navigator url="../article/article?type=每日点评">
  37. <image mode="widthFix" src="../../xiao/yzzc@2x.png"></image>
  38. 每日点评
  39. </navigator>
  40. <navigator url="../article/article?type=冠军交割">
  41. <image mode="widthFix" src="../../xiao/gjjg@2x.png"></image>
  42. 冠军交割
  43. </navigator>
  44. <navigator url="../article/article?type=牛人专场">
  45. <image mode="widthFix" src="../../xiao/nrzc@2x.png"></image>
  46. 牛人专场
  47. </navigator>
  48. <navigator url="../article/article?type=妖股列传">
  49. <image mode="widthFix" src="../../xiao/yglz@2x.png"></image>
  50. 妖股列传
  51. </navigator>
  52. </view>
  53. <swiper class="banner-list" indicator-active-color='#FF5800' indicator-color='rgba(255,255,255,.6)' indicator-dots='{{true}}'>
  54. <block wx:for="{{banners}}" wx:key="*this">
  55. <swiper-item>
  56. <navigator url="../articleweb/articleweb?id={{item.id}}"><image mode="aspectFill" src="{{item.img}}"></image></navigator>
  57. <view class="name">{{item.name}}</view>
  58. </swiper-item>
  59. </block>
  60. </swiper>
  61. <view class="marquee_container" wx:if="{{info.signup_status==1}}">
  62. <!-- <view class="zd"></view> -->
  63. <!-- <image src="../../images/lb.png" mode="widthFix" class="notice"></image> -->
  64. <view class="marquee_text">
  65. {{info.name}}正在报名中
  66. <text>报名时间: {{info.signup_start_time}} 至 {{info.signup_end_time}}</text>
  67. </view>
  68. <navigator hover-class="none" url="../apply/apply?type=2">马上报名</navigator>
  69. <!-- <image class="signupPoint" mode="widthFix" src="../../images/right.png"></image> -->
  70. </view>
  71. <view class="notice">
  72. <view>
  73. <image mode="widthFix" src="../../xiao/gonggao@2x.png"></image>
  74. <text>公告:</text>
  75. </view>
  76. <view class="notice-list">
  77. <navigator hover-class="none" url="../articleweb/articleweb?id={{item.id}}" wx:for="{{notices}}">{{item.name}}</navigator>
  78. </view>
  79. </view>
  80. <view class="up-down-view" style="padding: 0 25rpx;">
  81. <view class="article-title" style="padding: 20rpx 0;">
  82. <navigator url="">每天
  83. <image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image>
  84. </navigator>
  85. 短线盈亏效应
  86. <view style="font-size: 28rpx;">{{date}}</view>
  87. </view>
  88. <view class="group_list" wx:if='{{groups.today_win_lose_avg}}'>
  89. <view class="g_list" data-index='0' bind:tap="tapGroup">
  90. <image mode="widthFix" wx:if="{{groups.today_win_lose_avg[0]=='-'}}" src="../../images/indexlose@2x.png"></image>
  91. <image mode="widthFix" wx:else src="../../images/indexwin@2x.png"></image>
  92. <view>全体选手</view>
  93. <text class="fund {{groups.today_win_lose_avg[0]=='-' ?'down':'up'}}">{{filters.toFix2(groups.total_fund)}}</text>
  94. <text class="{{groups.today_win_lose_avg[0]=='-' ?'down':'up'}}">{{groups.today_win_lose_avg}}</text>
  95. </view>
  96. <view wx:for='{{groups.group_win_lose_list}}' class="g_list" data-index='{{index+1}}' bind:tap="tapGroup">
  97. <image mode="widthFix" wx:if="{{item.today_income_avg[0]=='-'}}" src="../../images/indexlose@2x.png"></image>
  98. <image mode="widthFix" wx:else src="../../images/indexwin@2x.png"></image>
  99. <view>{{item.name}}</view>
  100. <text class="fund {{item.today_income_avg[0]=='-' ?'down':'up'}}">{{item.today_fund}}</text>
  101. <text class="{{item.today_income_avg[0]=='-' ?'down':'up'}}">{{item.today_income_avg}}</text>
  102. </view>
  103. </view>
  104. </view>
  105. <view class="up-down-view" style="padding: 25rpx;">
  106. <view class="article-title" > 选手人均盈亏</view>
  107. <view wx:if='{{days.length>0}}' class=" ">
  108. <view wx:for='{{days}}' wx:if='{{item.data.length>0}}' class="yk">
  109. <view class="week_name">{{item.name}}</view>
  110. <view class="week_incom">
  111. <view wx:for='{{item.data}}' wx:for-item='week' class="{{week.today_income=='0.0%' ?'none':''}} {{week.today_income[0]=='-' ?'down':'up'}}">
  112. {{week.date}}
  113. <text>{{week.today_income}}</text>
  114. </view>
  115. </view>
  116. <view class="week_total">
  117. 周收益
  118. <text class="{{item.total < 0 ?'down':'up'}}">{{item.total}}%</text>
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. <view wx:if="{{isWeek || isScore}}" class="up-down-view" style="padding: 25rpx;">
  124. <view class="article-title" > 今日市场打分</view>
  125. <view wx:if='{{scoredays.length>0}}' class=" ">
  126. <view wx:for='{{scoredays}}' wx:if='{{item.data.length>0}}' class="yk">
  127. <view class="week_name">{{item.name}}周</view>
  128. <view class="week_incom">
  129. <view wx:for='{{item.data}}' wx:for-item='week' class=" {{week.avg_score < 5 ?'down':'up'}}">
  130. {{week.date}}
  131. <text>{{week.avg_score}}</text>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. <view wx:else class="up-down-view" style="padding: 25rpx;">
  138. <view class="article-title" > 请给今日市场打分</view>
  139. <radio-group bindchange="radioChange">
  140. <view class="score" wx:for="{{socore}}">
  141. <text>{{item}}分</text>
  142. <view>
  143. <view style="background-color: {{filters.getColor()}};width:{{item/10*100}}%"></view>
  144. </view>
  145. <radio value="{{item}}"></radio>
  146. </view>
  147. </radio-group>
  148. </view>
  149. <view class="up-down-view">
  150. <view class="up-title">
  151. {{winLost.match_name}}<label wx:if="{{match_day >= 0}}">开赛第{{match_day}}天</label>
  152. <navigator url="../winlost/winlost">历届<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>
  153. <view style="color: #999;font-size: 24rpx;margin-top: 5px;">比赛日期:{{winLost.start_time}}至{{winLost.end_time}}</view>
  154. </view>
  155. <view class="tab">
  156. <view wx:for='{{tabs1}}' bindtap="tabChange1" data-id='{{index}}' class="{{index==cur1?'act':''}}">{{item}}</view>
  157. </view>
  158. <swiper class="swiper-content" style="padding:0rpx 20rpx;height: 1000rpx;" current='{{cur1}}' bindchange='curChange1'>
  159. <swiper-item class="up-down">
  160. <view class="title_1">
  161. <text>收益率</text><text>资产(w)</text><text>盈利(w)</text>
  162. </view>
  163. <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}}">
  164. <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
  165. <text wx:else class="number">{{index+1}}</text>
  166. <text class="usm">{{item.username}}</text>
  167. <text class="text up">{{ filters.toFix2(item.total_income*100)}}%</text>
  168. <text class="text">{{item.today_fund}}</text>
  169. <text class="text up">{{filters.toFix2(item.today_fund - item.init_fund)}}</text>
  170. </navigator>
  171. </swiper-item>
  172. <swiper-item class="up-down">
  173. <view class="title_1">
  174. <text>盈利(w)</text><text>资产(w)</text><text>收益率</text>
  175. </view>
  176. <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}}">
  177. <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
  178. <text wx:else class="number">{{index+1}}</text>
  179. <text class="usm">{{item.username}}</text>
  180. <text class="text up">{{filters.toFix2(item.today_fund - item.init_fund)}}</text>
  181. <text class="text">{{item.today_fund}}</text>
  182. <text class="text up">{{ filters.toFix2(item.total_income*100)}}%</text>
  183. </navigator>
  184. </swiper-item>
  185. <swiper-item class="up-down">
  186. <view class="title_1">
  187. <text>亏损(w)</text><text>资产(w)</text><text>收益率</text>
  188. </view>
  189. <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}}">
  190. <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
  191. <text wx:else class="number">{{index+1}}</text>
  192. <text class="usm">{{item.username}}</text>
  193. <text class="text down">{{filters.toFix2(item.today_fund - item.init_fund)}}</text>
  194. <text class="text">{{item.today_fund}}</text>
  195. <text class="text down">{{ filters.toFix2(item.total_income*100)}}%</text>
  196. </navigator>
  197. </swiper-item>
  198. <swiper-item class="up-down">
  199. <view class="title_1">
  200. <text>收益率</text><text>资产(w)</text><text>盈利(w)</text>
  201. </view>
  202. <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}}">
  203. <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
  204. <text wx:else class="number">{{index+1}}</text>
  205. <text class="usm">{{item.username}}</text>
  206. <text class="text down">{{ filters.toFix2(item.total_income*100)}}%</text>
  207. <text class="text">{{item.today_fund}}</text>
  208. <text class="text down">{{filters.toFix2(item.today_fund - item.init_fund)}}</text>
  209. </navigator>
  210. </swiper-item>
  211. </swiper>
  212. </view>
  213. <view class="up-down-view">
  214. <scroll-view scroll-x='{{true}}'>
  215. <view class="content-list">
  216. <view class="up-down">
  217. <view class="article-title"> <navigator url="../article/article?type=每日点评">more<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>每日点评</view>
  218. <navigator wx:for="{{articleList1}}" wx:if="{{index<5}}" hover-class="none" url="../articleweb/articleweb?id={{item.id}}" >
  219. <text class="article-name">{{item.name}}</text>
  220. <image class="article-img" mode="aspectFill" src="{{item.img}}"></image>
  221. </navigator>
  222. </view>
  223. <view class="up-down">
  224. <view class="article-title"> <navigator url="../article/article?type=冠军交割">more<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>冠军交割</view>
  225. <navigator wx:for="{{articleList2}}" wx:if="{{index<5}}" hover-class="none" url="../articleweb/articleweb?id={{item.id}}" >
  226. <text class="article-name">{{item.name}}</text>
  227. <image class="article-img" mode="aspectFill" src="{{item.img}}"></image>
  228. </navigator>
  229. </view>
  230. <view class="up-down">
  231. <view class="article-title"> <navigator url="../article/article?type=牛人专场">more<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>牛人专场</view>
  232. <navigator wx:for="{{articleList3}}" wx:if="{{index<5}}" hover-class="none" url="../articleweb/articleweb?id={{item.id}}" >
  233. <text class="article-name">{{item.name}}</text>
  234. <image class="article-img" mode="aspectFill" src="{{item.img}}"></image>
  235. </navigator>
  236. </view>
  237. <view class="up-down">
  238. <view class="article-title"> <navigator url="../article/article?type=妖股列传">more<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>妖股列传</view>
  239. <navigator wx:for="{{articleList4}}" wx:if="{{index<5}}" hover-class="none" url="../articleweb/articleweb?id={{item.id}}" >
  240. <text class="article-name">{{item.name}}</text>
  241. <image class="article-img" mode="aspectFill" src="{{item.img}}"></image>
  242. </navigator>
  243. </view>
  244. </view>
  245. </scroll-view>
  246. </view>
  247. <view class="baike">
  248. <view class="article-title"> <navigator url="../baike/baike">更多<image class="more-image" mode="widthFix" src="../../images/right_icon.png"></image></navigator>短线百科</view>
  249. <navigator wx:for="{{baikeList}}" class="baike-list" url="../detail/detail?id={{item.category_id}}&type=百科">
  250. <view>{{item.name}}</view>
  251. <view class="baike-info">
  252. <image wx:if='{{item.img}}' mode="aspectFill" src="{{item.img}}"></image>
  253. <image wx:else mode="aspectFill" src="../../xiao/default_img@2x.png"></image>
  254. <text>{{item.intro}}</text>
  255. </view>
  256. </navigator>
  257. </view>
  258. <view class="tab">
  259. <view wx:for='{{tabs}}' bindtap="tabChange" data-id='{{index}}' class="{{index==cur?'act':''}}">{{item}}</view>
  260. </view>
  261. <swiper class="swiper-content" current='{{cur}}' bindchange='curChange'>
  262. <swiper-item>
  263. <scroll-view scroll-y='{{true}}' bindscrolltolower='next1'>
  264. <view class="item1" wx:for='{{explist}}'>
  265. <navigator hover-class="none" bind:tap="pushToday" data-match_id="{{item.match_id}}" data-record_id="{{item.id}}" data-user_id = "{{item.user_id}}">
  266. <view class="relist">
  267. <image src="{{filters.defaultImg(item.avatar)}}"></image>
  268. <view class="msg">
  269. <text class="name">{{item.username}}</text>
  270. </view>
  271. <view class="msg">
  272. <text class="date">{{item.stock_date}}</text>
  273. </view>
  274. </view>
  275. <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>
  276. </view>
  277. <view class="content" wx:if="{{item.experience}}">{{item.experience}}</view>
  278. <view class="recomment">
  279. <image mode="widthFix" src="../../images/msg.png"></image>
  280. <text>{{item.comments_count}}</text>
  281. <image mode="widthFix" src="../../images/zan.png"></image>
  282. <text>{{item.zans_count}}</text>
  283. </view>
  284. </navigator>
  285. </view>
  286. <block wx:if='{{total1 >= 20}}'>
  287. <view class='loading' wx:if='{{explist.length < total1}}'>上拉加载更多...</view>
  288. </block>
  289. </scroll-view>
  290. </swiper-item>
  291. <swiper-item>
  292. <scroll-view upper-threshold="0" bindscrolltoupper='fresh' scroll-y='{{true}}' bindscrolltolower='next2'>
  293. <view wx:if='{{loading}}' class="loading">下拉刷新</view>
  294. <view class="item1" wx:for='{{followList}}'>
  295. <navigator hover-class="none" bind:tap="pushToday" data-match_id="{{item.match_id}}" data-record_id="{{item.id}}" data-user_id = "{{item.user_id}}">
  296. <view class="relist">
  297. <image src="{{filters.defaultImg(item.avatar)}}"></image>
  298. <view class="msg">
  299. <text class="name">{{item.username}}</text>
  300. </view>
  301. <view class="msg">
  302. <text class="date">{{item.stock_date}}</text>
  303. </view>
  304. </view>
  305. <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>
  306. </view>
  307. <view class="content" wx:if="{{item.experience}}">{{item.experience}}</view>
  308. <view class="imgs" wx:if="{{role != 0}}">
  309. <image wx:for='{{item.today_stock_img}}' wx:for-item='i' catchtap="preview" data-src='{{i}}' data-urls='{{item.today_stock_img}}'
  310. class="img" src="{{i}}" mode="heightFix"></image>
  311. </view>
  312. <view class="recomment">
  313. <image mode="widthFix" src="../../images/msg.png"></image>
  314. <text>{{item.comments_count}}</text>
  315. <image mode="widthFix" src="../../images/zan.png"></image>
  316. <text>{{item.zan_count}}</text>
  317. </view>
  318. </navigator>
  319. </view>
  320. <block wx:if='{{total2 >= 20}}'>
  321. <view class='loading' wx:if='{{followList.length < total2}}'>上拉加载更多...</view>
  322. </block>
  323. <block wx:if='{{total2 == 0}}'>
  324. <view class='loading' style="margin-top:200rpx;">暂无关注选手</view>
  325. </block>
  326. </scroll-view>
  327. </swiper-item>
  328. </swiper>