123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860 |
- <template>
- <view class="report-container">
- <cu-custom bgColor="#000000"><view slot="content" style="color: #FFFFFF">睡眠监测</view></cu-custom>
- <view v-if="!isDeviceAdded" class="flex-col no-device-page">
- <view class="flex-col flex-auto image-wrapper_2">
- <view class="flex-row items-center self-center bottom-btns">
- <view class="btn_1 bottom-btn" @click="addBindDevice">立即体验</view>
- <view class="btn_2 bottom-btn" @click="addBindDevice">添加设备</view>
- </view>
- </view>
- </view>
- <view v-if="isDeviceAdded" class="flex-col justify-start page">
- <view class="flex-col report">
- <!-- report header -->
- <view class="flex-col justify-start report_header relative">
- <img class="report-header-img" src="http://wdklmall.oss-cn-shenzhen.aliyuncs.com/mallgoods/goods/0BCE344518834C32B0E9CA02F34C3439.png" />
- <!-- <view class="btns-report">-->
- <!-- <view @click="handleMonthClick" class="btn-month-report">月报</view>-->
- <!-- <view @click="handleWeekClick" class="btn-week-report">周报</view>-->
- <!-- </view>-->
- <view class="flex-col report_score space-y-55">
- <view class="flex-row space-x-10 report_period">
- <view class="flex-row justify-between flex-auto section_3">
- <view class="flex-row items-center space-x-24" @click="calendarShow=true">
- <image class="shrink-0 image_4" src="../../static/report/reportIconLeft.png"/>
- <text class="margin-right text-white">{{ selectDay }}</text>
- <image class="image_4" src="../../static/report/reportIconRight.png"/>
- </view>
- </view>
- <view class="flex-row items-center shrink-0 section_4 space-x-10">
- <picker v-if="todayTimeList.length > 0" @change="PickerChange" :value="index" :range="todayTimeList">
- <view class="picker text-white">
- {{ todayTimeList[index] }}
- </view>
- </picker>
- <image class="shrink-0 image_5" src="../../static/report/reportIconTop.png"/>
- </view>
- </view>
- <view class="flex-col report_score_data items-center">
- <view class="flex-row justify-between items-center space-x-76-reverse">
- <text class="text_4">{{ sleepReportFrom.report_content.score.desc }}</text>
- </view>
- <text class="self-center text_6" :class="sleepReportFrom.report_content.score.state >= 3 ?
- 'text-green' : sleepReportFrom.report_content.score.state === 2 ? 'text-yellow' : 'text-red'">{{ sleepReportFrom.report_content.score.value }}</text>
- <text class="self-center font_2 text_7">香睡指数</text>
- </view>
- <view class="flex-row report-data-sum justify-between">
- <view class="flex-row items-center">
- <image class="icon-data-sum" src="../../static/report/reportIconTime.png" />
- <view class="flex-col items-center text-data-sum">
- <view class="title-data-sum">睡眠总时长</view>
- <view class="flex-row justify-evenly items-baseline group_5">
- <text class="font_5">{{ formateSeconds(sleepReportFrom.total_duration, 0) }}</text>
- </view>
- </view>
- </view>
- <view class="flex-row items-center">
- <image class="icon-data-sum" src="../../static/report/reportIconClock.png"/>
- <view class="flex-col items-center text-data-sum">
- <view class="title-data-sum">睡眠时间</view>
- <view class="flex-row justify-evenly items-baseline group_5">
- <text class="font_5">{{ sleepReportFrom.gobed_time + '~' + sleepReportFrom.outbed_time }}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- report analysis -->
- <view class="flex-col report_analysis space-y-4">
- <text class="self-start font_4 text_8">各项睡眠监测数据统计</text>
- <view class="flex-col justify-start items-center relative report_analysis_data">
- <view class="flex-row equal-division space-x-29 pos">
- <view class="flex-col equal-division-item">
- <view class="flex-col section_6 space-y-12">
- <view class="flex-row space-x-10">
- <image class="image_7" src="../../static/report/reportIconGreen.png"/>
- <text class="font_3">上床时间</text>
- </view>
- <text class="self-start font_4 text_9">{{ sleepReportFrom.gobed_time }}</text>
- </view>
- <view class="flex-col section_6 view space-y-12">
- <view class="flex-row items-center space-x-12">
- <image class="image_7" src="../../static/report/reportIconGreen.png"/>
- <text class="font_3">深睡时长</text>
- </view>
- <view class="flex-row items-baseline group_6 space-x-6">
- <text class="font_4">{{ formateSeconds(sleepReportFrom.deep_duration, 0) }}</text>
- </view>
- </view>
- <view class="flex-col section_6 view space-y-12">
- <view class="flex-row items-center space-x-12">
- <image class="image_7" :src="sleepReportFrom.report_content.avg_hx.state === 3 ? '../../static/report/reportIconGreen.png' :
- sleepReportFrom.report_content.avg_hx.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
- <text class="font_3">平均呼吸率</text>
- </view>
- <view class="flex-row items-baseline group_6 space-x-6">
- <text class="font_4">{{ sleepReportFrom.report_content.avg_hx.value }}</text>
- <text class="font_5">次/分</text>
- </view>
- </view>
- <view class="flex-col items-left group_7 space-x-10">
- <view>
- <image class="image_7" src="../../static/report/reportIconGreen.png"/>
- <text class="font_3">温馨提示</text>
- </view>
- <text class="font_2 text_10">本次睡眠,您有{{ errCount }}项指标不及格。</text>
- </view>
- </view>
- <view class="flex-col equal-division-item_2 space-y-10">
- <view class="flex-col section_7 space-y-12">
- <view class="flex-row space-x-10">
- <image class="image_7" src="../../static/report/reportIconGreen.png"/>
- <text class="font_3">在床时间</text>
- </view>
- <view class="flex-row items-baseline group_5">
- <text class="font_4">{{ formateSeconds(sleepReportFrom.inbed_duration, 0) }}</text>
- </view>
- </view>
- <view class="flex-col section_7 space-y-12">
- <view class="flex-row space-x-10">
- <image class="image_7" :src="sleepReportFrom.report_content.sleep_eff.state === 3 ? '../../static/report/reportIconGreen.png' :
- sleepReportFrom.report_content.sleep_eff.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
- <text class="font_3">睡眠效率</text>
- </view>
- <view class="flex-row items-baseline group_5">
- <text class="font_4">{{ sleepReportFrom.report_content.sleep_eff.value }}</text>
- </view>
- </view>
- <view class="flex-col section_7 space-y-12">
- <view class="flex-row space-x-10">
- <image class="image_7" :src="sleepReportFrom.report_content.avg_rh.state === 3 ? '../../static/report/reportIconGreen.png' :
- sleepReportFrom.report_content.avg_rh.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
- <text class="font_3">平均心率</text>
- </view>
- <view class="flex-row items-baseline group_6 space-x-4">
- <text class="font_4">{{ sleepReportFrom.report_content.avg_rh.value }}</text>
- <text class="font_5">次/分</text>
- </view>
- </view>
- <view class="flex-row shrink-0 justify-between section_8 space-x-34">
- <view class="flex-row items-center space-x-8">
- <image class="image_7" :src="sleepReportFrom.report_content.move_count.state === 3 ? '../../static/report/reportIconGreen.png' :
- sleepReportFrom.report_content.move_count.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
- <text class="font_3">体动次数</text>
- </view>
- <view class="flex-row items-baseline space-x-6">
- <text class="font_4">{{ sleepReportFrom.report_content.move_count.value }}</text>
- <text class="font_5">次</text>
- </view>
- </view>
- <view class="flex-row shrink-0 justify-between section_8 space-x-34">
- <view class="flex-row items-center space-x-8">
- <image class="image_7" :src="sleepReportFrom.report_content.outbed_count.state === 3 ? '../../static/report/reportIconGreen.png' :
- sleepReportFrom.report_content.outbed_count.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
- <text class="font_3">离床次数</text>
- </view>
- <view class="flex-row items-baseline space-x-6">
- <text class="font_4">{{ sleepReportFrom.report_content.outbed_count.value }}</text>
- <text class="font_5">次</text>
- </view>
- </view>
- <view class="flex-row justify-between section_8">
- <view class="flex-row items-center space-x-8">
- <image class="image_7" :src="sleepReportFrom.report_content.snoring_count.state === 3 ? '../../static/report/reportIconGreen.png' :
- sleepReportFrom.report_content.snoring_count.state === 2 ? '../../static/report/reportIconYellow.png' : '../../static/report/reportIconRed.png'"/>
- <text class="font_3">打鼾次数</text>
- </view>
- <view class="flex-row items-baseline space-x-6">
- <text class="font_4">{{ sleepReportFrom.report_content.snoring_count.value }}</text>
- <text class="font_5">次</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="flex-row justify-between section_efficiency">
- <view class="flex-row items-center">
- <image class="shrink-0 image_7" src="../../static/report/reportIconWatch.png" />
- <text class="font_3">睡眠效率</text>
- <text @click="handleClickBreath(0)" class="margin-left myFont">详情>></text>
- <!-- <image @click="handleClickBreath(0)" class="image_11 margin-left" src="../../static/report/reportIconWhy.png" />-->
- </view>
- <view class="flex-row items-center space-x-6">
- <text class="font_4">{{ sleepReportFrom.report_content.sleep_eff.value }}</text>
- </view>
- </view>
- <view class="flex-col justify-start report_breath report-easy">
- <view class="flex-col justify-start">
- <view class="flex-row items-center group_11 space-x-10 pos_33">
- <image class="image_8" src="../../static/report/reportIconBreath.png"/>
- <text class="font_3">安稳度</text>
- <text @click="handleClickBreath(2)" class="margin-left myFont">详情>></text>
- <!-- <image @click="handleClickBreath(1)" class="image_11" src="../../static/report/reportIconWhy.png" />-->
- </view>
- </view>
- <view class="flex-col pos_34">
- <view class="flex-col group_15">
- <view class="flex-row justify-between group_2">
- <text class="font_3 text_12">入睡时长</text>
- <view class="flex-row items-center space-x-30">
- <view class="flex-row items-baseline shrink-0 space-x-6">
- <text class="font_5">{{ formateSeconds(sleepReportFrom.rs_duration, 0) }}</text>
- </view>
- </view>
- </view>
- </view>
- <view class="list-divider"></view>
- <view class="flex-col group_15">
- <view class="flex-row justify-between group_2">
- <text class="font_3 text_12">离床次数</text>
- <view class="flex-row items-center space-x-30">
- <view class="flex-row items-baseline shrink-0 space-x-6">
- <text class="font_5">{{ sleepReportFrom.report_content.outbed_count.value }}</text>
- <text class="font_6">次</text>
- </view>
- </view>
- </view>
- <view class="report_breath_chart">
- <view class="echarts-wrap">
- <mpvue-echarts class="ec-canvas" canvasId="canvasChart-1" ref="refChart-1" @onInit="onInit1"></mpvue-echarts>
- </view>
- </view>
- </view>
- <view class="list-divider"></view>
- <view class="flex-col group_15">
- <view class="flex-row justify-between group_2">
- <text class="font_3 text_12">体动次数</text>
- <view class="flex-row items-center space-x-30">
- <view class="flex-row items-baseline shrink-0 space-x-6">
- <text class="font_5">{{ sleepReportFrom.report_content.move_count.value }}</text>
- <text class="font_6">次</text>
- </view>
- </view>
- </view>
- <view class="report_breath_chart">
- <view class="echarts-wrap">
- <mpvue-echarts class="ec-canvas" canvasId="canvasChart-2" ref="refChart-2" @onInit="onInit1"></mpvue-echarts>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="flex-col report-charts">
- <view class="flex-col justify-start flex-auto group">
- <view class="flex-col justify-start group_3">
- <view class="flex-col group_8 space-y-10">
- <view class="flex-col justify-start report_breath">
- <view class="flex-col justify-start">
- <view class="flex-row items-center group_11 space-x-10 pos_33">
- <image class="image_8" src="../../static/report/reportIconBeat.png" />
- <text class="font_3">心脏系统</text>
- <text @click="handleClickBreath(3)" class="margin-left myFont">详情>></text>
- <!-- <image @click="handleClickBreath(2)" class="image_11" src="../../static/report/reportIconWhy.png" />-->
- </view>
- </view>
- <view class="flex-col pos_34 report_heart">
- <view class="flex-col group_15">
- <view class="flex-row justify-between group_2">
- <text class="font_3 text_12">平均心率</text>
- <view class="flex-row items-center space-x-30">
- <view class="flex-row items-baseline shrink-0 space-x-6">
- <text class="font_5">{{ sleepReportFrom.report_content.avg_rh.value }}</text>
- <text class="font_6">次/分</text>
- </view>
- </view>
- </view>
- </view>
- <view class="report_breath_chart">
- <view class="echarts-wrap">
- <mpvue-echarts class="ec-canvas" canvasId="canvasChart-3" ref="refChart-3" @onInit="onInit1"></mpvue-echarts>
- </view>
- </view>
- </view>
- </view>
- <view class="flex-col justify-start report_breath">
- <view class="flex-col justify-start">
- <view class="flex-row justify-center items-center group_11 space-x-10 pos_33">
- <image class="image_8" src="../../static/report/reportIconBreath.png" />
- <text class="font_3">呼吸系统</text>
- <text @click="handleClickBreath(4)" class="margin-left myFont">详情>></text>
- <!-- <image @click="handleClickBreath(3)" class="image_11" src="../../static/report/reportIconWhy.png" />-->
- </view>
- </view>
- <view class="flex-col pos_34">
- <view class="flex-col group_15">
- <view class="flex-row justify-between group_2">
- <text class="font_3 text_12">平均呼吸率</text>
- <view class="flex-row items-center space-x-30">
- <view class="flex-row items-baseline shrink-0 space-x-6">
- <text class="font_5">{{ sleepReportFrom.report_content.avg_hx.value }}</text>
- <text class="font_6">次/分</text>
- </view>
- </view>
- </view>
- <view class="report_breath_chart">
- <view class="echarts-wrap">
- <mpvue-echarts class="ec-canvas" canvasId="canvasChart-4" ref="refChart-4" @onInit="onInit1"></mpvue-echarts>
- </view>
- </view>
- </view>
- <view class="list-divider"></view>
- <view class="flex-col group_15">
- <view class="flex-row justify-between group_2">
- <text class="font_3 text_12">打鼾</text>
- <view class="flex-row items-center space-x-30">
- <view class="flex-row items-baseline shrink-0 space-x-6">
- <text class="font_5">{{ sleepReportFrom.report_content.snoring_count.value }}</text>
- <text class="font_6">次</text>
- </view>
- </view>
- </view>
- <view class="report_breath_chart">
- <view class="echarts-wrap">
- <mpvue-echarts class="ec-canvas" canvasId="canvasChart-5" ref="refChart-5" @onInit="onInit1"></mpvue-echarts>
- </view>
- </view>
- </view>
- <view class="list-divider"></view>
- <view class="flex-col group_15">
- <view class="flex-row justify-between group_2">
- <text class="font_3 text_12">呼吸暂停</text>
- <!-- <view class="flex-row items-center space-x-30">-->
- <!-- <view class="flex-row items-baseline shrink-0 space-x-6">-->
- <!-- <text class="font_5">{{ sleepReportFrom.report_content.snoring_count.value }}</text>-->
- <!-- <text class="font_6">次</text>-->
- <!-- </view>-->
- <!-- </view>-->
- </view>
- <view class="report_breath_chart">
- <view class="echarts-wrap">
- <mpvue-echarts class="ec-canvas" canvasId="canvasChart-6" ref="refChart-6" @onInit="onInit1"></mpvue-echarts>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="flex-col justify-start report_breath">
- <view class="flex-col justify-start">
- <view class="flex-row items-center group_11 space-x-10 pos_33">
- <image class="image_8" src="../../static/report/reportIconMoon.png" />
- <text class="font_3">深浅睡眠</text>
- <text @click="handleClickBreath(1)" class="margin-left myFont">详情>></text>
- </view>
- </view>
- <view class="flex-col pos_34 report_heart">
- <view class="flex-col group_15">
- <view class="flex-row justify-between report-sleep items-center">
- <view class="flex-col item-sleep">
- <text class="item-sleep-title">清醒</text>
- <text class="item-sleep-desc">{{ formateSeconds(sleepReportFrom.awake_duration, 1) }}</text>
- </view>
- <view class="flex-col item-sleep">
- <text class="item-sleep-title">浅睡</text>
- <text class="item-sleep-desc">{{ formateSeconds(sleepReportFrom.light_duration, 1) }}</text>
- </view>
- <view class="flex-col item-sleep">
- <text class="item-sleep-title">中睡</text>
- <text class="item-sleep-desc">{{ formateSeconds(sleepReportFrom.in_duration, 1) }}</text>
- </view>
- <view class="flex-col item-sleep">
- <text class="item-sleep-title">深睡</text>
- <text class="item-sleep-desc">{{ formateSeconds(sleepReportFrom.deep_duration, 1) }}</text>
- </view>
- </view>
- </view>
- <view class="report_breath_chart">
- <view class="echarts-wrap">
- <mpvue-echarts class="ec-canvas" canvasId="canvasChart-7" ref="refChart-7" @onInit="onInit1"></mpvue-echarts>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- <tab-bar currentPage="report" /> -->
- <view class="cu-modal bottom-modal" :class="calendarShow === true?'show':''" @tap="hideModal">
- <view class="cu-dialog" @tap.stop="" data-id="myCalendar">
- <uni-calendar
- @change="change"
- @monthSwitch="monthSwitch"
- :selected="selected"
- returnName="最新一次"
- ></uni-calendar>
- </view>
- </view>
- <view class="cu-modal" :class="bindShow?'show':''">
- <view class="cu-dialog">
- <view class="cu-bar bg-white justify-end">
- <view style="color: black" class="content">设备绑定</view>
- <view class="action" @tap="bindShow=false">
- <text class="cuIcon-close text-red"></text>
- </view>
- </view>
- <view class="">
- <form>
- <view class="cu-form-group solid-bottom">
- <view class="title">扫描二维码</view>
- <input type="text" v-model="bindSn" placeholder="输入或扫描IMEI" class="text-left"/>
- <text class="cuIcon-scan text-xxl text-green" style="font-size: 50rpx;"
- @click="scan"></text>
- </view>
- </form>
- </view>
- <view class="cu-bar bg-white justify-end">
- <view class="action">
- <button class="cu-btn bg-cyan" @tap="goBuy">去购买</button>
- </view>
- <view class="action">
- <button class="cu-btn bg-green margin-left" @tap="bindDevice">确定</button>
- </view>
- </view>
- </view>
- </view>
- <!-- <view class="cu-load load-modal" v-if="disabled">-->
- <!-- <view class="cuIcon-emojifill text-orange"></view>-->
- <!-- <view class="gray-text">正在获取</view>-->
- <!-- </view>-->
- </view>
- </template>
- <script>
- import echarts from '@/static/echarts.min.js'
- import mpvueEcharts from '@/components/mpvue-echarts/src/echarts.vue'
- import uniCalendar from '@/components/uni-calendar/uni-calendar.vue'
- import Storage from '@/utils/storage'
- import * as Foundation from '@/ui-utils/Foundation'
- import * as API_SLEEP_REPORT from '@/api/sleep_report'
- import * as API_deviceMemberBind from '@/api/device_member_bind'
- import * as deviceDtypeEnum from '@/utils/enum/DeviceDTypeEnum'
- export default {
- components: {
- uniCalendar,mpvueEcharts
- },
- data() {
- return {
- isDeviceAdded: false,
- todayStr: Foundation.unixToDate(parseInt(new Date() / 1000), "yyyy-MM-dd"),
- selectDay: '',
- selectYearMonth: {
- year: Foundation.unixToDate(parseInt(new Date() / 1000), "yyyy"),
- month: Foundation.unixToDate(parseInt(new Date() / 1000), "M")
- },
- calendarShow: false,
- selected: [
- {
- // 打点日期
- "date": Foundation.unixToDate(parseInt(new Date() / 1000), "yyyy-MM-dd")
- }
- ],
- index: 0,
- todayTimeList: [],
- sleepReportFrom: {
- total_duration: 0,
- inbed_duration: 0,
- deep_duration: 0,
- rs_duration: 0
- },
- sleepReportList: [],
- chartObj1: null, // 离床次数图表
- chartObj2: null, // 体动次数图表
- myData1: [], // 离床次数数据
- myData2: [], // 体动次数数据
- params: {
- unionId: '',
- reportTime: -1
- },
- disabled: true,
- bindShow: false,
- bindSn: '',
- memberId: '',
- userInfo: null,
- errCount: 0,
- showCount: 0
- }
- },
- // mounted() {
- // this.memberId = 50289
- // this.params.unionId = '6291d3bde21b840008ae7842' // 先写死
- // this.getNewSleepReport()
- // },
- onShow() {
- this.memberId = Storage.getItem('uid')
- if (this.memberId) {
- if (!this.isDeviceAdded) {
- this.user = Storage.getItem('userInfo')
- this.params.unionId = this.user.union_id
- this.getNewSleepReport()
- } else {
- if (Storage.getItem('refreshSleepReport')) {
- Storage.removeItem('refreshSleepReport')
- this.getNewSleepReport()
- } else {
- this.showCount ++
- if (this.showCount === 3) {
- this.showCount = 0
- this.getNewSleepReport()
- }
- }
- }
- } else {
- this.isDeviceAdded = false
- }
- },
- methods: {
- handleMonthClick() {
- uni.navigateTo({
- url: '/pages/log/report/monthReport'
- })
- },
- handleWeekClick() {
- uni.navigateTo({
- url: '/pages/log/report/weekReport'
- })
- },
- // 获取睡眠报告
- getNewSleepReport() {
- const _this = this
- this.todayTimeList = []
- API_SLEEP_REPORT.getNewListByUnionId(this.params).then(res => {
- _this.disabled = false
- if (res.length > 0) {
- this.isDeviceAdded = true
- _this.sleepReportFrom = Object.assign({}, res[0])
- _this.sleepReportFrom.report_content = JSON.parse(_this.sleepReportFrom.report_content)
- _this.sleepReportList = res
- res.forEach(item => {
- _this.todayTimeList.push(item.gobed_time + '~' + item.outbed_time)
- })
- _this.selectDay = Foundation.unixToDate(_this.sleepReportFrom.report_time, "yyyy-MM-dd")
- let str = _this.selectDay.split("-")
- _this.selectYearMonth.year = str[0]
- _this.selectYearMonth.month = str[1]
- if (_this.params.reportTime === -1) {
- _this.getDaysTag()
- }
- _this.params.reportTime = res[0].report_time
- _this.qualifiedCount(_this.sleepReportFrom.report_content)
- _this.initAllChar(_this.sleepReportFrom)
- } else {
- this.isDeviceAdded = false
- if (Storage.getItem('myBindDevices')) {
- uni.showToast({
- title: '您还没有睡眠报告,请先进行睡眠测量',
- icon: 'none',
- duration: 5000
- })
- }
- }
- })
- },
- // 选中日历
- change(e) {
- console.log('change===', e)
- const date = this.selected.find(item=> item.date === e.extraInfo.date)
- if (date) {
- this.params.reportTime = date.report_time
- this.selectDay = e.fulldate
- this.calendarShow = false
- this.getNewSleepReport()
- } else {
- if (this.todayStr === e.fulldate && this.selectYearMonth.month !== e.month) {
- this.params.reportTime = -1
- this.calendarShow = false
- this.getNewSleepReport()
- } else {
- uni.showToast({
- title: e.fulldate + '无睡眠报告',
- icon: 'none',
- duration: 5000
- })
- }
- }
- // this.selected[0].date = e.fulldate
- },
- // 月份切换
- monthSwitch(e) {
- console.log('monthSwitch===', e)
- //{year: 2020, month: 5}
- this.selectYearMonth = e
- this.getDaysTag()
- },
- // 获取日期点
- getDaysTag() {
- this.selectYearMonth.unionId = this.params.unionId
- API_SLEEP_REPORT.getSleepReportDaysTag(this.selectYearMonth).then(res => {
- this.selected = []
- res.forEach(p => {
- this.selected.push({
- date: this.selectYearMonth.year + '-' + this.selectYearMonth.month + '-' + p.flog_time,
- report_time: p.report_time
- })
- })
- })
- },
- // 时间选择
- PickerChange(e) {
- this.index = e.detail.value
- this.sleepReportFrom = Object.assign({}, this.sleepReportList[this.index])
- this.sleepReportFrom.report_content = JSON.parse(this.sleepReportFrom.report_content)
- this.qualifiedCount(this.sleepReportFrom.report_content)
- this.initAllChar(this.sleepReportFrom)
- },
- qualifiedCount(data) {
- let count = 0
- if (data.avg_hx.state === 1) {
- count ++
- } else if (data.sleep_eff.state === 1) {
- count ++
- } else if (data.avg_rh.state === 1) {
- count ++
- } else if (data.move_count.state === 1) {
- count ++
- } else if (data.outbed_count.state === 1) {
- count ++
- } else if (data.snoring_count.state === 1) {
- count ++
- }
- this.errCount = count
- },
- initAllChar(data) {
- const _this = this
- setTimeout(() => {
- _this.nowChart("refChart-1", 1, data.report_content.dt_arr, data.report_content.outbed_arr)
- _this.nowChart("refChart-2", 2, data.report_content.dt_arr, data.report_content.move_arr)
- _this.nowChart("refChart-3", 3, data.report_content.dt_arr, data.report_content.rh_arr)
- _this.nowChart("refChart-4", 4, data.report_content.dt_arr, data.report_content.hx_arr)
- _this.nowChart("refChart-5", 0, data.report_content.dt_arr, data.report_content.snoring_arr)
- _this.nowChart("refChart-6", 6, data.report_content.dt_arr, data.report_content.hxstop_arr)
- _this.nowChart("refChart-7", -1, data.report_content.dt_arr, data.report_content.sleep_arr)
- }, 800)
- },
- // 将分转化为时分
- formateSeconds(endTime, type) {
- let secondTime = endTime//将传入的秒的值转化为Number
- let hourStr, minuteStr
- if (type === 0) {
- hourStr = '小时'
- minuteStr = '分钟'
- } else {
- hourStr = '时'
- minuteStr = '分'
- }
- let h = 0// 初始化小时
- if (secondTime > 60) {//如果秒数大于60,将秒数转换成整数
- h = parseInt(secondTime / 60)//获取小时,获取分钟除以60,得到整数小时
- secondTime = parseInt(secondTime % 60) //获取小时后取佘的分,获取分钟除以60取佘的分
- return h + hourStr + secondTime + minuteStr
- } else {
- return secondTime + minuteStr
- }
- },
- onInit1(e) {
- this.chartObj = e
- },
- // 组装图表
- nowChart(refChar, type, xData, yData) {
- this.onInit1(this.chartObj)
- let canvas = this.$refs[refChar].canvas
- echarts.setCanvasCreator(() => canvas)
- let myChart = echarts.init(canvas, 'halloween', {
- width: this.chartObj.width + 10,
- height: this.chartObj.height - 10
- })
- let options = Object.assign(this.getOptions(xData, yData), {})
- if (type <=2) {
- options.yAxis = this.getOptionsY1(type)
- } else {
- options.yAxis = this.getOptionsY2()
- }
- if (type === -1) {
- options.series[0].areaStyle = {}
- }
- myChart.setOption(options)
- },
- getOptions(xData, yData) {
- return {
- visualMap: [
- {
- show: false,
- type: 'continuous',
- seriesIndex: 0,
- min: 0,
- max: 300,
- },
- ],
- color: '#FFFFFF',
- title: {
- left: 'left',
- // text: title,
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- animation: false,
- },
- },
- grid: {
- top: '15%',
- bottom: '10%',
- },
- xAxis: {
- type: 'category',
- boundaryGap: [0, '100%'],
- // show: false, // 不显示x轴
- splitLine: {
- show: false,
- },
- axisLine: {
- lineStyle:{
- color:'#FFFFFF',
- width:1, //x轴线的宽度
- }
- },
- triggerEvent: true,
- data: xData,
- },
- yAxis: {},
- series: [
- {
- type: 'line',
- lineStyle: {
- width: 0.8
- },
- showSymbol: false,
- hoverAnimation: false,
- data: yData,
- },
- ]
- }
- },
- getOptionsY1(type) {
- let min = 0, max = 1
- if (type === -1) {
- min = 0
- max = 'dataMax'
- }
- return {
- type: 'value',
- // boundaryGap: [0, '100%'],
- min: min,
- max: max, // dataMax取数据在该轴上的最大值作为最大刻度
- splitNumber: 4,
- minInterval: 1,
- splitLine: {
- show: false, // 是否显示分隔线
- },
- axisLine: {
- show: true, // 是否显示坐标轴轴线
- lineStyle:{
- color:'#FFFFFF',
- width:1, //x轴线的宽度
- }
- },
- // axisLine: {
- // show: false // 是否显示坐标轴轴线
- // },
- axisLabel: {
- formatter: function (value, index) {
- switch (type) {
- case -1:
- let str = ''
- console.log('value===', value)
- switch (value) {
- case 0:
- str = '清醒'
- break
- case 10:
- str = '浅睡'
- break
- case 20:
- str = '中睡'
- break
- case 30:
- str = '深睡'
- break
- default:
- break
- }
- return str
- case 0:
- return value === 0 ? '睡眠' : '打鼾'
- case 1:
- return value === 0 ? '离床' : '在床'
- case 2:
- return value === 0 ? '睡眠' : '体动'
- default:
- return value
- }
- }
- }
- }
- },
- getOptionsY2() {
- return {
- type: 'value',
- boundaryGap: [0, '100%'],
- min: 0,
- max: 'dataMax', // 取数据在该轴上的最大值作为最大刻度
- splitLine: {
- show: false, // 是否显示分隔线
- },
- axisLine: {
- show: false, // 是否显示坐标轴轴线
- lineStyle:{
- color:'#FFFFFF'
- }
- }
- }
- },
- // 扫描条码
- scan() {
- let _this = this
- uni.scanCode({
- success: function (res) {
- console.log(res, res.result.length)
- if (res.result.length > 20) {
- if (res.scanType === 'QR_CODE') {
- const urlStr = res.result
- const qs = Foundation.getQueryObject(urlStr)
- if (qs.mac && qs.type === 'MATTRESS') {
- _this.bindSn = qs.mac
- } else {
- uni.showToast({
- title: '请扫码正确的睡眠床垫二维码',
- icon: 'none',
- duration: 5000
- });
- }
- } else {
- _this.bindSn = res.result
- }
- } else {
- let str = res.result.split(':')
- if (str.length > 1) {
- _this.bindSn = str[1]
- } else {
- _this.bindSn = res.result
- }
- }
- },
- fail: (err) => {
- console.log(err)
- // #ifdef MP
- uni.getSetting({
- success: (res) => {
- let authStatus = res.authSetting['scope.camera'];
- if (!authStatus) {
- uni.showModal({
- title: '授权失败',
- content: 'app需要使用您的相机,请在设置界面打开相关权限',
- success: (res) => {
- if (res.confirm) {
- uni.openSetting()
- }
- }
- })
- }
- }
- })
- // #endif
- }
- })
- },
- bindDevice() {
- if (!this.bindSn) {
- uni.showToast({
- title: '请输入或绑定正确的二维码',
- icon: 'none',
- duration: 5000
- })
- return
- }
- const params = {
- imei: this.bindSn,
- memberId: this.memberId,
- dtype: deviceDtypeEnum.DEVICE_TYPE.SMCD
- }
- this.bindShow = false
- let _this = this
- API_deviceMemberBind.bindDeviceByDtype(params).then(res => {
- if (res.success) {
- _this.bindSn = ''
- uni.showToast({
- title: '绑定成功',
- })
- _this.API_getDeviceList()
- } else {
- uni.showToast({
- title: res.message,
- icon: 'none'
- })
- }
- })
- },
- API_getDeviceList() {
- const _this = this
- API_deviceMemberBind.getDeviceByDtypeAndMemberId({dtype: deviceDtypeEnum.DEVICE_TYPE.SMCD, memberId: this.memberId}).then(res => {
- if (res.length === 0) {
- Storage.removeItem("nowChangeDevice")
- Storage.removeItem("myBindDevices")
- } else {
- Storage.setItem("nowChangeDevice", res[0].imei)
- Storage.setItem("myBindDevices", res)
- }
- })
- },
- addBindDevice() {
- if (this.memberId) {
- this.bindShow = 'show'
- } else {
- uni.showModal({
- title: '提示',
- content: "您还没有登录,是否前往登录?",
- confirmText: "确定",
- showCancel: true,
- success: function(res) {
- if (res.confirm) {
- uni.reLaunch({
- url:'/pages/login/auth'
- })
- }
- }
- })
- }
- },
- hideModal(e) {
- this.calendarShow = null
- },
- handleClickBreath(index) {
- uni.navigateTo({
- url: '/pages/log/report/reportDetail?index=' + index + '&unionId=' + this.params.unionId + '&time=' + this.params.reportTime
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .btns-report {
- color: #ffffff;
- position: absolute;
- top: 9rem;
- font-size: 15px;
- z-index: 101;
- }
- .btn-week-report, .btn-month-report {
- background-color: #7e5a9d4d;
- -webkit-backdrop-filter: blur(0.31rem);
- backdrop-filter: blur(0.31rem);
- padding: 0.3rem 1rem;
- border-radius: 0 1rem 1rem 0;
- margin-bottom: 0.5rem;
- }
- .report_heart {
- .section_25 {
- opacity: 0.8;
- //background: linear-gradient(90deg, rgba(86, 17, 247, 0.5) 0%, #4d9efa 100%);
- border-radius: 0.5rem;
- height: 11.19rem;
- }
- .space-x-9 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.56rem;
- }
- }
- .pos_21 {
- position: absolute;
- left: 0.63rem;
- top: 0.63rem;
- }
- .group_12 {
- width: 17.88rem;
- .text_11 {
- color: #6b6b6b;
- }
- .space-x-48 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 3rem;
- }
- }
- }
- .pos_22 {
- position: absolute;
- right: 0.59rem;
- top: 3.66rem;
- }
- }
- .report-easy {
- margin: 1rem 1.25rem 0 1.25rem;
- }
- .image_8 {
- border-radius: 50%;
- width: 2rem;
- height: 2rem;
- }
- .font_3 {
- font-size: 1rem;
- font-family: PingFangSC;
- line-height: 0.94rem;
- color: #ffffff;
- }
- .image_11 {
- width: 1rem;
- height: 1rem;
- }
- .report_breath {
- padding: 0.63rem;
- background-image: linear-gradient(180deg, #341a4b 0%, #167df2 100%);
- border-radius: 0.5rem;
- .report_breath_chart {
- position: relative;
- height: 7rem;
- }
- .pos_33 {
- }
- .pos_34 {
- .group_15 {
- padding: 1rem 0;
- .font_10 {
- font-size: 0.88rem;
- font-family: PingFangSC;
- line-height: 0.81rem;
- color: #ffffff;
- }
- .font_5 {
- font-size: 1.13rem;
- font-family: PingFangSC;
- line-height: 0.81rem;
- color: #ffffff;
- }
- .font_6 {
- font-size: 0.75rem;
- font-family: PingFangSC;
- line-height: 0.69rem;
- color: #ffffff;
- }
- .group_2 {
- padding-left: 1.25rem;
- .text_12 {
- color: #ffffff;
- }
- .space-x-30 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 1.88rem;
- }
- }
- }
- .group_16 {
- margin-top: 0.63rem;
- .section_32 {
- width: 2.28rem;
- height: 5.53rem;
- border: solid 0.031rem #4a315e;
- }
- .section_34 {
- width: 2.22rem;
- height: 5.53rem;
- border: solid 0.031rem #4a315e;
- }
- .view_7 {
- margin-left: 2.13rem;
- }
- .section_36 {
- margin-left: 2.31rem;
- width: 2.34rem;
- height: 5.53rem;
- border: solid 0.031rem #4a315e;
- }
- .view_8 {
- margin-left: 2.13rem;
- }
- .pos_36 {
- position: absolute;
- left: 2.25rem;
- top: 0;
- }
- .pos_38 {
- position: absolute;
- right: 4.47rem;
- top: 0;
- }
- .section_35 {
- width: 2.41rem;
- height: 5.53rem;
- border: solid 0.031rem #4a315e;
- }
- .pos_37 {
- position: absolute;
- left: 6.63rem;
- top: 0;
- }
- .pos_39 {
- position: absolute;
- right: 0;
- top: 0;
- }
- .section_33 {
- width: 17.97rem;
- height: 1.41rem;
- border: solid 0.031rem #4a315e;
- }
- .pos_41 {
- position: absolute;
- left: 0;
- right: 0;
- top: 2.75rem;
- }
- .pos_40 {
- position: absolute;
- left: 0;
- right: 0;
- top: 1.38rem;
- }
- .pos_35 {
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- }
- .pos_43 {
- position: absolute;
- left: 0;
- right: 0;
- top: 2.88rem;
- }
- .pos_42 {
- position: absolute;
- left: 0;
- right: 0.13rem;
- top: 50%;
- transform: translateY(-50%);
- }
- }
- .group_17 {
- padding: 0.38rem 0 1rem 0.5rem;
- }
- }
- .list-divider {
- margin: 0 0.63rem;
- background-color: #523c65;
- height: 0.063rem;
- }
- }
- }
- .echarts-wrap {
- width: 100%;
- height: 7rem;
- margin-bottom: 0.3rem;
- position: absolute;
- bottom: 0
- }
- .report-sleep {
- //position: absolute;
- top: 3rem;
- width: 100%;
- padding: 0.3rem;
- .item-sleep {
- .item-sleep-title {
- font-size: 14px;
- font-weight: 400;
- letter-spacing: 0px;
- line-height: 14px;
- color: rgba(155, 151, 188, 1);
- text-align: left;
- vertical-align: top;
- }
- .item-sleep-desc {
- font-size: 12px;
- font-weight: 400;
- letter-spacing: 0px;
- line-height: 12px;
- color: rgba(255, 255, 255, 1);
- text-align: left;
- vertical-align: top;
- margin-top: 5px;
- }
- }
- }
- .report-charts {
- margin-top: 0.5rem;
- }
- .bottom-btns {
- position: absolute;
- bottom: 10px;
- .bottom-btn {
- font-size: 16px;
- font-weight: 500;
- letter-spacing: 0px;
- line-height: 30px;
- color: #ffffff;
- text-align: center;
- width: 98px;
- height: 30px;
- border-radius: 14.5px;
- margin: 10px;
- }
- .btn_1 {
- background: linear-gradient(90deg, rgba(44, 37, 247, 0.6) 0%, rgba(6, 21, 153, 1) 100%);
- }
- .btn_2 {
- background: linear-gradient(90deg, rgba(5, 96, 232, 1) 0%, rgba(100, 158, 245, 1) 100%);
- }
- }
- .report-container {
- background-color: #000000;
- padding-bottom: 50px;
- height: -webkit-fill-available;
- .image-wrapper_2 {
- background: url("http://wdklmall.oss-cn-shenzhen.aliyuncs.com/mallgoods/goods/560AFD2D700A40F19029F9FA2FD4612E.png");
- background-repeat: no-repeat;
- background-size: cover;
- height: 100%;
- width: 100%;
- }
- }
- .report-data-sum {
- margin: 1rem;
- padding-top: 2.5rem;
- color: #ffffff;
- .icon-data-sum {
- width: 40px;
- height: 40px;
- }
- .text-data-sum {
- margin-left: 6px;
- text-align: left;
- .title-data-sum {
- width: 100%;
- font-size: 12px;
- line-height: 12px;
- font-weight: 400;
- margin-bottom: 2px;
- }
- .font_4 {
- font-size: 24px;
- line-height: 24px;
- height: 24px;
- }
- .font_5 {
- font-size: 14px;
- line-height: 24px;
- }
- }
- }
- .no-device-page {
- background-color: #000000;
- width: 100%;
- overflow-y: auto;
- overflow-x: hidden;
- height: 100%;
- height: -webkit-fill-available;
- }
- .page {
- background-color: #000000;
- width: 100%;
- overflow-y: auto;
- overflow-x: hidden;
- height: auto!important;
- .group {
- overflow-y: auto;
- .group_3 {
- padding: 0rem 0 0.25rem;
- .group_8 {
- padding: 0 1.25rem;
- .space-x-6 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.38rem;
- }
- .font_5 {
- font-size: 1.13rem;
- font-family: PingFangSC;
- line-height: 0.81rem;
- color: #ffffff;
- }
- }
- .space-y-12 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-top: 0.75rem;
- }
- }
- .font_7 {
- font-size: 0.75rem;
- font-family: PingFangSC;
- line-height: 0.69rem;
- color: #9b97bc;
- }
- .space-x-4 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.25rem;
- }
- }
- .group_11 {
- width: 8.25rem;
- }
- .space-x-10 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.63rem;
- }
- }
- .font_10 {
- font-size: 0.88rem;
- font-family: PingFangSC;
- line-height: 0.81rem;
- color: #ffffff;
- }
- .divider {
- background-image: repeating-linear-gradient(
- 90deg,
- #e02020,
- #e02020 0.35%,
- transparent 0.35%,
- transparent 1.047%
- );
- background-position: -0.031rem 0px;
- height: 0.063rem;
- }
- .font_9 {
- font-size: 0.56rem;
- font-family: PingFangSC;
- line-height: 0.41rem;
- color: #9b97bc;
- }
- }
- .space-y-10 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-top: 0.63rem;
- }
- }
- }
- }
- .font_6 {
- font-size: 0.75rem;
- font-family: PingFangSC;
- line-height: 0.69rem;
- color: #ffffff;
- }
- }
- .page {
- background-color: #000000;
- width: 100%;
- overflow-y: auto;
- overflow-x: hidden;
- height: 100%;
- margin-bottom: 1rem;
- .report {
- overflow-y: auto;
- .report_header {
- .report-header-img {
- position: absolute;
- top: -5rem;
- left: 50%;
- width: 22.5rem;
- height: 28.5em;
- margin-left: -11.25rem;
- }
- .report_score {
- padding-top: 1rem;
- z-index: 100;
- .report_period {
- margin-left: 1.2rem;
- }
- .report_score_data {
- .section_5 {
- padding: 0.38rem 0.88rem;
- background-color: #7e5a9d4d;
- border-radius: 1rem 0px 0px 1rem;
- backdrop-filter: blur(0.31rem);
- width: 5.25rem;
- height: 2rem;
- .image_6 {
- width: 1.5rem;
- height: 1.31rem;
- }
- .text_5 {
- line-height: 0.72rem;
- }
- }
- .space-x-76-reverse {
- & > view:not(:last-child),
- & > text:not(:last-child),
- & > image:not(:last-child) {
- margin-right: 4.75rem;
- }
- .text_4 {
- color: #ffffff;
- font-size: 1.5rem;
- font-family: PingFangSC;
- line-height: 1.38rem;
- }
- }
- .text_6 {
- margin-top: 1rem;
- //color: #ffffff;
- font-size: 3.38rem;
- font-family: PingFangSC;
- line-height: 2.47rem;
- }
- .text_7 {
- margin-top: 1.38rem;
- line-height: 0.94rem;
- }
- }
- }
- .space-y-55 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-top: 3.44rem;
- }
- }
- }
- .report_analysis {
- padding-top: 0.63rem;
- .font_4 {
- font-size: 1.13rem;
- font-family: PingFangSC;
- line-height: 0.81rem;
- color: #ffffff;
- }
- .text_8 {
- margin-left: 1.25rem;
- line-height: 1.06rem;
- }
- .section_easy {
- margin: 0 1.25rem;
- padding: 0 0.88rem;
- height: 52px;
- opacity: 0.8;
- border-radius: 8px;
- background: linear-gradient(180deg, rgba(22, 125, 242, 1) 0%, rgba(52, 26, 75, 1) 100%);
- .image_7 {
- width: 32px;
- height: 32px;
- }
- .font_3 {
- font-size: 16px;
- color: #ffffff;
- font-weight: 400;
- margin-left: 9px;
- }
- .font_7 {
- color: rgba(255, 255, 255, 0.6);
- font-size: 16px;
- margin-right: 10px;
- }
- .font_4 {
- font-size: 18px;
- color: #ffffff;
- font-weight: 500;
- }
- }
- .section_efficiency {
- margin: 0 1.25rem;
- padding: 0 0.88rem;
- height: 52px;
- opacity: 0.8;
- border-radius: 8px;
- background: linear-gradient(180deg, rgba(22, 125, 242, 1) 0%, rgba(52, 26, 75, 1) 100%);
- .image_7 {
- width: 32px;
- height: 32px;
- }
- .font_3 {
- font-size: 16px;
- color: #ffffff;
- font-weight: 400;
- margin-left: 9px;
- }
- .font_4 {
- font-size: 18px;
- color: #ffffff;
- font-weight: 500;
- }
- }
- .report_analysis_data {
- padding-top: 22.5rem;
- .space-x-26 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 1.63rem;
- }
- .text_10 {
- line-height: 1.5rem;
- width: 8.5rem;
- }
- .section_9 {
- margin-top: 1.75rem;
- padding: 1.19rem 0.5rem 0.5rem 0.81rem;
- background-color: #1751e6cc;
- border-radius: 0.5rem 0.5rem 0 0;
- height: 2.63rem;
- }
- .space-x-34 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 2.13rem;
- }
- }
- }
- .equal-division {
- padding: 0 0.88rem;
- .equal-division-item {
- padding: 0.25rem 0.38rem 0;
- flex: 1 1 10.81rem;
- .section_6 {
- padding: 0.63rem 0.63rem 0.75rem;
- background-color: #1751e6cc;
- border-radius: 0.5rem;
- .text_9 {
- margin-left: 1.5rem;
- }
- .space-x-12 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.75rem;
- }
- }
- }
- .view {
- margin-top: 0.63rem;
- }
- .group_7 {
- margin-top: 0.63rem;
- padding: 1.25rem 0.63rem 2rem;
- background: url("http://wdklmall.oss-cn-shenzhen.aliyuncs.com/mallgoods/goods/BC26FBFE91F4495EAE8E403C73DCFBA7.png");
- background-repeat: no-repeat;
- background-size: cover;
- border-radius: 0.5rem;
- .text_10 {
- line-height: 1.4rem;
- margin-top: 0.2rem;
- }
- }
- }
- .equal-division-item_2 {
- padding: 0.25rem 0.38rem;
- flex: 1 1 10.81rem;
- .section_7 {
- padding: 0.63rem 0.75rem 0.75rem;
- background-color: #1751e6cc;
- border-radius: 0.5rem;
- .group_5 {
- padding: 0 1.5rem;
- }
- .space-x-4 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.25rem;
- }
- }
- }
- .section_8 {
- padding: 0.55rem 0.5rem 0.55rem 0.75rem;
- background-color: #1751e6cc;
- border-radius: 0.5rem;
- }
- }
- .space-y-10 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-top: 0.63rem;
- }
- }
- .space-y-12 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-top: 0.75rem;
- }
- }
- .group_6 {
- padding: 0 1.63rem;
- }
- }
- .space-x-29 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.1rem;
- }
- }
- .pos {
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- }
- .space-x-6 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.38rem;
- }
- }
- .font_5 {
- font-size: 0.75rem;
- font-family: PingFangSC;
- line-height: 0.69rem;
- color: #ffffff;
- }
- }
- }
- .space-y-4 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-top: 0.5rem;
- }
- }
- .font_2 {
- font-size: 1rem;
- font-family: PingFangSC;
- line-height: 0.69rem;
- color: #ffffff;
- }
- .space-x-8 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.5rem;
- }
- }
- .space-x-10 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.63rem;
- }
- .section_3 {
- padding: 0.5rem 0.63rem;
- background-color: #7e5a9d4d;
- border-radius: 1rem;
- backdrop-filter: blur(0.31rem);
- height: 2rem;
- .space-x-24 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 1.5rem;
- }
- .text_2 {
- line-height: 0.72rem;
- }
- }
- .image_4 {
- width: 0.63rem;
- height: 0.94rem;
- }
- }
- .section_4 {
- margin-right: 1.25rem;
- padding: 0.75rem 0.63rem 0.5rem;
- background-color: #7e5a9d4d;
- border-radius: 1rem;
- backdrop-filter: blur(0.31rem);
- height: 2rem;
- .text_3 {
- line-height: 0.72rem;
- }
- .image_5 {
- margin-right: 0.25rem;
- width: 0.63rem;
- height: 0.38rem;
- }
- }
- }
- .image_7 {
- width: 0.88rem;
- height: 0.88rem;
- }
- .font_3 {
- font-size: 0.88rem;
- font-family: PingFangSC;
- line-height: 0.81rem;
- color: white;
- }
- }
- }
- .page {
- background-color: #000000;
- width: 100%;
- overflow-y: auto;
- overflow-x: hidden;
- height: 100%;
- .image-wrapper_2 {
- padding-bottom: 0.38rem;
- overflow-y: auto;
- .header {
- padding: 1rem 0.88rem 0.75rem;
- background-color: #ffffff4d;
- .space-x-6-reverse {
- & > view:not(:last-child),
- & > text:not(:last-child),
- & > image:not(:last-child) {
- margin-right: 0.38rem;
- }
- .image {
- width: 1.06rem;
- height: 0.69rem;
- }
- .image_2 {
- width: 0.94rem;
- height: 0.69rem;
- }
- .image_3 {
- width: 1.5rem;
- height: 0.72rem;
- }
- }
- .text {
- margin-top: 2rem;
- color: #ffffff;
- font-size: 1.16rem;
- font-family: PingFangSC;
- line-height: 1.06rem;
- }
- .section {
- padding: 0.38rem 0.75rem;
- background-color: #ffffff99;
- border-radius: 1rem;
- width: 5.44rem;
- border: solid 0.031rem #00000014;
- .image-wrapper {
- width: 1.19rem;
- .image_5 {
- width: 1.19rem;
- height: 0.44rem;
- }
- .image_4 {
- width: 1.13rem;
- height: 1.06rem;
- }
- }
- .section_2 {
- background-color: #00000033;
- width: 0.063rem;
- height: 1.16rem;
- }
- }
- .space-x-11 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.69rem;
- }
- }
- .pos {
- position: absolute;
- right: 0.44rem;
- top: 3.06rem;
- }
- }
- .image_6 {
- width: 23.44rem;
- height: 41.69rem;
- }
- }
- }
- .myFont {
- font-size: 12px;
- color: white;
- }
- @media screen and (max-width: 300px) {
- .report-header-img {
- top: -1.5rem;
- }
- }
- </style>
|