user.wxml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <view class="bg" wx:if="{{userinfo.id}}">
  2. <view class="info">
  3. <view class='avatar'>
  4. <image style="width:100%;height:100%;" src="{{userinfo.avatar}}"></image>
  5. </view>
  6. <view class="name">
  7. <view>{{userinfo.username}}</view>
  8. <text wx:if='{{userinfo.id}}'>代码:{{userinfo.usercode}}</text>
  9. </view>
  10. <navigator url="../homepage/homepage?user_id={{userinfo.id}}&type=1" class="mine">我的主页</navigator>
  11. </view>
  12. <view wx:if='{{todayinfo.today_fund}}' class="today">
  13. <navigator hover-class="none" bind:tap="pushToday" data-match_id="{{todayinfo.match_id}}" data-record_id="{{todayinfo.id}}" data-user_id = "{{todayinfo.user_id}}">
  14. <view class="money">
  15. <text class="{{todayinfo.today_income_fund < 0 ?'down':'up'}}">{{todayinfo.today_income_fund}} </text>
  16. <text class="{{todayinfo.today_income[0]=='-' ?'todaydown':'todayup'}}">{{todayinfo.today_income}}</text>
  17. <text class="today_text">今日收益</text>
  18. </view>
  19. <view class="date">
  20. <text>日期 <text>{{todayinfo.stock_date}}</text> </text>
  21. <text>排名 <text>{{todayinfo.group_rank==null?'无':todayinfo.group_rank}}</text> </text>
  22. </view>
  23. <view class="date">
  24. <text>资产 <text>{{todayinfo.today_fund}}w</text> </text>
  25. <text >总收益 <text class="{{todayinfo.total_income[0]=='-' ?'down':'up'}}"> {{todayinfo.total_income}}</text></text>
  26. </view>
  27. </navigator>
  28. <navigator class="msg" hover-class="none" bind:tap="pushToday" data-match_id="{{todayinfo.match_id}}" data-record_id="{{todayinfo.id}}" data-user_id = "{{todayinfo.user_id}}">
  29. <view ><image mode="widthFix" src="../../images/msg.png"></image>{{todayinfo.comments_count}}</view>
  30. <view><image mode="widthFix" src="../../images/zan.png"></image>{{todayinfo.zan_count}}</view>
  31. </navigator>
  32. </view>
  33. <view class="list" style="padding:0 30rpx;background:#fff;">
  34. <navigator hover-class="none" class="item" url="../message/message">
  35. 联系客服
  36. <button class="contactus"></button>
  37. <image mode="widthFix" src="../../images/right_icon.png"></image>
  38. </navigator>
  39. <navigator hover-class="none" class="item" url="../aboutus/aboutus">
  40. 关于我们 <image mode="widthFix" src="../../images/right_icon.png"></image>
  41. </navigator>
  42. <navigator hover-class="none" style="border:none" class="item" bindtap="logout">
  43. 退出登录 <image mode="widthFix" src="../../images/right_icon.png"></image>
  44. </navigator>
  45. </view>
  46. <view class="shenming" >
  47. <view class="shenming_text">
  48. 郑重声明:用户在比赛社区发表的所有信息(包括但不限于文字、数据及图表)仅代表个人观点,与本应用立场无关,不对您构成任何投资建议,据此操作风险自担。请勿相信代客理财、免费荐股和炒股培训等宣传内容,远离非法证券活动。请勿添加发言用户的手机号码、公众号、微博、微信及QQ等信息,谨防上当受骗!
  49. </view>
  50. </view>
  51. </view>
  52. <view class="no_login" wx:if="{{!userinfo.id}}">
  53. <view class="title">欢迎来到湖南顽主杯实盘大赛</view>
  54. <view class='avatar'>
  55. <image src="../../images/logo.png"></image>
  56. </view>
  57. <navigator url="../login/user"><image style="width: 24px;" mode="widthFix" src="../../images/bs.png"></image>报名参赛(做选手)</navigator>
  58. <navigator style="background: none;color:#D94B24;" url="../login/user"><image style="width: 24px;" mode="widthFix" src="../../images/yk.png"></image>访问系统(不参赛)</navigator>
  59. <navigator style="background: none;color:#D94B24;" url="../login/user"><image style="width: 18px;" mode="widthFix" src="../../images/zx.png"></image>咨询顽主</navigator>
  60. </view>