Home.jsx 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. import { onMount, createSignal, Show, For } from "solid-js";
  2. import { createStore } from "solid-js/store";
  3. import dayjs from "dayjs"
  4. import utils from "../../utils/index"
  5. import "../../assets/style/IndividualActivities.css";
  6. import Usertrend from "./components/Usertrend";
  7. import SelfPlatform from "./components/SelfPlatform";
  8. // import Column from "./components/Column_g2";
  9. import ListeningRate from "./components/ListeningRate_g2";
  10. import Activity from "./components/Activity";
  11. // import Map from "./components/Map-l7";
  12. // import Map from "./components/Map";
  13. import NewMedia from "./components/NewMedia";
  14. import NewMediaTrend from "./components/NewMediaTrend"
  15. import { getWeather, getIndividualActivitiesData, getFirstClassData } from "../../api/bigScreen"
  16. const [TimeDate, setTimeDate] = createSignal("");
  17. const [eHeight, seteHeight] = createSignal(0);
  18. const [Weather, setWeather] = createSignal("请稍候...");
  19. // const [Geography] = createSignal({
  20. // latitude: -190,
  21. // longitude: -190
  22. // })
  23. function setTQ(TQ) {
  24. const w = TQ.lives && TQ.lives.length ? TQ.lives[0] : {};
  25. w.city && setWeather(`${w.city} ${w.weather} ${w.temperature}℃ ${w.winddirection}风 ${w.windpower}级`);
  26. !w.city && setWeather(TQ);
  27. }
  28. function IndividualActivities() {
  29. const [HeadTitleLeft, setHeadTitleLeft] = createSignal();
  30. const [HeadTitleRight, setHeadTitleRight] = createSignal();
  31. // const [proTv, setproTv] = createSignal([])
  32. const [oriData_left, setoriData_left] = createStore({});
  33. const [oriData_right, setoriData_right] = createStore({});
  34. let $ele = undefined, mainHeight = document.body.offsetHeight * 0.925 - 100;
  35. onMount(() => {
  36. setTimeDate(dayjs().format('YYYY-MM-DD'));
  37. seteHeight(Math.floor($ele.offsetWidth / 16 * 9) + 70);
  38. getWeather().then(r => setTQ(r.data))
  39. getIndividualActivitiesData().then(r => {
  40. if (r.code != 0) return
  41. const d = r.data || {};
  42. setoriData_left({
  43. pie: {
  44. name: '盛世中华平台传播排行',
  45. data: d.pie
  46. },
  47. trendAll: {
  48. name: '盛世中华传播量走势',
  49. data: d.trendAll || []
  50. },
  51. hotTopic: {
  52. name: '盛世中华热门稿件',
  53. data: (d.article || []).splice(0, 10)
  54. }
  55. });
  56. setHeadTitleLeft([
  57. {
  58. title: "盛世中华-总传播量",
  59. color: "rgb(153,204,255)",
  60. value: d.top.playCount,
  61. path: [
  62. {
  63. d: "M858.5 763.6c-18.9-44.8-46.1-85-80.6-119.5-34.5-34.5-74.7-61.6-119.5-80.6-0.4-0.2-0.8-0.3-1.2-0.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-0.4 0.2-0.8 0.3-1.2 0.5-44.8 18.9-85 46-119.5 80.6-34.5 34.5-61.6 74.7-80.6 119.5C146.9 807.5 137 854 136 901.8c-0.1 4.5 3.5 8.2 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c0.1 4.4 3.6 7.8 8 7.8h60c4.5 0 8.1-3.7 8-8.2-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z",
  64. color: "#02ffec"
  65. }
  66. ]
  67. },
  68. {
  69. title: "传统媒体-总发稿量",
  70. color: "rgb(0,255,0)",
  71. value: d.top.publishCount,
  72. path: [
  73. {
  74. d: "M512.000512 64.909335c-246.926856 0-447.090665 200.158692-447.090665 447.088618 0 246.935042 200.163809 447.090665 447.090665 447.090665 246.935042 0 447.087595-200.158692 447.087595-447.090665C959.088106 265.068028 758.933507 64.909335 512.000512 64.909335zM512.000512 899.476939c-213.646891 0-387.478985-173.828001-387.478985-387.476939 0-213.646891 173.832094-387.475915 387.478985-387.475915 213.647915 0 387.474892 173.830047 387.474892 387.475915C899.476427 725.646891 725.648426 899.476939 512.000512 899.476939z",
  75. color: "#02ffec"
  76. },
  77. {
  78. d: "M159.919734 484.371756l55.255465 0 0 55.256488-55.255465 0 0-55.256488Z",
  79. color: "#02f5e2"
  80. },
  81. {
  82. d: "M807.639812 484.370733l55.256488 0 0 55.256488-55.256488 0 0-55.256488Z",
  83. color: "#02f5e2"
  84. },
  85. {
  86. d: "M484.370221 164.528194l55.256488 0 0 55.256488-55.256488 0 0-55.256488Z",
  87. color: "#02f5e2"
  88. },
  89. {
  90. d: "M484.370221 253.55174l55.256488 0 0 286.079574-55.256488 0 0-286.079574Z",
  91. color: "#02f5e2"
  92. },
  93. {
  94. d: "M682.960649 660.67276l-39.071863 39.071863-159.509552-159.509552 39.071863-39.071863 159.509552 159.509552Z",
  95. color: "#02f5e2"
  96. },
  97. {
  98. d: "M484.371244 802.527886l55.256488 0 0 55.256488-55.256488 0 0-55.256488Z",
  99. color: "#02f5e2"
  100. }
  101. ]
  102. },
  103. ])
  104. })
  105. getFirstClassData().then(r => {
  106. if (r.code != 0) return
  107. const d = r.data || {};
  108. let c = ['rgb(153, 204, 255)', 'rgb(0, 255, 0)', 'rgb(0, 153, 255)', 'rgb(255, 153, 0)']
  109. setoriData_right({
  110. media_read_trend: {
  111. name: '开学第一课日累计活跃数',
  112. data: d.dayTrend || []
  113. },
  114. media_spread_trend: {
  115. name: '开学第一课用户趋势',
  116. data: d.trend || []
  117. },
  118. media_total: {
  119. name: '开学第一课综合数据',
  120. data: (d.overview || []).map((v, i) => {
  121. return {
  122. ...v,
  123. color: c[i]
  124. }
  125. })
  126. }
  127. });
  128. setHeadTitleRight([
  129. {
  130. title: '开学第一课-' + d.topList[0].name,
  131. color: "rgb(0,153,255)",
  132. value: d.topList[0].activeUser,
  133. key: '',
  134. path: [
  135. {
  136. d: 'M920.900621 803.267543 112.32753 803.267543c-49.059901 0-88.982874-39.921757-88.982874-88.982874L23.344655 172.240573c0-49.07328 39.922973-88.996254 88.982874-88.996254l808.573091 0c49.061117 0 88.981658 39.922973 88.981658 88.996254l0 542.044096C1009.882279 763.345786 969.961738 803.267543 920.900621 803.267543zM112.32753 104.039587c-37.593738 0-68.188823 30.595085-68.188823 68.202202l0 542.044096c0 37.594954 30.595085 68.190039 68.188823 68.190039l808.573091 0c37.592522 0 68.190039-30.593869 68.190039-68.190039L989.09066 172.240573c0-37.605901-30.596301-68.202202-68.190039-68.202202L112.32753 104.038371z',
  137. color: "#02ffec"
  138. },
  139. {
  140. d: 'M908.227878 636.659706 124.997841 636.659706 124.997841 163.603549l783.230037 0L908.227878 636.659706zM145.791892 615.866871l741.643151 0L887.435043 184.397601 145.791892 184.397601 145.791892 615.866871z',
  141. color: "#02ffec"
  142. },
  143. {
  144. d: "M516.613467 943.368317c-5.740988 0-10.397026-4.657255-10.397026-10.397026l0-109.736787c0-5.739771 4.656038-10.394593 10.397026-10.394593 5.739771 0 10.397026 4.654822 10.397026 10.394593l0 109.736787C527.010493 938.711062 522.353239 943.368317 516.613467 943.368317z",
  145. color: "#02ffec"
  146. },
  147. {
  148. d: "M682.963447 943.368317 350.263488 943.368317c-5.739771 0-10.397026-4.657255-10.397026-10.397026 0-5.738555 4.657255-10.395809 10.397026-10.395809l332.699958 0c5.739771 0 10.397026 4.657255 10.397026 10.395809C693.360472 938.711062 688.703218 943.368317 682.963447 943.368317z",
  149. color: "#02ffec"
  150. },
  151. {
  152. d: "M608.966739 494.002247c-2.66737 0-5.320144-1.01562-7.350167-3.046859-4.062478-4.061262-4.062478-10.640288 0-14.70155l168.08079-168.082006c4.061262-4.061262 10.641504-4.061262 14.70155 0 4.062478 4.062478 4.062478 10.641504 0 14.702766L616.318122 490.955388C614.285667 492.986628 611.632893 494.002247 608.966739 494.002247z",
  153. color: "#02ffec"
  154. },
  155. {
  156. d: 'M270.486871 470.89234c-2.66737 0-5.32136-1.01562-7.350167-3.044426-4.062478-4.062478-4.062478-10.640288 0-14.703983l110.899581-110.899581c4.061262-4.060046 10.640288-4.060046 14.70155 0 4.061262 4.063695 4.061262 10.641504 0 14.703983l-110.899581 110.899581C275.807015 469.87672 273.153025 470.89234 270.486871 470.89234z',
  157. color: "#02ffec"
  158. },
  159. {
  160. d: 'M270.486871 470.89234c-2.66737 0-5.32136-1.01562-7.350167-3.044426-4.062478-4.062478-4.062478-10.640288 0-14.703983l110.899581-110.899581c4.061262-4.060046 10.640288-4.060046 14.70155 0 4.061262 4.063695 4.061262 10.641504 0 14.703983l-110.899581 110.899581C275.807015 469.87672 273.153025 470.89234 270.486871 470.89234z',
  161. color: "#02ffec"
  162. },
  163. {
  164. d: "M259.225048 478.982024c0 9.090708-7.365979 16.462768-16.462768 16.462768-9.08341 0-16.461552-7.37206-16.461552-16.462768 0-9.089492 7.378142-16.462768 16.461552-16.462768C251.857853 462.519255 259.225048 469.892532 259.225048 478.982024z",
  165. color: "#02ffec"
  166. },
  167. {
  168. d: "M417.776042 331.984768c0 9.090708-7.363546 16.461552-16.461552 16.461552-9.084626 0-16.462768-7.370844-16.462768-16.461552 0-9.098006 7.376926-16.462768 16.462768-16.462768C410.411279 315.521999 417.776042 322.886762 417.776042 331.984768z",
  169. color: "#02ffec"
  170. },
  171. {
  172. d: "M597.122303 505.839385c0 9.09314-7.364763 16.462768-16.462768 16.462768-9.08341 0-16.460336-7.370844-16.460336-16.462768 0-9.089492 7.376926-16.460336 16.460336-16.460336C589.757541 489.37905 597.122303 496.749894 597.122303 505.839385z",
  173. color: "#02ffec"
  174. },
  175. {
  176. d: "M533.075019 704.246455c0 9.090708-7.364763 16.462768-16.461552 16.462768-9.084626 0-16.462768-7.373277-16.462768-16.462768 0-9.089492 7.378142-16.462768 16.462768-16.462768C525.711473 687.783687 533.075019 695.156963 533.075019 704.246455z",
  177. color: "#02ffec"
  178. },
  179. {
  180. d: "M813.721736 293.571236c0 9.090708-7.36233 16.462768-16.459119 16.462768-9.084626 0-16.462768-7.37206-16.462768-16.462768 0-9.089492 7.378142-16.461552 16.462768-16.461552C806.359406 277.109684 813.721736 284.481745 813.721736 293.571236z",
  181. color: "#02ffec"
  182. },
  183. {
  184. d: "M552.934944 494.002247c-2.706292 0-5.40042-1.042378-7.443823-3.140515L414.66107 356.852244c-4.006528-4.100184-3.926252-10.680426 0.189745-14.700334 4.102617-3.978553 10.680426-3.954227 14.70155 0.190961l130.826402 134.007056c4.007744 4.102617 3.927468 10.681642-0.188528 14.703983C558.173595 493.013387 555.562176 494.002247 552.934944 494.002247z",
  185. color: "#02ffec"
  186. }
  187. ]
  188. },
  189. {
  190. title: '开学第一课-' + d.topList[1].name,
  191. color: "rgb(255,153,0)",
  192. key: "小时",
  193. value: d.topList[1].activeUser/3600,
  194. path: [
  195. {
  196. d: "M294.4 684.032c-95.232 0-174.592-79.36-174.592-174.592s79.36-174.592 174.592-174.592 174.592 79.36 174.592 174.592-78.848 174.592-174.592 174.592z m0-293.376c-65.024 0-118.784 53.76-118.784 118.784s53.76 118.784 118.784 118.784 118.784-53.76 118.784-118.784-53.248-118.784-118.784-118.784zM732.672 1013.248c-86.016 0-156.16-69.632-156.16-156.16s69.632-156.16 156.16-156.16 156.16 69.632 156.16 156.16-70.144 156.16-156.16 156.16z m0-256c-55.808 0-99.84 44.032-99.84 99.84s44.032 99.84 99.84 99.84 99.84-44.032 99.84-99.84-44.032-99.84-99.84-99.84zM667.136 291.84c-79.36 0-141.824-62.976-141.824-141.824s62.976-141.824 141.824-141.824S808.96 71.168 808.96 150.016 745.984 291.84 667.136 291.84z m0-227.84c-46.592 0-86.016 39.424-86.016 86.016s39.424 86.016 86.016 86.016 86.016-39.424 86.016-86.016-39.424-86.016-86.016-86.016z",
  197. color: "#02ffec"
  198. },
  199. {
  200. d: "M573.44 259.072L401.408 398.848c-11.776 9.216-30.208 7.168-39.424-4.608l-2.56-2.56c-9.216-11.776-7.168-30.208 4.608-39.424l172.032-139.776c11.776-9.216 30.208-7.168 39.424 4.608l2.56 2.56c9.216 13.824 7.168 30.208-4.608 39.424zM588.288 785.408l-177.152-134.144c-13.312-10.24-14.336-26.624-6.656-39.936l2.56-2.048c10.24-13.312 26.624-14.336 39.936-6.656l177.152 134.144c13.312 10.24 14.336 26.624 6.656 39.936l-2.56 2.048c-10.24 13.824-27.136 17.408-39.936 6.656z",
  201. color: "#02ffec"
  202. }
  203. ]
  204. }
  205. ])
  206. })
  207. })
  208. document.title = "集团大数据平台";
  209. return (
  210. <div class="idHome">
  211. <div class="idHomeHeader">
  212. <div class="sz">
  213. <img style={{ "vertical-align": 'middle', width: '115px', "margin-right": '3px' }}
  214. src="https://cxzx.smcic.net/topic/tool/img/jtlogo.png" alt="" />
  215. <span style={{ "vertical-align": 'middle' }}>
  216. {TimeDate()}
  217. </span>
  218. </div>
  219. <div class="tq">{Weather()}</div>
  220. <div class="headTitle">陕西广电融媒体集团大数据平台</div>
  221. {/* <div className="tq">
  222. <iframe style="height: 5em; " src="//i.tianqi.com/index.php?c=code&id=10&color=%23C6C6C6&icon=1&site=16" frameborder="0"></iframe>
  223. </div> */}
  224. </div>
  225. <div class="idBody">
  226. <div class="main">
  227. <div ref={$ele} class="mainbody left">
  228. <div style={{ "display": "flex", "width": "100%" }}>
  229. <For each={HeadTitleLeft()}>{title =>
  230. <div class="itemHeader">
  231. <div class="itemMain">
  232. <div class="icons">
  233. <svg t="1650243218920" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32">
  234. <For each={title.path}>{dItem =>
  235. <path d={dItem.d} fill={dItem.color}></path>
  236. }</For>
  237. </svg>
  238. <svg
  239. t="1650263511830"
  240. class="img"
  241. viewBox="0 0 1077 1024"
  242. version="1.1"
  243. xmlns="http://www.w3.org/2000/svg"
  244. >
  245. <path d="M794.211994 1024h-0.832916l-563.050769-6.108046a83.91622 83.91622 0 0 1-79.265776-61.358096L3.15065 428.396123a83.291534 83.291534 0 0 1 33.316614-91.551278L509.077309 14.506609a83.291534 83.291534 0 0 1 97.173457 2.359927l437.83583 330.112112a83.91622 83.91622 0 0 1 27.763844 96.340541l-199.760862 526.402495a83.707992 83.707992 0 0 1-77.877584 54.278316zM556.275845 83.360944L83.457571 405.69918l147.564834 528.415373 563.189589 6.246865 199.760862-526.471904z" fill="#02ffec"></path>
  246. <path d="M229.888 942.08L51.712 394.24l466.432-338.944L984.576 394.24l-178.176 547.84z" fill="rgba(3, 76, 117, 1)" ></path>
  247. </svg>
  248. </div>
  249. <div class="text">
  250. <span class="textNum" style={{ color: title.color }}>{utils.formatNum(title.value, 2) + (title.key || "")}</span>
  251. <Show when={title.isMore != undefined && title.isMore}>
  252. <img class='ismore' src="https://cxzx.smcic.net/topic/tool/img/up.png" alt="" />
  253. </Show>
  254. <Show when={title.isMore != undefined && !title.isMore}>
  255. <img class='ismore' src="https://cxzx.smcic.net/topic/tool/img/down.png" alt="" />
  256. </Show>
  257. <br />
  258. {title.title}
  259. </div>
  260. </div>
  261. </div>
  262. }
  263. </For>
  264. </div>
  265. <Show when={eHeight() > 0 && oriData_left.pie && oriData_left.pie.name} >
  266. <ListeningRate
  267. title={oriData_left.pie.name}
  268. list={oriData_left.pie.data}
  269. width={Math.floor($ele.offsetWidth)}
  270. height={mainHeight / 3}
  271. />
  272. </Show>
  273. {/* <Show when={eHeight() > 0 && oriData.schedule_rank && oriData.schedule_rank.name} >
  274. <div style={{ "margin-bottom": "6px", "margin-top": "6px" }}>
  275. <Column
  276. title={oriData.schedule_rank.name}
  277. list={oriData.schedule_rank.data}
  278. width={Math.floor($ele.offsetWidth)}
  279. height={(mainHeight - 54) / 3}
  280. />
  281. </div>
  282. </Show> */}
  283. <Show when={eHeight() > 0 && oriData_left.trendAll && oriData_left.trendAll.name} >
  284. <div style={{ "margin-bottom": "6px", "margin-top": "6px" }}>
  285. <Usertrend
  286. title={oriData_left.trendAll.name}
  287. list={oriData_left.trendAll.data}
  288. width={Math.floor($ele.offsetWidth)}
  289. height={(mainHeight - 54) / 3}
  290. />
  291. </div>
  292. </Show>
  293. <Show when={eHeight() > 0 && oriData_left.hotTopic && oriData_left.hotTopic.name}>
  294. <Activity
  295. styleCss={{ marginLeft: '6px' }}
  296. title={oriData_left.hotTopic.name}
  297. list={oriData_left.hotTopic.data}
  298. width={Math.floor($ele.offsetWidth)}
  299. height={mainHeight / 3}
  300. />
  301. </Show>
  302. </div>
  303. {/* <div class="mainbody center">
  304. <div style={{ "margin-bottom": "6px" }}>
  305. <Show when={eHeight() > 0 && oriData.cm_area && oriData.cm_area.name}>
  306. <Map
  307. title={oriData.cm_area.name}
  308. Geography={Geography()}
  309. li={oriData.cm_area.data}
  310. width={Math.floor($ele.offsetWidth)}
  311. height={mainHeight - 30}
  312. setfun={setTQ}
  313. />
  314. </Show>
  315. </div>
  316. <div class="flex">
  317. <For each={proTv()} >{item => <div class="flexItem">
  318. <p class="textNum" style={{ color: item.color }}>{utils.formatNum(item.value, 2)}%</p>
  319. {item.text}
  320. </div>
  321. }</For>
  322. </div>
  323. </div> */}
  324. <div class="mainbody right">
  325. <div style={{ "display": "flex", "width": "100%" }}>
  326. <For each={HeadTitleRight()}>{title =>
  327. <div class="itemHeader">
  328. <div class="itemMain">
  329. <div class="icons">
  330. <svg t="1650243218920" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32">
  331. <For each={title.path}>{dItem =>
  332. <path d={dItem.d} fill={dItem.color}></path>
  333. }</For>
  334. </svg>
  335. <svg
  336. t="1650263511830"
  337. class="img"
  338. viewBox="0 0 1077 1024"
  339. version="1.1"
  340. xmlns="http://www.w3.org/2000/svg"
  341. >
  342. <path d="M794.211994 1024h-0.832916l-563.050769-6.108046a83.91622 83.91622 0 0 1-79.265776-61.358096L3.15065 428.396123a83.291534 83.291534 0 0 1 33.316614-91.551278L509.077309 14.506609a83.291534 83.291534 0 0 1 97.173457 2.359927l437.83583 330.112112a83.91622 83.91622 0 0 1 27.763844 96.340541l-199.760862 526.402495a83.707992 83.707992 0 0 1-77.877584 54.278316zM556.275845 83.360944L83.457571 405.69918l147.564834 528.415373 563.189589 6.246865 199.760862-526.471904z" fill="#02ffec"></path>
  343. <path d="M229.888 942.08L51.712 394.24l466.432-338.944L984.576 394.24l-178.176 547.84z" fill="rgba(3, 76, 117, 1)" ></path>
  344. </svg>
  345. </div>
  346. <div class="text">
  347. <span class="textNum" style={{ color: title.color }}>{utils.formatNum(title.value, 2) + (title.key || "")}</span>
  348. <Show when={title.isMore != undefined && title.isMore}>
  349. <img class='ismore' src="https://cxzx.smcic.net/topic/tool/img/up.png" alt="" />
  350. </Show>
  351. <Show when={title.isMore != undefined && !title.isMore}>
  352. <img class='ismore' src="https://cxzx.smcic.net/topic/tool/img/down.png" alt="" />
  353. </Show>
  354. <br />
  355. {title.title}
  356. </div>
  357. </div>
  358. </div>
  359. }
  360. </For>
  361. </div>
  362. <Show when={eHeight() > 0 && oriData_right.media_total && oriData_right.media_total.name}>
  363. <NewMedia
  364. title={oriData_right.media_total.name}
  365. list={oriData_right.media_total.data}
  366. width={Math.floor($ele.offsetWidth - 20)}
  367. height={(mainHeight - 104) / 3 + 20}
  368. />
  369. </Show>
  370. <Show when={eHeight() > 0 && oriData_right.media_read_trend && oriData_right.media_read_trend.name}>
  371. <div style={{ "margin-bottom": "6px", "margin-top": "6px" }}>
  372. <SelfPlatform
  373. styleCss={{ marginBottom: '6px' }}
  374. title={oriData_right.media_read_trend.name}
  375. list={oriData_right.media_read_trend.data}
  376. width={Math.floor($ele.offsetWidth - 20)}
  377. height={(mainHeight - 104) / 3}
  378. />
  379. </div>
  380. </Show>
  381. <Show when={eHeight() > 0 && oriData_right.media_spread_trend && oriData_right.media_spread_trend.name}>
  382. <NewMediaTrend
  383. styleCss={{ marginBottom: '6px' }}
  384. title={oriData_right.media_spread_trend.name}
  385. list={oriData_right.media_spread_trend.data}
  386. width={Math.floor($ele.offsetWidth - 20)}
  387. height={(mainHeight - 104) / 3}
  388. />
  389. </Show>
  390. </div>
  391. </div>
  392. </div >
  393. </div >
  394. );
  395. }
  396. export default IndividualActivities;