12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177 |
- <template>
- <view class="report-container">
- <cu-custom bgColor="#000000"><view slot="content" style="color: #FFFFFF">UU睡眠</view></cu-custom>
- <view v-if="!isDeviceAdded" class="flex-col 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="../../static/report/reportIconLight.png" />
- <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"
- />
- <!-- <picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">-->
- <!-- <text class="font_2 text_2">{{date}}</text>-->
- <!-- </picker>-->
- <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">
- <!-- <text class="font_2 text_3">23:30~05:42</text>-->
- <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>
- <!-- <view class="flex-row items-center self-end section_5 space-x-8">-->
- <!-- <image-->
- <!-- class="shrink-0 image_6"-->
- <!-- src="../../static/report/reportIconPower.png"-->
- <!-- />-->
- <!-- <text class="font_2 text_5">+25</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) }}</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) }}</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 justify-evenly items-baseline group_5">
- <text class="font_4">{{ formateSeconds(sleepReportFrom.inbed_duration) }}</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>
- </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>
- <image
- 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">-->
- <!-- <text class="font_10">入睡时长</text>-->
- <!-- <view class="flex-row items-baseline shrink-0 space-x-6">-->
- <!-- <text class="font_5">{{ formateSeconds(sleepReportFrom.rs_duration) }}</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>
- <image
- 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>
- <image
- 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 relative report_heart">-->
- <!-- <view class="section_25"></view>-->
- <!-- <view class="flex-row justify-center items-center group_11 space-x-9 pos_21">-->
- <!-- <image-->
- <!-- class="image_8"-->
- <!-- src="../../static/report/reportIconMoon.png"-->
- <!-- />-->
- <!-- <text class="font_3">深浅睡眠</text>-->
- <!-- <image-->
- <!-- class="image_11"-->
- <!-- src="../../static/report/reportIconWhy.png"-->
- <!-- />-->
- <!-- </view>-->
- <!-- -->
- <!-- <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">2小时14分钟</text>-->
- <!-- </view>-->
- <!-- <view class="flex-col item-sleep">-->
- <!-- <text class="item-sleep-title">浅睡</text>-->
- <!-- <text class="item-sleep-desc">2小时14分钟</text>-->
- <!-- </view>-->
- <!-- <view class="flex-col item-sleep">-->
- <!-- <text class="item-sleep-title">深睡</text>-->
- <!-- <text class="item-sleep-desc">2小时14分钟</text>-->
- <!-- </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">
- <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-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'
- 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
- }
- },
- // 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
- console.log('user===', this.user, this.user.union_id)
- this.getNewSleepReport()
- } else {
- if (Storage.getItem('refreshSleepReport')) {
- Storage.removeItem('refreshSleepReport')
- this.getNewSleepReport()
- }
- }
- } else {
- this.isDeviceAdded = false
- }
- },
- methods: {
- // 获取睡眠报告
- getNewSleepReport() {
- const _this = this
- this.todayTimeList = []
- API_SLEEP_REPORT.getNewListByUnionId(this.params).then(res => {
- _this.disabled = false
- console.log(res)
- if (res.length > 0) {
- this.isDeviceAdded = true
- _this.sleepReportFrom = Object.assign({}, res[0])
- _this.sleepReportFrom.report_content = JSON.parse(_this.sleepReportFrom.report_content)
- console.log(_this.sleepReportFrom)
- _this.sleepReportList = res
- res.forEach(item => {
- _this.todayTimeList.push(item.gobed_time + '~' + item.outbed_time)
- })
- console.log('this.todayTimeList==', this.todayTimeList)
- _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]
- console.log('this.selectYearMonth===', _this.selectYearMonth)
- if (_this.params.reportTime === -1) {
- _this.getDaysTag()
- }
- _this.qualifiedCount(_this.sleepReportFrom.report_content)
- _this.initAllChar(_this.sleepReportFrom)
- } else {
- this.isDeviceAdded = false
- }
- })
- },
- // 选中日历
- 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'
- })
- }
- }
- // 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)
- }, 800)
- },
- // 将分转化为时分
- formateSeconds(endTime) {
- let secondTime = endTime//将传入的秒的值转化为Number
- let h = 0// 初始化小时
- if (secondTime > 60) {//如果秒数大于60,将秒数转换成整数
- h = parseInt(secondTime / 60)//获取小时,获取分钟除以60,得到整数小时
- secondTime = parseInt(secondTime % 60) //获取小时后取佘的分,获取分钟除以60取佘的分
- return h + '小时' + secondTime + '分钟'
- } else {
- return secondTime + '分钟'
- }
- },
- 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()
- }
- 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) {
- return {
- type: 'value',
- // boundaryGap: [0, '100%'],
- min: 0,
- max: 1, // dataMax取数据在该轴上的最大值作为最大刻度
- 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 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) {
- _this.bindSn = qs.mac
- } else {
- uni.showToast({
- title: '请扫码正确的睡眠床垫二维码',
- icon: 'none'
- });
- }
- } else {
- _this.bindSn = res.result
- }
- } 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() {
- const params = {
- imei: this.bindSn,
- memberId: this.memberId,
- dtype: '睡眠床垫'
- }
- 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: '睡眠床垫', 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/auth/auth'
- })
- }
- }
- })
- }
- },
- hideModal(e) {
- this.calendarShow = null
- }
- }
- }
- </script>
- <style lang="scss">
- .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: 100%;
- .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;
- }
- }
- }
- .page {
- background-color: #000000;
- width: 100%;
- overflow-y: auto;
- overflow-x: hidden;
- height: 100%;
- .group {
- overflow-y: auto;
- .group_3 {
- padding: 0rem 0 0.25rem;
- .group_8 {
- padding: 0 1.25rem;
- .report_leave_bed {
- .section_10 {
- opacity: 0.8;
- background: linear-gradient(90deg, rgba(86, 17, 247, 0.5) 0%, #4d9efa 100%);
- border-radius: 0.5rem;
- height: 9.91rem;
- }
- .pos_2 {
- position: absolute;
- left: 0.63rem;
- right: 0.53rem;
- top: 0.63rem;
- .space-x-12 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.75rem;
- }
- }
- }
- .pos_3 {
- position: absolute;
- left: 0.66rem;
- right: 0.63rem;
- top: 3.56rem;
- }
- .pos_10 {
- position: absolute;
- right: 0.66rem;
- top: 6.69rem;
- }
- }
- .report_move {
- .section_20 {
- opacity: 0.8;
- background: linear-gradient(90deg, rgba(86, 17, 247, 0.5) 0%, #4d9efa 100%);
- border-radius: 0.5rem;
- height: 9.91rem;
- }
- .pos_11 {
- position: absolute;
- left: 0.63rem;
- right: 0.53rem;
- top: 0.63rem;
- }
- .space-x-2 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.13rem;
- }
- .group_10 {
- width: 1.34rem;
- }
- .section_21 {
- width: 2.28rem;
- height: 4.16rem;
- border: solid 0.031rem #4a315e;
- }
- .section_23 {
- width: 2.22rem;
- height: 4.16rem;
- border: solid 0.031rem #4a315e;
- }
- .view_4 {
- margin-left: 2.13rem;
- }
- .section_24 {
- width: 2.34rem;
- height: 4.16rem;
- border: solid 0.031rem #4a315e;
- }
- .view_5 {
- margin-left: 2.25rem;
- }
- .view_6 {
- margin-left: 2.13rem;
- }
- .pos_14 {
- position: absolute;
- left: 2.25rem;
- top: 0;
- }
- .pos_16 {
- position: absolute;
- right: 4.44rem;
- top: 0;
- }
- .pos_15 {
- position: absolute;
- left: 6.63rem;
- top: 0;
- }
- .pos_17 {
- position: absolute;
- right: 0;
- top: 0;
- }
- .pos_18 {
- position: absolute;
- left: 0;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- }
- .pos_13 {
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- }
- .image_10 {
- width: 17.88rem;
- height: 2.75rem;
- }
- .pos_19 {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- }
- }
- .pos_12 {
- position: absolute;
- left: 0.91rem;
- right: 0.63rem;
- top: 3.56rem;
- }
- .pos_20 {
- position: absolute;
- right: 0.66rem;
- top: 8.06rem;
- }
- }
- .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;
- }
- .group_9 {
- width: 18.63rem;
- .font_8 {
- font-size: 0.56rem;
- font-family: PingFangSC;
- line-height: 0.41rem;
- color: #a5b6ca;
- }
- }
- .space-x-4 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-left: 0.25rem;
- }
- .section_11 {
- width: 2.28rem;
- height: 2.78rem;
- border: solid 0.031rem #4a315e;
- }
- .section_14 {
- width: 2.16rem;
- height: 2.78rem;
- border: solid 0.031rem #4a315e;
- }
- .view_2 {
- margin-left: 2.13rem;
- }
- .image_9 {
- margin-left: 2.38rem;
- width: 2.34rem;
- height: 2.78rem;
- }
- .section_13 {
- width: 2.22rem;
- height: 2.78rem;
- border: solid 0.031rem #4a315e;
- }
- .view_3 {
- margin-left: 2.06rem;
- }
- .pos_5 {
- position: absolute;
- left: 2.25rem;
- top: 0;
- }
- .pos_7 {
- position: absolute;
- right: 4.44rem;
- top: 0;
- }
- .section_15 {
- width: 2.47rem;
- height: 2.78rem;
- border: solid 0.031rem #4a315e;
- }
- .pos_6 {
- position: absolute;
- left: 6.56rem;
- top: 0;
- }
- .pos_8 {
- position: absolute;
- right: 0;
- top: 0;
- }
- .section_19 {
- background-color: #44d7b6;
- width: 0.5rem;
- height: 0.94rem;
- }
- .pos_9 {
- position: absolute;
- left: 6.47rem;
- top: 1.59rem;
- }
- .section_12 {
- padding: 0.25rem 0;
- border: solid 0.031rem #4a315e;
- .section_16 {
- background-color: #73e182;
- width: 6.44rem;
- height: 0.94rem;
- }
- .section_17 {
- background-color: #73e182;
- width: 3.94rem;
- height: 0.94rem;
- }
- .section_18 {
- background-color: #73e182;
- width: 6.69rem;
- height: 0.94rem;
- }
- }
- .pos_4 {
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- }
- .section_26 {
- width: 2.59rem;
- height: 5.53rem;
- border: solid 0.031rem #4a315e;
- }
- .section_27 {
- width: 2.53rem;
- height: 5.53rem;
- border: solid 0.031rem #4a315e;
- }
- .section_29 {
- width: 2.66rem;
- height: 5.53rem;
- border: solid 0.031rem #4a315e;
- }
- .pos_25 {
- position: absolute;
- left: 2.56rem;
- top: 0;
- }
- .pos_27 {
- position: absolute;
- right: 2.53rem;
- top: 0;
- }
- .section_28 {
- width: 2.72rem;
- height: 5.53rem;
- border: solid 0.031rem #4a315e;
- }
- .pos_26 {
- position: absolute;
- left: 50%;
- top: 0;
- transform: translateX(-50%);
- }
- .pos_29 {
- position: absolute;
- left: 0;
- right: 0;
- top: 2.75rem;
- }
- .pos_28 {
- position: absolute;
- left: 0;
- right: 0;
- top: 1.38rem;
- }
- .pos_24 {
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- }
- .pos_31 {
- position: absolute;
- left: 0;
- right: 0;
- top: 2.88rem;
- }
- .pos_30 {
- position: absolute;
- left: 0;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- }
- }
- .section_22 {
- width: 17.91rem;
- height: 1.41rem;
- border: solid 0.031rem #4a315e;
- }
- .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;
- }
- .group_13 {
- width: 0.97rem;
- .font_11 {
- font-size: 0.75rem;
- font-family: PingFangSC;
- line-height: 0.56rem;
- color: #9b97bc;
- }
- }
- .space-y-14 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-top: 0.88rem;
- }
- }
- .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;
- }
- }
- }
- }
- .tab-bar {
- padding: 0.25rem 3.38rem;
- background-color: #167df2;
- backdrop-filter: blur(0.63rem);
- .group_26 {
- height: 2.47rem;
- .text_17 {
- font-size: 0.69rem;
- line-height: 0.63rem;
- }
- }
- .space-y-2 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-top: 0.13rem;
- }
- }
- .group_27 {
- height: 2.5rem;
- .text_18 {
- font-size: 0.69rem;
- line-height: 0.63rem;
- }
- }
- .image_15 {
- width: 1.69rem;
- height: 1.69rem;
- }
- .font_12 {
- font-size: 0.75rem;
- font-family: PingFangSC;
- line-height: 0.69rem;
- color: #ffffffb3;
- }
- }
- .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;
- z-index: 100;
- .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: #9b97bc;
- }
- }
- }
- .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;
- }
- }
- .tab-bar {
- padding: 0.25rem 3.38rem;
- background-color: #167df2;
- backdrop-filter: blur(0.63rem);
- .space-y-2 {
- & > view:not(:first-child),
- & > text:not(:first-child),
- & > image:not(:first-child) {
- margin-top: 0.13rem;
- }
- .image_7 {
- width: 1.69rem;
- height: 1.69rem;
- }
- }
- .font_1 {
- font-size: 0.69rem;
- font-family: PingFangSC;
- line-height: 0.63rem;
- color: #ffffffb3;
- }
- .text_2 {
- color: #cfcfcf;
- }
- }
- }
- @media screen and (max-width: 300px) {
- .report-header-img {
- top: -1.5rem;
- }
- }
- </style>
|