report.vue 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239
  1. <template>
  2. <view class="report-container">
  3. <cu-custom bgColor="#000000"><view slot="content" style="color: #FFFFFF">UU睡眠</view></cu-custom>
  4. <view v-if="!isDeviceAdded" class="flex-col page">
  5. <view class="flex-col flex-auto image-wrapper_2">
  6. <view class="flex-row items-center self-center bottom-btns">
  7. <view class="btn_1 bottom-btn" @click="addBindDevice">立即体验</view>
  8. <view class="btn_2 bottom-btn" @click="addBindDevice">添加设备</view>
  9. </view>
  10. </view>
  11. </view>
  12. <view v-if="isDeviceAdded" class="flex-col justify-start page">
  13. <view class="flex-col report">
  14. <!-- report header -->
  15. <view class="flex-col justify-start report_header relative">
  16. <img class="report-header-img" src="../../static/report/reportIconLight.png" />
  17. <view class="btns-report">
  18. <view @click="handleMonthClick" class="btn-month-report">月报</view>
  19. <view @click="handleWeekClick" class="btn-week-report">周报</view>
  20. </view>
  21. <view class="flex-col report_score space-y-55">
  22. <view class="flex-row space-x-10 report_period">
  23. <view class="flex-row justify-between flex-auto section_3">
  24. <view class="flex-row items-center space-x-24" @click="calendarShow=true">
  25. <image class="shrink-0 image_4"
  26. src="../../static/report/reportIconLeft.png"
  27. />
  28. <!-- <picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">-->
  29. <!-- <text class="font_2 text_2">{{date}}</text>-->
  30. <!-- </picker>-->
  31. <text class="margin-right text-white">{{ selectDay }}</text>
  32. <image class="image_4"
  33. src="../../static/report/reportIconRight.png"
  34. />
  35. </view>
  36. </view>
  37. <view class="flex-row items-center shrink-0 section_4 space-x-10">
  38. <!-- <text class="font_2 text_3">23:30~05:42</text>-->
  39. <picker v-if="todayTimeList.length > 0" @change="PickerChange" :value="index" :range="todayTimeList">
  40. <view class="picker text-white">
  41. {{ todayTimeList[index] }}
  42. </view>
  43. </picker>
  44. <image
  45. class="shrink-0 image_5"
  46. src="../../static/report/reportIconTop.png"
  47. />
  48. </view>
  49. </view>
  50. <view class="flex-col report_score_data items-center">
  51. <view class="flex-row justify-between items-center space-x-76-reverse">
  52. <text class="text_4">{{ sleepReportFrom.report_content.score.desc }}</text>
  53. </view>
  54. <!-- <view class="flex-row items-center self-end section_5 space-x-8">-->
  55. <!-- <image-->
  56. <!-- class="shrink-0 image_6"-->
  57. <!-- src="../../static/report/reportIconPower.png"-->
  58. <!-- />-->
  59. <!-- <text class="font_2 text_5">+25</text>-->
  60. <!-- </view>-->
  61. <text class="self-center text_6" :class="sleepReportFrom.report_content.score.state === 3 ?
  62. 'text-green' : sleepReportFrom.report_content.score.state === 2 ? 'text-yellow' : 'text-red'">{{ sleepReportFrom.report_content.score.value }}</text>
  63. <text class="self-center font_2 text_7">香睡指数</text>
  64. </view>
  65. <view class="flex-row report-data-sum justify-between">
  66. <view class="flex-row items-center">
  67. <image
  68. class="icon-data-sum"
  69. src="../../static/report/reportIconTime.png"
  70. />
  71. <view class="flex-col items-center text-data-sum">
  72. <view class="title-data-sum">睡眠总时长</view>
  73. <view class="flex-row justify-evenly items-baseline group_5">
  74. <text class="font_5">{{ formateSeconds(sleepReportFrom.total_duration) }}</text>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="flex-row items-center">
  79. <image
  80. class="icon-data-sum"
  81. src="../../static/report/reportIconClock.png"
  82. />
  83. <view class="flex-col items-center text-data-sum">
  84. <view class="title-data-sum">睡眠时间</view>
  85. <view class="flex-row justify-evenly items-baseline group_5">
  86. <text class="font_5">{{ sleepReportFrom.gobed_time + '~' + sleepReportFrom.outbed_time }}</text>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <!-- report analysis -->
  94. <view class="flex-col report_analysis space-y-4">
  95. <text class="self-start font_4 text_8">各项睡眠监测数据统计</text>
  96. <view class="flex-col justify-start items-center relative report_analysis_data">
  97. <view class="flex-row equal-division space-x-29 pos">
  98. <view class="flex-col equal-division-item">
  99. <view class="flex-col section_6 space-y-12">
  100. <view class="flex-row space-x-10">
  101. <image class="image_7" src="../../static/report/reportIconGreen.png"/>
  102. <text class="font_3">上床时间</text>
  103. </view>
  104. <text class="self-start font_4 text_9">{{ sleepReportFrom.gobed_time }}</text>
  105. </view>
  106. <view class="flex-col section_6 view space-y-12">
  107. <view class="flex-row items-center space-x-12">
  108. <image class="image_7" src="../../static/report/reportIconGreen.png"/>
  109. <text class="font_3">深睡时长</text>
  110. </view>
  111. <view class="flex-row items-baseline group_6 space-x-6">
  112. <text class="font_4">{{ formateSeconds(sleepReportFrom.deep_duration) }}</text>
  113. </view>
  114. </view>
  115. <view class="flex-col section_6 view space-y-12">
  116. <view class="flex-row items-center space-x-12">
  117. <image class="image_7" :src="sleepReportFrom.report_content.avg_hx.state === 3 ? '../../static/report/reportIconGreen.png' :
  118. sleepReportFrom.report_content.avg_hx.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
  119. <text class="font_3">平均呼吸率</text>
  120. </view>
  121. <view class="flex-row items-baseline group_6 space-x-6">
  122. <text class="font_4">{{ sleepReportFrom.report_content.avg_hx.value }}</text>
  123. <text class="font_5">次/分</text>
  124. </view>
  125. </view>
  126. <view class="flex-col items-left group_7 space-x-10">
  127. <view>
  128. <image class="image_7" src="../../static/report/reportIconGreen.png"/>
  129. <text class="font_3">温馨提示</text>
  130. </view>
  131. <text class="font_2 text_10">本次睡眠,您有{{ errCount }}项指标不及格。</text>
  132. </view>
  133. </view>
  134. <view class="flex-col equal-division-item_2 space-y-10">
  135. <view class="flex-col section_7 space-y-12">
  136. <view class="flex-row space-x-10">
  137. <image
  138. class="image_7"
  139. src="../../static/report/reportIconGreen.png"
  140. />
  141. <text class="font_3">在床时间</text>
  142. </view>
  143. <view class="flex-row justify-evenly items-baseline group_5">
  144. <text class="font_4">{{ formateSeconds(sleepReportFrom.inbed_duration) }}</text>
  145. </view>
  146. </view>
  147. <view class="flex-col section_7 space-y-12">
  148. <view class="flex-row space-x-10">
  149. <image class="image_7" :src="sleepReportFrom.report_content.sleep_eff.state === 3 ? '../../static/report/reportIconGreen.png' :
  150. sleepReportFrom.report_content.sleep_eff.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
  151. <text class="font_3">睡眠效率</text>
  152. </view>
  153. <view class="flex-row items-baseline group_5">
  154. <text class="font_4">{{ sleepReportFrom.report_content.sleep_eff.value }}</text>
  155. </view>
  156. </view>
  157. <view class="flex-col section_7 space-y-12">
  158. <view class="flex-row space-x-10">
  159. <image class="image_7" :src="sleepReportFrom.report_content.avg_rh.state === 3 ? '../../static/report/reportIconGreen.png' :
  160. sleepReportFrom.report_content.avg_rh.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
  161. <text class="font_3">平均心率</text>
  162. </view>
  163. <view class="flex-row items-baseline group_6 space-x-4">
  164. <text class="font_4">{{ sleepReportFrom.report_content.avg_rh.value }}</text>
  165. <text class="font_5">次/分</text>
  166. </view>
  167. </view>
  168. <view class="flex-row shrink-0 justify-between section_8 space-x-34">
  169. <view class="flex-row items-center space-x-8">
  170. <image class="image_7" :src="sleepReportFrom.report_content.move_count.state === 3 ? '../../static/report/reportIconGreen.png' :
  171. sleepReportFrom.report_content.move_count.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
  172. <text class="font_3">体动次数</text>
  173. </view>
  174. <view class="flex-row items-baseline space-x-6">
  175. <text class="font_4">{{ sleepReportFrom.report_content.move_count.value }}</text>
  176. <text class="font_5">次</text>
  177. </view>
  178. </view>
  179. <view class="flex-row shrink-0 justify-between section_8 space-x-34">
  180. <view class="flex-row items-center space-x-8">
  181. <image class="image_7" :src="sleepReportFrom.report_content.outbed_count.state === 3 ? '../../static/report/reportIconGreen.png' :
  182. sleepReportFrom.report_content.outbed_count.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
  183. <text class="font_3">离床次数</text>
  184. </view>
  185. <view class="flex-row items-baseline space-x-6">
  186. <text class="font_4">{{ sleepReportFrom.report_content.outbed_count.value }}</text>
  187. <text class="font_5">次</text>
  188. </view>
  189. </view>
  190. <view class="flex-row justify-between section_8">
  191. <view class="flex-row items-center space-x-8">
  192. <image class="image_7" :src="sleepReportFrom.report_content.snoring_count.state === 3 ? '../../static/report/reportIconGreen.png' :
  193. sleepReportFrom.report_content.snoring_count.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
  194. <text class="font_3">打鼾次数</text>
  195. </view>
  196. <view class="flex-row items-baseline space-x-6">
  197. <text class="font_4">{{ sleepReportFrom.report_content.snoring_count.value }}</text>
  198. <text class="font_5">次</text>
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. </view>
  204. <view class="flex-row justify-between section_efficiency">
  205. <view class="flex-row items-center">
  206. <image
  207. class="shrink-0 image_7"
  208. src="../../static/report/reportIconWatch.png"
  209. />
  210. <text class="font_3">睡眠效率</text>
  211. </view>
  212. <view class="flex-row items-center space-x-6">
  213. <text class="font_4">{{ sleepReportFrom.report_content.sleep_eff.value }}</text>
  214. </view>
  215. </view>
  216. <view class="flex-col justify-start report_breath report-easy">
  217. <view class="flex-col justify-start">
  218. <view class="flex-row items-center group_11 space-x-10 pos_33">
  219. <image
  220. class="image_8"
  221. src="../../static/report/reportIconBreath.png"
  222. />
  223. <text class="font_3">安稳度</text>
  224. <image
  225. @click="handleClickBreath"
  226. class="image_11"
  227. src="../../static/report/reportIconWhy.png"
  228. />
  229. </view>
  230. </view>
  231. <view class="flex-col pos_34">
  232. <!-- <view class="flex-col group_15">-->
  233. <!-- <view class="flex-row justify-between group_2">-->
  234. <!-- <text class="font_3 text_12">安稳度</text>-->
  235. <!-- <view class="flex-row items-center space-x-30">-->
  236. <!-- <text class="font_10">入睡时长</text>-->
  237. <!-- <view class="flex-row items-baseline shrink-0 space-x-6">-->
  238. <!-- <text class="font_5">{{ formateSeconds(sleepReportFrom.rs_duration) }}</text>-->
  239. <!-- </view>-->
  240. <!-- </view>-->
  241. <!-- </view>-->
  242. <!-- </view>-->
  243. <view class="list-divider"></view>
  244. <view class="flex-col group_15">
  245. <view class="flex-row justify-between group_2">
  246. <text class="font_3 text_12">离床次数</text>
  247. <view class="flex-row items-center space-x-30">
  248. <view class="flex-row items-baseline shrink-0 space-x-6">
  249. <text class="font_5">{{ sleepReportFrom.report_content.outbed_count.value }}</text>
  250. <text class="font_6">次</text>
  251. </view>
  252. </view>
  253. </view>
  254. <view class="report_breath_chart">
  255. <view class="echarts-wrap">
  256. <mpvue-echarts class="ec-canvas" canvasId="canvasChart-1" ref="refChart-1" @onInit="onInit1"></mpvue-echarts>
  257. </view>
  258. </view>
  259. </view>
  260. <view class="list-divider"></view>
  261. <view class="flex-col group_15">
  262. <view class="flex-row justify-between group_2">
  263. <text class="font_3 text_12">体动次数</text>
  264. <view class="flex-row items-center space-x-30">
  265. <view class="flex-row items-baseline shrink-0 space-x-6">
  266. <text class="font_5">{{ sleepReportFrom.report_content.move_count.value }}</text>
  267. <text class="font_6">次</text>
  268. </view>
  269. </view>
  270. </view>
  271. <view class="report_breath_chart">
  272. <view class="echarts-wrap">
  273. <mpvue-echarts class="ec-canvas" canvasId="canvasChart-2" ref="refChart-2" @onInit="onInit1"></mpvue-echarts>
  274. </view>
  275. </view>
  276. </view>
  277. </view>
  278. </view>
  279. </view>
  280. <view class="flex-col report-charts">
  281. <view class="flex-col justify-start flex-auto group">
  282. <view class="flex-col justify-start group_3">
  283. <view class="flex-col group_8 space-y-10">
  284. <view class="flex-col justify-start report_breath">
  285. <view class="flex-col justify-start">
  286. <view class="flex-row items-center group_11 space-x-10 pos_33">
  287. <image
  288. class="image_8"
  289. src="../../static/report/reportIconBeat.png"
  290. />
  291. <text class="font_3">心脏系统</text>
  292. <image
  293. @click="handleHeartClick"
  294. class="image_11"
  295. src="../../static/report/reportIconWhy.png"
  296. />
  297. </view>
  298. </view>
  299. <view class="flex-col pos_34 report_heart">
  300. <view class="flex-col group_15">
  301. <view class="flex-row justify-between group_2">
  302. <text class="font_3 text_12">平均心率</text>
  303. <view class="flex-row items-center space-x-30">
  304. <view class="flex-row items-baseline shrink-0 space-x-6">
  305. <text class="font_5">{{ sleepReportFrom.report_content.avg_rh.value }}</text>
  306. <text class="font_6">次/分</text>
  307. </view>
  308. </view>
  309. </view>
  310. </view>
  311. <view class="report_breath_chart">
  312. <view class="echarts-wrap">
  313. <mpvue-echarts class="ec-canvas" canvasId="canvasChart-3" ref="refChart-3" @onInit="onInit1"></mpvue-echarts>
  314. </view>
  315. </view>
  316. </view>
  317. </view>
  318. <view class="flex-col justify-start report_breath">
  319. <view class="flex-col justify-start">
  320. <view class="flex-row justify-center items-center group_11 space-x-10 pos_33">
  321. <image
  322. class="image_8"
  323. src="../../static/report/reportIconBreath.png"
  324. />
  325. <text class="font_3">呼吸系统</text>
  326. <image
  327. @click="handleBreathClick"
  328. class="image_11"
  329. src="../../static/report/reportIconWhy.png"
  330. />
  331. </view>
  332. </view>
  333. <view class="flex-col pos_34">
  334. <view class="flex-col group_15">
  335. <view class="flex-row justify-between group_2">
  336. <text class="font_3 text_12">平均呼吸率</text>
  337. <view class="flex-row items-center space-x-30">
  338. <view class="flex-row items-baseline shrink-0 space-x-6">
  339. <text class="font_5">{{ sleepReportFrom.report_content.avg_hx.value }}</text>
  340. <text class="font_6">次/分</text>
  341. </view>
  342. </view>
  343. </view>
  344. <view class="report_breath_chart">
  345. <view class="echarts-wrap">
  346. <mpvue-echarts class="ec-canvas" canvasId="canvasChart-4" ref="refChart-4" @onInit="onInit1"></mpvue-echarts>
  347. </view>
  348. </view>
  349. </view>
  350. <view class="list-divider"></view>
  351. <view class="flex-col group_15">
  352. <view class="flex-row justify-between group_2">
  353. <text class="font_3 text_12">打鼾</text>
  354. <view class="flex-row items-center space-x-30">
  355. <view class="flex-row items-baseline shrink-0 space-x-6">
  356. <text class="font_5">{{ sleepReportFrom.report_content.snoring_count.value }}</text>
  357. <text class="font_6">次</text>
  358. </view>
  359. </view>
  360. </view>
  361. <view class="report_breath_chart">
  362. <view class="echarts-wrap">
  363. <mpvue-echarts class="ec-canvas" canvasId="canvasChart-5" ref="refChart-5" @onInit="onInit1"></mpvue-echarts>
  364. </view>
  365. </view>
  366. </view>
  367. <view class="list-divider"></view>
  368. <view class="flex-col group_15">
  369. <view class="flex-row justify-between group_2">
  370. <text class="font_3 text_12">呼吸暂停</text>
  371. <!-- <view class="flex-row items-center space-x-30">-->
  372. <!-- <view class="flex-row items-baseline shrink-0 space-x-6">-->
  373. <!-- <text class="font_5">{{ sleepReportFrom.report_content.snoring_count.value }}</text>-->
  374. <!-- <text class="font_6">次</text>-->
  375. <!-- </view>-->
  376. <!-- </view>-->
  377. </view>
  378. <view class="report_breath_chart">
  379. <view class="echarts-wrap">
  380. <mpvue-echarts class="ec-canvas" canvasId="canvasChart-6" ref="refChart-6" @onInit="onInit1"></mpvue-echarts>
  381. </view>
  382. </view>
  383. </view>
  384. </view>
  385. </view>
  386. <!-- <view class="flex-col justify-start relative report_heart">-->
  387. <!-- <view class="section_25"></view>-->
  388. <!-- <view class="flex-row justify-center items-center group_11 space-x-9 pos_21">-->
  389. <!-- <image-->
  390. <!-- class="image_8"-->
  391. <!-- src="../../static/report/reportIconMoon.png"-->
  392. <!-- />-->
  393. <!-- <text class="font_3">深浅睡眠</text>-->
  394. <!-- <image-->
  395. <!-- class="image_11"-->
  396. <!-- src="../../static/report/reportIconWhy.png"-->
  397. <!-- />-->
  398. <!-- </view>-->
  399. <!-- -->
  400. <!-- <view class="flex-row justify-between report-sleep items-center">-->
  401. <!-- <view class="flex-col item-sleep">-->
  402. <!-- <text class="item-sleep-title">清醒</text>-->
  403. <!-- <text class="item-sleep-desc">2小时14分钟</text>-->
  404. <!-- </view>-->
  405. <!-- <view class="flex-col item-sleep">-->
  406. <!-- <text class="item-sleep-title">浅睡</text>-->
  407. <!-- <text class="item-sleep-desc">2小时14分钟</text>-->
  408. <!-- </view>-->
  409. <!-- <view class="flex-col item-sleep">-->
  410. <!-- <text class="item-sleep-title">深睡</text>-->
  411. <!-- <text class="item-sleep-desc">2小时14分钟</text>-->
  412. <!-- </view>-->
  413. <!-- </view>-->
  414. <!-- </view>-->
  415. </view>
  416. </view>
  417. </view>
  418. </view>
  419. </view>
  420. </view>
  421. <!-- <tab-bar currentPage="report" /> -->
  422. <view class="cu-modal bottom-modal" :class="calendarShow === true?'show':''" @tap="hideModal">
  423. <view class="cu-dialog">
  424. <uni-calendar
  425. @change="change"
  426. @monthSwitch="monthSwitch"
  427. :selected="selected"
  428. returnName="最新一次"
  429. ></uni-calendar>
  430. </view>
  431. </view>
  432. <view class="cu-modal" :class="bindShow?'show':''">
  433. <view class="cu-dialog">
  434. <view class="cu-bar bg-white justify-end">
  435. <view style="color: black" class="content">设备绑定</view>
  436. <view class="action" @tap="bindShow=false">
  437. <text class="cuIcon-close text-red"></text>
  438. </view>
  439. </view>
  440. <view class="">
  441. <form>
  442. <view class="cu-form-group solid-bottom">
  443. <view class="title">扫描二维码</view>
  444. <input type="text" v-model="bindSn" placeholder="输入或扫描IMEI" class="text-left"/>
  445. <text class="cuIcon-scan text-xxl text-green" style="font-size: 50rpx;"
  446. @click="scan"></text>
  447. </view>
  448. </form>
  449. </view>
  450. <view class="cu-bar bg-white justify-end">
  451. <view class="action">
  452. <button class="cu-btn bg-green margin-left" @tap="bindDevice">确定</button>
  453. </view>
  454. </view>
  455. </view>
  456. </view>
  457. <!-- <view class="cu-load load-modal" v-if="disabled">-->
  458. <!-- <view class="cuIcon-emojifill text-orange"></view>-->
  459. <!-- <view class="gray-text">正在获取</view>-->
  460. <!-- </view>-->
  461. </view>
  462. </template>
  463. <script>
  464. import echarts from '@/static/echarts.min.js'
  465. import mpvueEcharts from '@/components/mpvue-echarts/src/echarts.vue'
  466. import uniCalendar from '@/components/uni-calendar/uni-calendar.vue'
  467. import Storage from '@/utils/storage'
  468. import * as Foundation from '@/ui-utils/Foundation'
  469. import * as API_SLEEP_REPORT from '@/api/sleep_report'
  470. import * as API_deviceMemberBind from '@/api/device_member_bind'
  471. export default {
  472. components: {
  473. uniCalendar,mpvueEcharts
  474. },
  475. data() {
  476. return {
  477. isDeviceAdded: false,
  478. todayStr: Foundation.unixToDate(parseInt(new Date() / 1000), "yyyy-MM-dd"),
  479. selectDay: '',
  480. selectYearMonth: {
  481. year: Foundation.unixToDate(parseInt(new Date() / 1000), "yyyy"),
  482. month: Foundation.unixToDate(parseInt(new Date() / 1000), "M")
  483. },
  484. calendarShow: false,
  485. selected: [
  486. {
  487. // 打点日期
  488. "date": Foundation.unixToDate(parseInt(new Date() / 1000), "yyyy-MM-dd")
  489. }
  490. ],
  491. index: 0,
  492. todayTimeList: [],
  493. sleepReportFrom: {
  494. total_duration: 0,
  495. inbed_duration: 0,
  496. deep_duration: 0,
  497. rs_duration: 0
  498. },
  499. sleepReportList: [],
  500. chartObj1: null, // 离床次数图表
  501. chartObj2: null, // 体动次数图表
  502. myData1: [], // 离床次数数据
  503. myData2: [], // 体动次数数据
  504. params: {
  505. unionId: '',
  506. reportTime: -1
  507. },
  508. disabled: true,
  509. bindShow: false,
  510. bindSn: '',
  511. memberId: '',
  512. userInfo: null,
  513. errCount: 0,
  514. showCount: 0
  515. }
  516. },
  517. // mounted() {
  518. // this.memberId = 50289
  519. // this.params.unionId = '6291d3bde21b840008ae7842' // 先写死
  520. // this.getNewSleepReport()
  521. // },
  522. onShow() {
  523. this.memberId = Storage.getItem('uid')
  524. if (this.memberId) {
  525. if (!this.isDeviceAdded) {
  526. this.user = Storage.getItem('userInfo')
  527. this.params.unionId = this.user.union_id
  528. console.log('user===', this.user, this.user.union_id)
  529. this.getNewSleepReport()
  530. } else {
  531. if (Storage.getItem('refreshSleepReport')) {
  532. Storage.removeItem('refreshSleepReport')
  533. this.getNewSleepReport()
  534. } else {
  535. this.showCount ++
  536. if (this.showCount === 3) {
  537. this.showCount = 0
  538. this.getNewSleepReport()
  539. }
  540. }
  541. }
  542. } else {
  543. this.isDeviceAdded = false
  544. }
  545. },
  546. methods: {
  547. handleMonthClick() {
  548. uni.navigateTo({
  549. url: '/pages/monthReport/monthReport'
  550. })
  551. },
  552. handleWeekClick() {
  553. uni.navigateTo({
  554. url: '/pages/weekReport/weekReport'
  555. })
  556. },
  557. // 获取睡眠报告
  558. getNewSleepReport() {
  559. const _this = this
  560. this.todayTimeList = []
  561. API_SLEEP_REPORT.getNewListByUnionId(this.params).then(res => {
  562. _this.disabled = false
  563. console.log(res)
  564. if (res.length > 0) {
  565. this.isDeviceAdded = true
  566. _this.sleepReportFrom = Object.assign({}, res[0])
  567. _this.sleepReportFrom.report_content = JSON.parse(_this.sleepReportFrom.report_content)
  568. console.log(_this.sleepReportFrom)
  569. _this.sleepReportList = res
  570. res.forEach(item => {
  571. _this.todayTimeList.push(item.gobed_time + '~' + item.outbed_time)
  572. })
  573. console.log('this.todayTimeList==', this.todayTimeList)
  574. _this.selectDay = Foundation.unixToDate(_this.sleepReportFrom.report_time, "yyyy-MM-dd")
  575. let str = _this.selectDay.split("-")
  576. _this.selectYearMonth.year = str[0]
  577. _this.selectYearMonth.month = str[1]
  578. console.log('this.selectYearMonth===', _this.selectYearMonth)
  579. if (_this.params.reportTime === -1) {
  580. _this.getDaysTag()
  581. }
  582. _this.qualifiedCount(_this.sleepReportFrom.report_content)
  583. _this.initAllChar(_this.sleepReportFrom)
  584. } else {
  585. this.isDeviceAdded = false
  586. }
  587. })
  588. },
  589. // 选中日历
  590. change(e) {
  591. console.log('change===', e)
  592. const date = this.selected.find(item=> item.date === e.extraInfo.date)
  593. if (date) {
  594. this.params.reportTime = date.report_time
  595. this.selectDay = e.fulldate
  596. this.calendarShow = false
  597. this.getNewSleepReport()
  598. } else {
  599. if (this.todayStr === e.fulldate && this.selectYearMonth.month !== e.month) {
  600. this.params.reportTime = -1
  601. this.calendarShow = false
  602. this.getNewSleepReport()
  603. } else {
  604. uni.showToast({
  605. title: e.fulldate + '无睡眠报告',
  606. icon: 'none'
  607. })
  608. }
  609. }
  610. // this.selected[0].date = e.fulldate
  611. },
  612. // 月份切换
  613. monthSwitch(e) {
  614. console.log('monthSwitch===', e)
  615. //{year: 2020, month: 5}
  616. this.selectYearMonth = e
  617. this.getDaysTag()
  618. },
  619. // 获取日期点
  620. getDaysTag() {
  621. this.selectYearMonth.unionId = this.params.unionId
  622. API_SLEEP_REPORT.getSleepReportDaysTag(this.selectYearMonth).then(res => {
  623. this.selected = []
  624. res.forEach(p => {
  625. this.selected.push({
  626. date: this.selectYearMonth.year + '-' + this.selectYearMonth.month + '-' + p.flog_time,
  627. report_time: p.report_time
  628. })
  629. })
  630. })
  631. },
  632. // 时间选择
  633. PickerChange(e) {
  634. this.index = e.detail.value
  635. this.sleepReportFrom = Object.assign({}, this.sleepReportList[this.index])
  636. this.sleepReportFrom.report_content = JSON.parse(this.sleepReportFrom.report_content)
  637. this.qualifiedCount(this.sleepReportFrom.report_content)
  638. this.initAllChar(this.sleepReportFrom)
  639. },
  640. qualifiedCount(data) {
  641. let count = 0
  642. if (data.avg_hx.state === 1) {
  643. count ++
  644. } else if (data.sleep_eff.state === 1) {
  645. count ++
  646. } else if (data.avg_rh.state === 1) {
  647. count ++
  648. } else if (data.move_count.state === 1) {
  649. count ++
  650. } else if (data.outbed_count.state === 1) {
  651. count ++
  652. } else if (data.snoring_count.state === 1) {
  653. count ++
  654. }
  655. this.errCount = count
  656. },
  657. initAllChar(data) {
  658. const _this = this
  659. setTimeout(() => {
  660. _this.nowChart("refChart-1", 1, data.report_content.dt_arr, data.report_content.outbed_arr)
  661. _this.nowChart("refChart-2", 2, data.report_content.dt_arr, data.report_content.move_arr)
  662. _this.nowChart("refChart-3", 3, data.report_content.dt_arr, data.report_content.rh_arr)
  663. _this.nowChart("refChart-4", 4, data.report_content.dt_arr, data.report_content.hx_arr)
  664. _this.nowChart("refChart-5", 0, data.report_content.dt_arr, data.report_content.snoring_arr)
  665. _this.nowChart("refChart-6", 6, data.report_content.dt_arr, data.report_content.hxstop_arr)
  666. }, 800)
  667. },
  668. // 将分转化为时分
  669. formateSeconds(endTime) {
  670. let secondTime = endTime//将传入的秒的值转化为Number
  671. let h = 0// 初始化小时
  672. if (secondTime > 60) {//如果秒数大于60,将秒数转换成整数
  673. h = parseInt(secondTime / 60)//获取小时,获取分钟除以60,得到整数小时
  674. secondTime = parseInt(secondTime % 60) //获取小时后取佘的分,获取分钟除以60取佘的分
  675. return h + '小时' + secondTime + '分钟'
  676. } else {
  677. return secondTime + '分钟'
  678. }
  679. },
  680. onInit1(e) {
  681. this.chartObj = e
  682. },
  683. // 组装图表
  684. nowChart(refChar, type, xData, yData) {
  685. this.onInit1(this.chartObj)
  686. let canvas = this.$refs[refChar].canvas
  687. echarts.setCanvasCreator(() => canvas)
  688. let myChart = echarts.init(canvas, 'halloween', {
  689. width: this.chartObj.width + 10,
  690. height: this.chartObj.height - 10
  691. })
  692. let options = Object.assign(this.getOptions(xData, yData), {})
  693. if (type <=2) {
  694. options.yAxis = this.getOptionsY1(type)
  695. } else {
  696. options.yAxis = this.getOptionsY2()
  697. }
  698. myChart.setOption(options)
  699. },
  700. getOptions(xData, yData) {
  701. return {
  702. visualMap: [
  703. {
  704. show: false,
  705. type: 'continuous',
  706. seriesIndex: 0,
  707. min: 0,
  708. max: 300,
  709. },
  710. ],
  711. color: '#FFFFFF',
  712. title: {
  713. left: 'left',
  714. // text: title,
  715. },
  716. tooltip: {
  717. trigger: 'axis',
  718. axisPointer: {
  719. animation: false,
  720. },
  721. },
  722. grid: {
  723. top: '15%',
  724. bottom: '10%',
  725. },
  726. xAxis: {
  727. type: 'category',
  728. boundaryGap: [0, '100%'],
  729. // show: false, // 不显示x轴
  730. splitLine: {
  731. show: false,
  732. },
  733. axisLine: {
  734. lineStyle:{
  735. color:'#FFFFFF',
  736. width:1, //x轴线的宽度
  737. }
  738. },
  739. triggerEvent: true,
  740. data: xData,
  741. },
  742. yAxis: {},
  743. series: [
  744. {
  745. type: 'line',
  746. lineStyle: {
  747. width: 0.8
  748. },
  749. showSymbol: false,
  750. hoverAnimation: false,
  751. data: yData,
  752. },
  753. ]
  754. }
  755. },
  756. getOptionsY1(type) {
  757. return {
  758. type: 'value',
  759. // boundaryGap: [0, '100%'],
  760. min: 0,
  761. max: 1, // dataMax取数据在该轴上的最大值作为最大刻度
  762. minInterval: 1,
  763. splitLine: {
  764. show: false, // 是否显示分隔线
  765. },
  766. axisLine: {
  767. show: true, // 是否显示坐标轴轴线
  768. lineStyle:{
  769. color:'#FFFFFF',
  770. width:1, //x轴线的宽度
  771. }
  772. },
  773. // axisLine: {
  774. // show: false // 是否显示坐标轴轴线
  775. // },
  776. axisLabel: {
  777. formatter: function (value, index) {
  778. switch (type) {
  779. case 0:
  780. return value === 0 ? '睡眠' : '打鼾'
  781. case 1:
  782. return value === 0 ? '离床' : '在床'
  783. case 2:
  784. return value === 0 ? '睡眠' : '体动'
  785. default:
  786. return value
  787. }
  788. }
  789. }
  790. }
  791. },
  792. getOptionsY2() {
  793. return {
  794. type: 'value',
  795. boundaryGap: [0, '100%'],
  796. min: 0,
  797. max: 'dataMax', // 取数据在该轴上的最大值作为最大刻度
  798. splitLine: {
  799. show: false, // 是否显示分隔线
  800. },
  801. axisLine: {
  802. show: false, // 是否显示坐标轴轴线
  803. lineStyle:{
  804. color:'#FFFFFF'
  805. }
  806. }
  807. }
  808. },
  809. // 扫描条码
  810. scan() {
  811. let _this = this
  812. uni.scanCode({
  813. success: function (res) {
  814. console.log(res, res.result.length)
  815. if (res.result.length > 20) {
  816. if (res.scanType === 'QR_CODE') {
  817. const urlStr = res.result
  818. const qs = Foundation.getQueryObject(urlStr)
  819. if (qs.mac) {
  820. _this.bindSn = qs.mac
  821. } else {
  822. uni.showToast({
  823. title: '请扫码正确的睡眠床垫二维码',
  824. icon: 'none'
  825. });
  826. }
  827. } else {
  828. _this.bindSn = res.result
  829. }
  830. } else {
  831. _this.bindSn = res.result
  832. }
  833. },
  834. fail: (err) => {
  835. console.log(err)
  836. // #ifdef MP
  837. uni.getSetting({
  838. success: (res) => {
  839. let authStatus = res.authSetting['scope.camera'];
  840. if (!authStatus) {
  841. uni.showModal({
  842. title: '授权失败',
  843. content: 'app需要使用您的相机,请在设置界面打开相关权限',
  844. success: (res) => {
  845. if (res.confirm) {
  846. uni.openSetting()
  847. }
  848. }
  849. })
  850. }
  851. }
  852. })
  853. // #endif
  854. }
  855. })
  856. },
  857. bindDevice() {
  858. const params = {
  859. imei: this.bindSn,
  860. memberId: this.memberId,
  861. dtype: '睡眠床垫'
  862. }
  863. this.bindShow = false
  864. let _this = this
  865. API_deviceMemberBind.bindDeviceByDtype(params).then(res => {
  866. if (res.success) {
  867. _this.bindSn = ''
  868. uni.showToast({
  869. title: '绑定成功',
  870. })
  871. _this.API_getDeviceList()
  872. } else {
  873. uni.showToast({
  874. title: res.message,
  875. icon: 'none'
  876. })
  877. }
  878. })
  879. },
  880. API_getDeviceList() {
  881. const _this = this
  882. API_deviceMemberBind.getDeviceByDtypeAndMemberId({dtype: '睡眠床垫', memberId: this.memberId}).then(res => {
  883. if (res.length === 0) {
  884. Storage.removeItem("nowChangeDevice")
  885. Storage.removeItem("myBindDevices")
  886. } else {
  887. Storage.setItem("nowChangeDevice", res[0].imei)
  888. Storage.setItem("myBindDevices", res)
  889. }
  890. })
  891. },
  892. addBindDevice() {
  893. if (this.memberId) {
  894. this.bindShow = 'show'
  895. } else {
  896. uni.showModal({
  897. title: '提示',
  898. content: "您还没有登录,是否前往登录?",
  899. confirmText: "确定",
  900. showCancel: true,
  901. success: function(res) {
  902. if (res.confirm) {
  903. uni.reLaunch({
  904. url:'/pages/auth/auth'
  905. })
  906. }
  907. }
  908. })
  909. }
  910. },
  911. hideModal(e) {
  912. this.calendarShow = null
  913. },
  914. handleClickBreath() {
  915. uni.navigateTo({
  916. url: '/pages/detail/detail?index=2'
  917. })
  918. },
  919. handleHeartClick() {
  920. uni.navigateTo({
  921. url: '/pages/detail/detail?index=3'
  922. })
  923. },
  924. handleBreathClick() {
  925. uni.navigateTo({
  926. url: '/pages/detail/detail?index=4'
  927. })
  928. },
  929. handleSleepClick() {
  930. uni.navigateTo({
  931. url: '/pages/detail/detail?index=0'
  932. })
  933. }
  934. }
  935. }
  936. </script>
  937. <style lang="scss">
  938. .btns-report {
  939. color: #ffffff;
  940. position: fixed;
  941. top: 9rem;
  942. font-size: 15px;
  943. z-index: 100;
  944. }
  945. .btn-week-report, .btn-month-report {
  946. background-color: #7e5a9d4d;
  947. -webkit-backdrop-filter: blur(0.31rem);
  948. backdrop-filter: blur(0.31rem);
  949. padding: 0.3rem 1rem;
  950. border-radius: 0 1rem 1rem 0;
  951. margin-bottom: 0.5rem;
  952. }
  953. .report_heart {
  954. .section_25 {
  955. opacity: 0.8;
  956. //background: linear-gradient(90deg, rgba(86, 17, 247, 0.5) 0%, #4d9efa 100%);
  957. border-radius: 0.5rem;
  958. height: 11.19rem;
  959. }
  960. .space-x-9 {
  961. & > view:not(:first-child),
  962. & > text:not(:first-child),
  963. & > image:not(:first-child) {
  964. margin-left: 0.56rem;
  965. }
  966. }
  967. .pos_21 {
  968. position: absolute;
  969. left: 0.63rem;
  970. top: 0.63rem;
  971. }
  972. .group_12 {
  973. width: 17.88rem;
  974. .text_11 {
  975. color: #6b6b6b;
  976. }
  977. .space-x-48 {
  978. & > view:not(:first-child),
  979. & > text:not(:first-child),
  980. & > image:not(:first-child) {
  981. margin-left: 3rem;
  982. }
  983. }
  984. }
  985. .pos_22 {
  986. position: absolute;
  987. right: 0.59rem;
  988. top: 3.66rem;
  989. }
  990. }
  991. .report-easy {
  992. margin: 1rem 1.25rem 0 1.25rem;
  993. }
  994. .image_8 {
  995. border-radius: 50%;
  996. width: 2rem;
  997. height: 2rem;
  998. }
  999. .font_3 {
  1000. font-size: 1rem;
  1001. font-family: PingFangSC;
  1002. line-height: 0.94rem;
  1003. color: #ffffff;
  1004. }
  1005. .image_11 {
  1006. width: 1rem;
  1007. height: 1rem;
  1008. }
  1009. .report_breath {
  1010. padding: 0.63rem;
  1011. background-image: linear-gradient(180deg, #341a4b 0%, #167df2 100%);
  1012. border-radius: 0.5rem;
  1013. .report_breath_chart {
  1014. position: relative;
  1015. height: 7rem;
  1016. }
  1017. .pos_33 {
  1018. }
  1019. .pos_34 {
  1020. .group_15 {
  1021. padding: 1rem 0;
  1022. .font_10 {
  1023. font-size: 0.88rem;
  1024. font-family: PingFangSC;
  1025. line-height: 0.81rem;
  1026. color: #ffffff;
  1027. }
  1028. .font_5 {
  1029. font-size: 1.13rem;
  1030. font-family: PingFangSC;
  1031. line-height: 0.81rem;
  1032. color: #ffffff;
  1033. }
  1034. .font_6 {
  1035. font-size: 0.75rem;
  1036. font-family: PingFangSC;
  1037. line-height: 0.69rem;
  1038. color: #ffffff;
  1039. }
  1040. .group_2 {
  1041. padding-left: 1.25rem;
  1042. .text_12 {
  1043. color: #ffffff;
  1044. }
  1045. .space-x-30 {
  1046. & > view:not(:first-child),
  1047. & > text:not(:first-child),
  1048. & > image:not(:first-child) {
  1049. margin-left: 1.88rem;
  1050. }
  1051. }
  1052. }
  1053. .group_16 {
  1054. margin-top: 0.63rem;
  1055. .section_32 {
  1056. width: 2.28rem;
  1057. height: 5.53rem;
  1058. border: solid 0.031rem #4a315e;
  1059. }
  1060. .section_34 {
  1061. width: 2.22rem;
  1062. height: 5.53rem;
  1063. border: solid 0.031rem #4a315e;
  1064. }
  1065. .view_7 {
  1066. margin-left: 2.13rem;
  1067. }
  1068. .section_36 {
  1069. margin-left: 2.31rem;
  1070. width: 2.34rem;
  1071. height: 5.53rem;
  1072. border: solid 0.031rem #4a315e;
  1073. }
  1074. .view_8 {
  1075. margin-left: 2.13rem;
  1076. }
  1077. .pos_36 {
  1078. position: absolute;
  1079. left: 2.25rem;
  1080. top: 0;
  1081. }
  1082. .pos_38 {
  1083. position: absolute;
  1084. right: 4.47rem;
  1085. top: 0;
  1086. }
  1087. .section_35 {
  1088. width: 2.41rem;
  1089. height: 5.53rem;
  1090. border: solid 0.031rem #4a315e;
  1091. }
  1092. .pos_37 {
  1093. position: absolute;
  1094. left: 6.63rem;
  1095. top: 0;
  1096. }
  1097. .pos_39 {
  1098. position: absolute;
  1099. right: 0;
  1100. top: 0;
  1101. }
  1102. .section_33 {
  1103. width: 17.97rem;
  1104. height: 1.41rem;
  1105. border: solid 0.031rem #4a315e;
  1106. }
  1107. .pos_41 {
  1108. position: absolute;
  1109. left: 0;
  1110. right: 0;
  1111. top: 2.75rem;
  1112. }
  1113. .pos_40 {
  1114. position: absolute;
  1115. left: 0;
  1116. right: 0;
  1117. top: 1.38rem;
  1118. }
  1119. .pos_35 {
  1120. position: absolute;
  1121. left: 0;
  1122. right: 0;
  1123. top: 0;
  1124. }
  1125. .pos_43 {
  1126. position: absolute;
  1127. left: 0;
  1128. right: 0;
  1129. top: 2.88rem;
  1130. }
  1131. .pos_42 {
  1132. position: absolute;
  1133. left: 0;
  1134. right: 0.13rem;
  1135. top: 50%;
  1136. transform: translateY(-50%);
  1137. }
  1138. }
  1139. .group_17 {
  1140. padding: 0.38rem 0 1rem 0.5rem;
  1141. }
  1142. }
  1143. .list-divider {
  1144. margin: 0 0.63rem;
  1145. background-color: #523c65;
  1146. height: 0.063rem;
  1147. }
  1148. }
  1149. }
  1150. .echarts-wrap {
  1151. width: 100%;
  1152. height: 7rem;
  1153. margin-bottom: 0.3rem;
  1154. position: absolute;
  1155. bottom: 0
  1156. }
  1157. .report-sleep {
  1158. position: absolute;
  1159. top: 3rem;
  1160. width: 100%;
  1161. padding: 0.3rem;
  1162. .item-sleep {
  1163. .item-sleep-title {
  1164. font-size: 14px;
  1165. font-weight: 400;
  1166. letter-spacing: 0px;
  1167. line-height: 14px;
  1168. color: rgba(155, 151, 188, 1);
  1169. text-align: left;
  1170. vertical-align: top;
  1171. }
  1172. .item-sleep-desc {
  1173. font-size: 12px;
  1174. font-weight: 400;
  1175. letter-spacing: 0px;
  1176. line-height: 12px;
  1177. color: rgba(255, 255, 255, 1);
  1178. text-align: left;
  1179. vertical-align: top;
  1180. margin-top: 5px;
  1181. }
  1182. }
  1183. }
  1184. .report-charts {
  1185. margin-top: 0.5rem;
  1186. }
  1187. .bottom-btns {
  1188. position: absolute;
  1189. bottom: 10px;
  1190. .bottom-btn {
  1191. font-size: 16px;
  1192. font-weight: 500;
  1193. letter-spacing: 0px;
  1194. line-height: 30px;
  1195. color: #ffffff;
  1196. text-align: center;
  1197. width: 98px;
  1198. height: 30px;
  1199. border-radius: 14.5px;
  1200. margin: 10px;
  1201. }
  1202. .btn_1 {
  1203. background: linear-gradient(90deg, rgba(44, 37, 247, 0.6) 0%, rgba(6, 21, 153, 1) 100%);
  1204. }
  1205. .btn_2 {
  1206. background: linear-gradient(90deg, rgba(5, 96, 232, 1) 0%, rgba(100, 158, 245, 1) 100%);
  1207. }
  1208. }
  1209. .report-container {
  1210. background-color: #000000;
  1211. padding-bottom: 50px;
  1212. height: -webkit-fill-available;
  1213. // height: 100%;
  1214. .image-wrapper_2 {
  1215. background: url("http://wdklmall.oss-cn-shenzhen.aliyuncs.com/mallgoods/goods/560AFD2D700A40F19029F9FA2FD4612E.png");
  1216. background-repeat: no-repeat;
  1217. background-size: cover;
  1218. height: 100%;
  1219. width: 100%;
  1220. }
  1221. }
  1222. .report-data-sum {
  1223. margin: 1rem;
  1224. padding-top: 2.5rem;
  1225. color: #ffffff;
  1226. .icon-data-sum {
  1227. width: 40px;
  1228. height: 40px;
  1229. }
  1230. .text-data-sum {
  1231. margin-left: 6px;
  1232. text-align: left;
  1233. .title-data-sum {
  1234. width: 100%;
  1235. font-size: 12px;
  1236. line-height: 12px;
  1237. font-weight: 400;
  1238. margin-bottom: 2px;
  1239. }
  1240. .font_4 {
  1241. font-size: 24px;
  1242. line-height: 24px;
  1243. height: 24px;
  1244. }
  1245. .font_5 {
  1246. font-size: 14px;
  1247. line-height: 24px;
  1248. }
  1249. }
  1250. }
  1251. .page {
  1252. background-color: #000000;
  1253. width: 100%;
  1254. overflow-y: auto;
  1255. overflow-x: hidden;
  1256. height: 100%;
  1257. .group {
  1258. overflow-y: auto;
  1259. .group_3 {
  1260. padding: 0rem 0 0.25rem;
  1261. .group_8 {
  1262. padding: 0 1.25rem;
  1263. .report_leave_bed {
  1264. .section_10 {
  1265. opacity: 0.8;
  1266. background: linear-gradient(90deg, rgba(86, 17, 247, 0.5) 0%, #4d9efa 100%);
  1267. border-radius: 0.5rem;
  1268. height: 9.91rem;
  1269. }
  1270. .pos_2 {
  1271. position: absolute;
  1272. left: 0.63rem;
  1273. right: 0.53rem;
  1274. top: 0.63rem;
  1275. .space-x-12 {
  1276. & > view:not(:first-child),
  1277. & > text:not(:first-child),
  1278. & > image:not(:first-child) {
  1279. margin-left: 0.75rem;
  1280. }
  1281. }
  1282. }
  1283. .pos_3 {
  1284. position: absolute;
  1285. left: 0.66rem;
  1286. right: 0.63rem;
  1287. top: 3.56rem;
  1288. }
  1289. .pos_10 {
  1290. position: absolute;
  1291. right: 0.66rem;
  1292. top: 6.69rem;
  1293. }
  1294. }
  1295. .report_move {
  1296. .section_20 {
  1297. opacity: 0.8;
  1298. background: linear-gradient(90deg, rgba(86, 17, 247, 0.5) 0%, #4d9efa 100%);
  1299. border-radius: 0.5rem;
  1300. height: 9.91rem;
  1301. }
  1302. .pos_11 {
  1303. position: absolute;
  1304. left: 0.63rem;
  1305. right: 0.53rem;
  1306. top: 0.63rem;
  1307. }
  1308. .space-x-2 {
  1309. & > view:not(:first-child),
  1310. & > text:not(:first-child),
  1311. & > image:not(:first-child) {
  1312. margin-left: 0.13rem;
  1313. }
  1314. .group_10 {
  1315. width: 1.34rem;
  1316. }
  1317. .section_21 {
  1318. width: 2.28rem;
  1319. height: 4.16rem;
  1320. border: solid 0.031rem #4a315e;
  1321. }
  1322. .section_23 {
  1323. width: 2.22rem;
  1324. height: 4.16rem;
  1325. border: solid 0.031rem #4a315e;
  1326. }
  1327. .view_4 {
  1328. margin-left: 2.13rem;
  1329. }
  1330. .section_24 {
  1331. width: 2.34rem;
  1332. height: 4.16rem;
  1333. border: solid 0.031rem #4a315e;
  1334. }
  1335. .view_5 {
  1336. margin-left: 2.25rem;
  1337. }
  1338. .view_6 {
  1339. margin-left: 2.13rem;
  1340. }
  1341. .pos_14 {
  1342. position: absolute;
  1343. left: 2.25rem;
  1344. top: 0;
  1345. }
  1346. .pos_16 {
  1347. position: absolute;
  1348. right: 4.44rem;
  1349. top: 0;
  1350. }
  1351. .pos_15 {
  1352. position: absolute;
  1353. left: 6.63rem;
  1354. top: 0;
  1355. }
  1356. .pos_17 {
  1357. position: absolute;
  1358. right: 0;
  1359. top: 0;
  1360. }
  1361. .pos_18 {
  1362. position: absolute;
  1363. left: 0;
  1364. right: 0;
  1365. top: 50%;
  1366. transform: translateY(-50%);
  1367. }
  1368. .pos_13 {
  1369. position: absolute;
  1370. left: 0;
  1371. right: 0;
  1372. top: 0;
  1373. }
  1374. .image_10 {
  1375. width: 17.88rem;
  1376. height: 2.75rem;
  1377. }
  1378. .pos_19 {
  1379. position: absolute;
  1380. left: 0;
  1381. right: 0;
  1382. bottom: 0;
  1383. }
  1384. }
  1385. .pos_12 {
  1386. position: absolute;
  1387. left: 0.91rem;
  1388. right: 0.63rem;
  1389. top: 3.56rem;
  1390. }
  1391. .pos_20 {
  1392. position: absolute;
  1393. right: 0.66rem;
  1394. top: 8.06rem;
  1395. }
  1396. }
  1397. .space-x-6 {
  1398. & > view:not(:first-child),
  1399. & > text:not(:first-child),
  1400. & > image:not(:first-child) {
  1401. margin-left: 0.38rem;
  1402. }
  1403. .font_5 {
  1404. font-size: 1.13rem;
  1405. font-family: PingFangSC;
  1406. line-height: 0.81rem;
  1407. color: #ffffff;
  1408. }
  1409. }
  1410. .space-y-12 {
  1411. & > view:not(:first-child),
  1412. & > text:not(:first-child),
  1413. & > image:not(:first-child) {
  1414. margin-top: 0.75rem;
  1415. }
  1416. }
  1417. .font_7 {
  1418. font-size: 0.75rem;
  1419. font-family: PingFangSC;
  1420. line-height: 0.69rem;
  1421. color: #9b97bc;
  1422. }
  1423. .group_9 {
  1424. width: 18.63rem;
  1425. .font_8 {
  1426. font-size: 0.56rem;
  1427. font-family: PingFangSC;
  1428. line-height: 0.41rem;
  1429. color: #a5b6ca;
  1430. }
  1431. }
  1432. .space-x-4 {
  1433. & > view:not(:first-child),
  1434. & > text:not(:first-child),
  1435. & > image:not(:first-child) {
  1436. margin-left: 0.25rem;
  1437. }
  1438. .section_11 {
  1439. width: 2.28rem;
  1440. height: 2.78rem;
  1441. border: solid 0.031rem #4a315e;
  1442. }
  1443. .section_14 {
  1444. width: 2.16rem;
  1445. height: 2.78rem;
  1446. border: solid 0.031rem #4a315e;
  1447. }
  1448. .view_2 {
  1449. margin-left: 2.13rem;
  1450. }
  1451. .image_9 {
  1452. margin-left: 2.38rem;
  1453. width: 2.34rem;
  1454. height: 2.78rem;
  1455. }
  1456. .section_13 {
  1457. width: 2.22rem;
  1458. height: 2.78rem;
  1459. border: solid 0.031rem #4a315e;
  1460. }
  1461. .view_3 {
  1462. margin-left: 2.06rem;
  1463. }
  1464. .pos_5 {
  1465. position: absolute;
  1466. left: 2.25rem;
  1467. top: 0;
  1468. }
  1469. .pos_7 {
  1470. position: absolute;
  1471. right: 4.44rem;
  1472. top: 0;
  1473. }
  1474. .section_15 {
  1475. width: 2.47rem;
  1476. height: 2.78rem;
  1477. border: solid 0.031rem #4a315e;
  1478. }
  1479. .pos_6 {
  1480. position: absolute;
  1481. left: 6.56rem;
  1482. top: 0;
  1483. }
  1484. .pos_8 {
  1485. position: absolute;
  1486. right: 0;
  1487. top: 0;
  1488. }
  1489. .section_19 {
  1490. background-color: #44d7b6;
  1491. width: 0.5rem;
  1492. height: 0.94rem;
  1493. }
  1494. .pos_9 {
  1495. position: absolute;
  1496. left: 6.47rem;
  1497. top: 1.59rem;
  1498. }
  1499. .section_12 {
  1500. padding: 0.25rem 0;
  1501. border: solid 0.031rem #4a315e;
  1502. .section_16 {
  1503. background-color: #73e182;
  1504. width: 6.44rem;
  1505. height: 0.94rem;
  1506. }
  1507. .section_17 {
  1508. background-color: #73e182;
  1509. width: 3.94rem;
  1510. height: 0.94rem;
  1511. }
  1512. .section_18 {
  1513. background-color: #73e182;
  1514. width: 6.69rem;
  1515. height: 0.94rem;
  1516. }
  1517. }
  1518. .pos_4 {
  1519. position: absolute;
  1520. left: 0;
  1521. right: 0;
  1522. top: 0;
  1523. }
  1524. .section_26 {
  1525. width: 2.59rem;
  1526. height: 5.53rem;
  1527. border: solid 0.031rem #4a315e;
  1528. }
  1529. .section_27 {
  1530. width: 2.53rem;
  1531. height: 5.53rem;
  1532. border: solid 0.031rem #4a315e;
  1533. }
  1534. .section_29 {
  1535. width: 2.66rem;
  1536. height: 5.53rem;
  1537. border: solid 0.031rem #4a315e;
  1538. }
  1539. .pos_25 {
  1540. position: absolute;
  1541. left: 2.56rem;
  1542. top: 0;
  1543. }
  1544. .pos_27 {
  1545. position: absolute;
  1546. right: 2.53rem;
  1547. top: 0;
  1548. }
  1549. .section_28 {
  1550. width: 2.72rem;
  1551. height: 5.53rem;
  1552. border: solid 0.031rem #4a315e;
  1553. }
  1554. .pos_26 {
  1555. position: absolute;
  1556. left: 50%;
  1557. top: 0;
  1558. transform: translateX(-50%);
  1559. }
  1560. .pos_29 {
  1561. position: absolute;
  1562. left: 0;
  1563. right: 0;
  1564. top: 2.75rem;
  1565. }
  1566. .pos_28 {
  1567. position: absolute;
  1568. left: 0;
  1569. right: 0;
  1570. top: 1.38rem;
  1571. }
  1572. .pos_24 {
  1573. position: absolute;
  1574. left: 0;
  1575. right: 0;
  1576. top: 0;
  1577. }
  1578. .pos_31 {
  1579. position: absolute;
  1580. left: 0;
  1581. right: 0;
  1582. top: 2.88rem;
  1583. }
  1584. .pos_30 {
  1585. position: absolute;
  1586. left: 0;
  1587. right: 0;
  1588. top: 50%;
  1589. transform: translateY(-50%);
  1590. }
  1591. }
  1592. .section_22 {
  1593. width: 17.91rem;
  1594. height: 1.41rem;
  1595. border: solid 0.031rem #4a315e;
  1596. }
  1597. .group_11 {
  1598. width: 8.25rem;
  1599. }
  1600. .space-x-10 {
  1601. & > view:not(:first-child),
  1602. & > text:not(:first-child),
  1603. & > image:not(:first-child) {
  1604. margin-left: 0.63rem;
  1605. }
  1606. }
  1607. .font_10 {
  1608. font-size: 0.88rem;
  1609. font-family: PingFangSC;
  1610. line-height: 0.81rem;
  1611. color: #ffffff;
  1612. }
  1613. .group_13 {
  1614. width: 0.97rem;
  1615. .font_11 {
  1616. font-size: 0.75rem;
  1617. font-family: PingFangSC;
  1618. line-height: 0.56rem;
  1619. color: #9b97bc;
  1620. }
  1621. }
  1622. .space-y-14 {
  1623. & > view:not(:first-child),
  1624. & > text:not(:first-child),
  1625. & > image:not(:first-child) {
  1626. margin-top: 0.88rem;
  1627. }
  1628. }
  1629. .divider {
  1630. background-image: repeating-linear-gradient(
  1631. 90deg,
  1632. #e02020,
  1633. #e02020 0.35%,
  1634. transparent 0.35%,
  1635. transparent 1.047%
  1636. );
  1637. background-position: -0.031rem 0px;
  1638. height: 0.063rem;
  1639. }
  1640. .font_9 {
  1641. font-size: 0.56rem;
  1642. font-family: PingFangSC;
  1643. line-height: 0.41rem;
  1644. color: #9b97bc;
  1645. }
  1646. }
  1647. .space-y-10 {
  1648. & > view:not(:first-child),
  1649. & > text:not(:first-child),
  1650. & > image:not(:first-child) {
  1651. margin-top: 0.63rem;
  1652. }
  1653. }
  1654. }
  1655. }
  1656. .tab-bar {
  1657. padding: 0.25rem 3.38rem;
  1658. background-color: #167df2;
  1659. backdrop-filter: blur(0.63rem);
  1660. .group_26 {
  1661. height: 2.47rem;
  1662. .text_17 {
  1663. font-size: 0.69rem;
  1664. line-height: 0.63rem;
  1665. }
  1666. }
  1667. .space-y-2 {
  1668. & > view:not(:first-child),
  1669. & > text:not(:first-child),
  1670. & > image:not(:first-child) {
  1671. margin-top: 0.13rem;
  1672. }
  1673. }
  1674. .group_27 {
  1675. height: 2.5rem;
  1676. .text_18 {
  1677. font-size: 0.69rem;
  1678. line-height: 0.63rem;
  1679. }
  1680. }
  1681. .image_15 {
  1682. width: 1.69rem;
  1683. height: 1.69rem;
  1684. }
  1685. .font_12 {
  1686. font-size: 0.75rem;
  1687. font-family: PingFangSC;
  1688. line-height: 0.69rem;
  1689. color: #ffffffb3;
  1690. }
  1691. }
  1692. .font_6 {
  1693. font-size: 0.75rem;
  1694. font-family: PingFangSC;
  1695. line-height: 0.69rem;
  1696. color: #ffffff;
  1697. }
  1698. }
  1699. .page {
  1700. background-color: #000000;
  1701. width: 100%;
  1702. overflow-y: auto;
  1703. overflow-x: hidden;
  1704. height: 100%;
  1705. margin-bottom: 1rem;
  1706. .report {
  1707. overflow-y: auto;
  1708. .report_header {
  1709. .report-header-img {
  1710. position: absolute;
  1711. top: -5rem;
  1712. left: 50%;
  1713. width: 22.5rem;
  1714. height: 28.5em;
  1715. margin-left: -11.25rem;
  1716. }
  1717. .report_score {
  1718. padding-top: 1rem;
  1719. z-index: 100;
  1720. .report_period {
  1721. margin-left: 1.2rem;
  1722. }
  1723. .report_score_data {
  1724. .section_5 {
  1725. padding: 0.38rem 0.88rem;
  1726. background-color: #7e5a9d4d;
  1727. border-radius: 1rem 0px 0px 1rem;
  1728. backdrop-filter: blur(0.31rem);
  1729. width: 5.25rem;
  1730. height: 2rem;
  1731. .image_6 {
  1732. width: 1.5rem;
  1733. height: 1.31rem;
  1734. }
  1735. .text_5 {
  1736. line-height: 0.72rem;
  1737. }
  1738. }
  1739. .space-x-76-reverse {
  1740. & > view:not(:last-child),
  1741. & > text:not(:last-child),
  1742. & > image:not(:last-child) {
  1743. margin-right: 4.75rem;
  1744. }
  1745. .text_4 {
  1746. color: #ffffff;
  1747. font-size: 1.5rem;
  1748. font-family: PingFangSC;
  1749. line-height: 1.38rem;
  1750. }
  1751. }
  1752. .text_6 {
  1753. margin-top: 1rem;
  1754. //color: #ffffff;
  1755. font-size: 3.38rem;
  1756. font-family: PingFangSC;
  1757. line-height: 2.47rem;
  1758. }
  1759. .text_7 {
  1760. margin-top: 1.38rem;
  1761. line-height: 0.94rem;
  1762. }
  1763. }
  1764. }
  1765. .space-y-55 {
  1766. & > view:not(:first-child),
  1767. & > text:not(:first-child),
  1768. & > image:not(:first-child) {
  1769. margin-top: 3.44rem;
  1770. }
  1771. }
  1772. }
  1773. .report_analysis {
  1774. padding-top: 0.63rem;
  1775. .font_4 {
  1776. font-size: 1.13rem;
  1777. font-family: PingFangSC;
  1778. line-height: 0.81rem;
  1779. color: #ffffff;
  1780. }
  1781. .text_8 {
  1782. margin-left: 1.25rem;
  1783. line-height: 1.06rem;
  1784. }
  1785. .section_easy {
  1786. margin: 0 1.25rem;
  1787. padding: 0 0.88rem;
  1788. height: 52px;
  1789. opacity: 0.8;
  1790. border-radius: 8px;
  1791. background: linear-gradient(180deg, rgba(22, 125, 242, 1) 0%, rgba(52, 26, 75, 1) 100%);
  1792. .image_7 {
  1793. width: 32px;
  1794. height: 32px;
  1795. }
  1796. .font_3 {
  1797. font-size: 16px;
  1798. color: #ffffff;
  1799. font-weight: 400;
  1800. margin-left: 9px;
  1801. }
  1802. .font_7 {
  1803. color: rgba(255, 255, 255, 0.6);
  1804. font-size: 16px;
  1805. margin-right: 10px;
  1806. }
  1807. .font_4 {
  1808. font-size: 18px;
  1809. color: #ffffff;
  1810. font-weight: 500;
  1811. }
  1812. }
  1813. .section_efficiency {
  1814. margin: 0 1.25rem;
  1815. padding: 0 0.88rem;
  1816. height: 52px;
  1817. opacity: 0.8;
  1818. border-radius: 8px;
  1819. background: linear-gradient(180deg, rgba(22, 125, 242, 1) 0%, rgba(52, 26, 75, 1) 100%);
  1820. .image_7 {
  1821. width: 32px;
  1822. height: 32px;
  1823. }
  1824. .font_3 {
  1825. font-size: 16px;
  1826. color: #ffffff;
  1827. font-weight: 400;
  1828. margin-left: 9px;
  1829. }
  1830. .font_4 {
  1831. font-size: 18px;
  1832. color: #ffffff;
  1833. font-weight: 500;
  1834. }
  1835. }
  1836. .report_analysis_data {
  1837. padding-top: 22.5rem;
  1838. .space-x-26 {
  1839. & > view:not(:first-child),
  1840. & > text:not(:first-child),
  1841. & > image:not(:first-child) {
  1842. margin-left: 1.63rem;
  1843. }
  1844. .text_10 {
  1845. line-height: 1.5rem;
  1846. width: 8.5rem;
  1847. }
  1848. .section_9 {
  1849. margin-top: 1.75rem;
  1850. padding: 1.19rem 0.5rem 0.5rem 0.81rem;
  1851. background-color: #1751e6cc;
  1852. border-radius: 0.5rem 0.5rem 0 0;
  1853. height: 2.63rem;
  1854. }
  1855. .space-x-34 {
  1856. & > view:not(:first-child),
  1857. & > text:not(:first-child),
  1858. & > image:not(:first-child) {
  1859. margin-left: 2.13rem;
  1860. }
  1861. }
  1862. }
  1863. .equal-division {
  1864. padding: 0 0.88rem;
  1865. .equal-division-item {
  1866. padding: 0.25rem 0.38rem 0;
  1867. flex: 1 1 10.81rem;
  1868. .section_6 {
  1869. padding: 0.63rem 0.63rem 0.75rem;
  1870. background-color: #1751e6cc;
  1871. border-radius: 0.5rem;
  1872. .text_9 {
  1873. margin-left: 1.5rem;
  1874. }
  1875. .space-x-12 {
  1876. & > view:not(:first-child),
  1877. & > text:not(:first-child),
  1878. & > image:not(:first-child) {
  1879. margin-left: 0.75rem;
  1880. }
  1881. }
  1882. }
  1883. .view {
  1884. margin-top: 0.63rem;
  1885. }
  1886. .group_7 {
  1887. margin-top: 0.63rem;
  1888. padding: 1.25rem 0.63rem 2rem;
  1889. background: url("http://wdklmall.oss-cn-shenzhen.aliyuncs.com/mallgoods/goods/BC26FBFE91F4495EAE8E403C73DCFBA7.png");
  1890. background-repeat: no-repeat;
  1891. background-size: cover;
  1892. border-radius: 0.5rem;
  1893. .text_10 {
  1894. line-height: 1.4rem;
  1895. margin-top: 0.2rem;
  1896. }
  1897. }
  1898. }
  1899. .equal-division-item_2 {
  1900. padding: 0.25rem 0.38rem;
  1901. flex: 1 1 10.81rem;
  1902. .section_7 {
  1903. padding: 0.63rem 0.75rem 0.75rem;
  1904. background-color: #1751e6cc;
  1905. border-radius: 0.5rem;
  1906. .group_5 {
  1907. padding: 0 1.5rem;
  1908. }
  1909. .space-x-4 {
  1910. & > view:not(:first-child),
  1911. & > text:not(:first-child),
  1912. & > image:not(:first-child) {
  1913. margin-left: 0.25rem;
  1914. }
  1915. }
  1916. }
  1917. .section_8 {
  1918. padding: 0.55rem 0.5rem 0.55rem 0.75rem;
  1919. background-color: #1751e6cc;
  1920. border-radius: 0.5rem;
  1921. }
  1922. }
  1923. .space-y-10 {
  1924. & > view:not(:first-child),
  1925. & > text:not(:first-child),
  1926. & > image:not(:first-child) {
  1927. margin-top: 0.63rem;
  1928. }
  1929. }
  1930. .space-y-12 {
  1931. & > view:not(:first-child),
  1932. & > text:not(:first-child),
  1933. & > image:not(:first-child) {
  1934. margin-top: 0.75rem;
  1935. }
  1936. }
  1937. .group_6 {
  1938. padding: 0 1.63rem;
  1939. }
  1940. }
  1941. .space-x-29 {
  1942. & > view:not(:first-child),
  1943. & > text:not(:first-child),
  1944. & > image:not(:first-child) {
  1945. margin-left: 0.1rem;
  1946. }
  1947. }
  1948. .pos {
  1949. position: absolute;
  1950. left: 0;
  1951. right: 0;
  1952. top: 0;
  1953. }
  1954. .space-x-6 {
  1955. & > view:not(:first-child),
  1956. & > text:not(:first-child),
  1957. & > image:not(:first-child) {
  1958. margin-left: 0.38rem;
  1959. }
  1960. }
  1961. .font_5 {
  1962. font-size: 0.75rem;
  1963. font-family: PingFangSC;
  1964. line-height: 0.69rem;
  1965. color: #ffffff;
  1966. }
  1967. }
  1968. }
  1969. .space-y-4 {
  1970. & > view:not(:first-child),
  1971. & > text:not(:first-child),
  1972. & > image:not(:first-child) {
  1973. margin-top: 0.5rem;
  1974. }
  1975. }
  1976. .font_2 {
  1977. font-size: 1rem;
  1978. font-family: PingFangSC;
  1979. line-height: 0.69rem;
  1980. color: #ffffff;
  1981. }
  1982. .space-x-8 {
  1983. & > view:not(:first-child),
  1984. & > text:not(:first-child),
  1985. & > image:not(:first-child) {
  1986. margin-left: 0.5rem;
  1987. }
  1988. }
  1989. .space-x-10 {
  1990. & > view:not(:first-child),
  1991. & > text:not(:first-child),
  1992. & > image:not(:first-child) {
  1993. margin-left: 0.63rem;
  1994. }
  1995. .section_3 {
  1996. padding: 0.5rem 0.63rem;
  1997. background-color: #7e5a9d4d;
  1998. border-radius: 1rem;
  1999. backdrop-filter: blur(0.31rem);
  2000. height: 2rem;
  2001. .space-x-24 {
  2002. & > view:not(:first-child),
  2003. & > text:not(:first-child),
  2004. & > image:not(:first-child) {
  2005. margin-left: 1.5rem;
  2006. }
  2007. .text_2 {
  2008. line-height: 0.72rem;
  2009. }
  2010. }
  2011. .image_4 {
  2012. width: 0.63rem;
  2013. height: 0.94rem;
  2014. }
  2015. }
  2016. .section_4 {
  2017. margin-right: 1.25rem;
  2018. padding: 0.75rem 0.63rem 0.5rem;
  2019. background-color: #7e5a9d4d;
  2020. border-radius: 1rem;
  2021. backdrop-filter: blur(0.31rem);
  2022. height: 2rem;
  2023. .text_3 {
  2024. line-height: 0.72rem;
  2025. }
  2026. .image_5 {
  2027. margin-right: 0.25rem;
  2028. width: 0.63rem;
  2029. height: 0.38rem;
  2030. }
  2031. }
  2032. }
  2033. .image_7 {
  2034. width: 0.88rem;
  2035. height: 0.88rem;
  2036. }
  2037. .font_3 {
  2038. font-size: 0.88rem;
  2039. font-family: PingFangSC;
  2040. line-height: 0.81rem;
  2041. color: #9b97bc;
  2042. }
  2043. }
  2044. }
  2045. .page {
  2046. background-color: #000000;
  2047. width: 100%;
  2048. overflow-y: auto;
  2049. overflow-x: hidden;
  2050. height: 100%;
  2051. .image-wrapper_2 {
  2052. padding-bottom: 0.38rem;
  2053. overflow-y: auto;
  2054. .header {
  2055. padding: 1rem 0.88rem 0.75rem;
  2056. background-color: #ffffff4d;
  2057. .space-x-6-reverse {
  2058. & > view:not(:last-child),
  2059. & > text:not(:last-child),
  2060. & > image:not(:last-child) {
  2061. margin-right: 0.38rem;
  2062. }
  2063. .image {
  2064. width: 1.06rem;
  2065. height: 0.69rem;
  2066. }
  2067. .image_2 {
  2068. width: 0.94rem;
  2069. height: 0.69rem;
  2070. }
  2071. .image_3 {
  2072. width: 1.5rem;
  2073. height: 0.72rem;
  2074. }
  2075. }
  2076. .text {
  2077. margin-top: 2rem;
  2078. color: #ffffff;
  2079. font-size: 1.16rem;
  2080. font-family: PingFangSC;
  2081. line-height: 1.06rem;
  2082. }
  2083. .section {
  2084. padding: 0.38rem 0.75rem;
  2085. background-color: #ffffff99;
  2086. border-radius: 1rem;
  2087. width: 5.44rem;
  2088. border: solid 0.031rem #00000014;
  2089. .image-wrapper {
  2090. width: 1.19rem;
  2091. .image_5 {
  2092. width: 1.19rem;
  2093. height: 0.44rem;
  2094. }
  2095. .image_4 {
  2096. width: 1.13rem;
  2097. height: 1.06rem;
  2098. }
  2099. }
  2100. .section_2 {
  2101. background-color: #00000033;
  2102. width: 0.063rem;
  2103. height: 1.16rem;
  2104. }
  2105. }
  2106. .space-x-11 {
  2107. & > view:not(:first-child),
  2108. & > text:not(:first-child),
  2109. & > image:not(:first-child) {
  2110. margin-left: 0.69rem;
  2111. }
  2112. }
  2113. .pos {
  2114. position: absolute;
  2115. right: 0.44rem;
  2116. top: 3.06rem;
  2117. }
  2118. }
  2119. .image_6 {
  2120. width: 23.44rem;
  2121. height: 41.69rem;
  2122. }
  2123. }
  2124. .tab-bar {
  2125. padding: 0.25rem 3.38rem;
  2126. background-color: #167df2;
  2127. backdrop-filter: blur(0.63rem);
  2128. .space-y-2 {
  2129. & > view:not(:first-child),
  2130. & > text:not(:first-child),
  2131. & > image:not(:first-child) {
  2132. margin-top: 0.13rem;
  2133. }
  2134. .image_7 {
  2135. width: 1.69rem;
  2136. height: 1.69rem;
  2137. }
  2138. }
  2139. .font_1 {
  2140. font-size: 0.69rem;
  2141. font-family: PingFangSC;
  2142. line-height: 0.63rem;
  2143. color: #ffffffb3;
  2144. }
  2145. .text_2 {
  2146. color: #cfcfcf;
  2147. }
  2148. }
  2149. }
  2150. @media screen and (max-width: 300px) {
  2151. .report-header-img {
  2152. top: -1.5rem;
  2153. }
  2154. }
  2155. </style>