douyin.wxml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!--pages/home/components/liveData/liveData.wxml-->
  2. <wxs module="filter" src="/components/table/filter.wxs" />
  3. <!-- 错误提示 -->
  4. <mp-toptips msg="{{error}}" ext-class="toptips" type="error" show="{{error}}"></mp-toptips>
  5. <view class="liveData">
  6. <view class="topTable">
  7. <view class="liveDataTable title">
  8. <view wx:if="{{ headData.peopel_time != -1 }}" data-introduce="peopel_time" bindtap="showDetail"
  9. class="liveDataItem liveDataItemRigh">
  10. 直播观看人次:
  11. <!-- <text class="show">?</text> : -->
  12. </view>
  13. <view data-introduce="like_count" bindtap="showDetail" class="liveDataItem">
  14. 直播点赞数:
  15. <!-- <text class="show">?</text> : -->
  16. </view>
  17. <view data-introduce="avg_user_count" bindtap="showDetail" class="liveDataItem">
  18. 平均在线人数:
  19. <!-- <text class="show">?</text> : -->
  20. </view>
  21. <view data-introduce="turn_rate" bindtap="showDetail" class="liveDataItem">
  22. 转粉率:
  23. <!-- <text class="show">?</text> : -->
  24. </view>
  25. </view>
  26. <view class="liveDataTable">
  27. <view wx:if="{{ headData.peopel_time != -1 }}" class="liveDataItem">{{filter.valueFormat(headData.peopel_time)}}
  28. </view>
  29. <view class="liveDataItem">{{filter.valueFormat(headData.like_count)}}</view>
  30. <view class="liveDataItem">{{filter.valueFormat(headData.avg_user_count)}}</view>
  31. <view class="liveDataItem">{{filter.valueFormat(headData.turn_rate)}}%</view>
  32. </view>
  33. <view class="liveDataTable title">
  34. <view wx:if="{{ headData.msg_count != -1 }}" data-introduce="msg_count" bindtap="showDetail"
  35. class="liveDataItem liveDataItemRigh">
  36. 直播评论数:
  37. <!-- <text class="show">?</text> : -->
  38. </view>
  39. <view data-introduce="total_fans_count" bindtap="showDetail" class="liveDataItem">
  40. 新增粉丝数:
  41. <!-- <text class="show">?</text> : -->
  42. </view>
  43. <view data-introduce="total_fans_count" bindtap="showDetail" class="liveDataItem">
  44. 最大在线人数:
  45. <!-- <text class="show">?</text> : -->
  46. </view>
  47. </view>
  48. <view class="liveDataTable">
  49. <view wx:if="{{ headData.msg_count != -1 }}" class="liveDataItem">{{filter.valueFormat(headData.msg_count)}}
  50. </view>
  51. <view class="liveDataItem">{{filter.valueFormat(headData.total_fans_count)}}</view>
  52. <view class="liveDataItem">{{filter.valueFormat(headData.max_user_count)}}</view>
  53. </view>
  54. </view>
  55. <view class="itemView" wx:if="{{series.length || (region.length && region[0].length)}}">
  56. <view class="localCells">观众来源</view>
  57. </view>
  58. <view class="itemView">
  59. <pie id="pie001" wx:if="{{series.length}}" canvasId="douyinpie001" list="{{series}}" />
  60. </view>
  61. <!-- <chart wx:if="{{region.length && region[0].length}}" list="{{region}}" id="{{'douyinid' + 1}}"
  62. canvasId="{{'douyincanvasId' + 1}}" yType="value" xType="name" /> -->
  63. <mapChina wx:if="{{region.length && region[0].length}}" id="{{'douyinMap' + 1}}" canvasId="{{'douyinMapID' + 1}}" list="{{region}}"></mapChina>
  64. <view class="itemView" wx:for="{{lineList}}" wx:key="id">
  65. <view wx:if="item.peopleList.length" class="localCells">{{item.title}}</view>
  66. <lineChart id="{{'douyin'+item.id}}" wx:if="item.peopleList.length" canvasId="{{'douyin'+item.canvasId}}"
  67. type="{{item.type}}" list="{{item.peopleList || []}}" yType="{{item.yType}}" xType="{{item.xType}}"
  68. color="{{item.color}}" />
  69. </view>
  70. </view>
  71. <cover-view wx:if="{{detail !== ''}}" class="modolBg">
  72. <cover-view class="local_dialog">
  73. <cover-view class="local_dialog_title">
  74. <cover-view class="local_dialog_close" bindtap="showDetail">
  75. <cover-view class="local_dialog_close_left"></cover-view>
  76. <cover-view class="local_dialog_close_right"></cover-view>
  77. </cover-view>
  78. <cover-view class="title">
  79. {{diglogTitle}}
  80. </cover-view>
  81. </cover-view>
  82. <cover-view class="local_dialog_body">
  83. <cover-view style="padding-right:5px;white-space:pre-wrap;line-height: 1.5em;width:490rpx;margin: 0 auto;">
  84. {{detail}}
  85. </cover-view>
  86. </cover-view>
  87. </cover-view>
  88. </cover-view>
  89. <!-- <mp-toptips msg="{{detail}}" type="info" show="{{detail !== ''}}"></mp-toptips> -->