WeatherProphethomepage.vue 106 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662
  1. <template>
  2. <view class="content">
  3. <cu-custom bgColor="bg-blacks" :isBack="false">
  4. <block slot="right">
  5. <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-left: 2%;" @tap="openDrawer"></image>
  6. </block>
  7. <block slot="right">
  8. <view class="icon cuIcon-notice text-white" v-if="badge != 0" style="margin-left: -70%;">
  9. <view class="cu-tag looknumber" style="margin-top: -2%;">
  10. <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
  11. </view>
  12. </view>
  13. </block>
  14. <block slot="right">
  15. </block>
  16. <block slot="content">{{address}}</block>
  17. <block slot="right">
  18. <view class="plus" @tap="showModal" data-target="viewModal">+</view>
  19. </block>
  20. </cu-custom>
  21. <!-- 抽屉组件 -->
  22. <div>
  23. <drawer ref="drawer"></drawer>
  24. </div>
  25. <div class="plusDrawer" @tap="hideModal">
  26. <plusDrawer ref="plusDrawer"></plusDrawer>
  27. </div>
  28. <scroll-view scroll-y class="DrawerPage" :class="modalName == 'viewModal' ? 'show' : ''">
  29. <!--点击天数选项卡-->
  30. <view class="clickThedaystab">
  31. <view :class="[weatherTodaybutton?'weatherTodaywhite':'weatherToday']" @click="weatherToday()">今天</view>
  32. <view :class="[weatherSevendaybutton?'weatherSevendaywhite':'weatherSevenday']" @click="weatherSevenday()">7天</view>
  33. <view :class="[weatherFromeighttofifteendaysbutton?'weatherFromeighttofifteendayswhite':'weatherFromeighttofifteendays']"
  34. @click="weatherFromeighttofifteendays()">8~15天</view>
  35. <view :class="[weatherFortydaysbutton?'weatherFortydayswhite':'weatherFortydays']" @click="weatherFortydays()">40天</view>
  36. </view>
  37. <!--风场选项卡-->
  38. <view class="windStationNameAndChoice">
  39. <view class="windStationName">{{ windStationName }}</view>
  40. <view class="windStationChoice"><a @click="showCenterVisible = true">其他ㅤ〉</a></view>
  41. </view>
  42. <s-popup custom-class="center-popup" position="center" v-model="showCenterVisible">
  43. <view class="s-popup-wrapper" :style="{'height': spopupWrapperHeight}">
  44. <view class="s-popup-title">
  45. <view class="s-popup-word">选择您想查看的风场</view>
  46. <view class="s-popup-cha"><a @tap="showCenterVisible = false">×</a></view>
  47. </view>
  48. <view class="windStationList" :style="{ 'height': windStationListHeight}">
  49. <view class="windStationItemContainer" v-for="(item,index) in windStation" :key="index" :class="[choiceIndex==index?'windStationItemContainerBlack':'windStationItemContainer']">
  50. <view class="windStationItem" @tap="choiceWindStation(item,index)">{{item}}</view>
  51. </view>
  52. </view>
  53. </view>
  54. </s-popup>
  55. <!-- 今天气象卡片 -->
  56. <view v-if="weatherTodaybutton">
  57. <div class="ThermometerCard">
  58. <ThermometerCard ref="thermometerCard" @listenEven="weatherDayNightSwitch"></ThermometerCard>
  59. </div>
  60. <div class="weatherDetails">
  61. <div class="weatherText"><strong>气象指标</strong></div>
  62. <div class="detailsText" @tap="common.navTo('../../components/weatherProphethomepage/weatherDetail/Detail')">详情ㅤ〉</div>
  63. </div>
  64. <view class="weatherDaytimegrid" v-if="weatherSwitch==true">
  65. <scroll-view scroll-y scroll-with-animation class="scrollList" :style="{'height':heightToday}">
  66. <view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']" style="background-color: #242424;">
  67. <view class="cu-item">
  68. <div class="cu-listAll" :style="{'width':widthToday}">
  69. <div class="cuIcon" :style="{'height':xianHeight}">
  70. <view class="icon1 iconfont" :class="['icon-' + cuIconList[6].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  71. class="wenZhi" :style="{'font-size':fontSize}">白气象</br>{{weatherProphetData_1[0].weather1}}</a>
  72. </div>
  73. <div class="cuIcon" :style="{'height':xianHeight}">
  74. <view class="icon1 iconfont" :class="['icon-' + cuIconList[7].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  75. class="wenZhi" :style="{'font-size':fontSize}">白气温</br>{{weatherProphetData_1[0].temperature1}}℃</a>
  76. </div>
  77. <div class="cuIcon" :style="{'height':xianHeight}">
  78. <view class="icon1 iconfont" :class="['icon-' + cuIconList[8].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  79. class="wenZhi" :style="{'font-size':fontSize}">白体感</br>{{weatherProphetData_1[0].realfeel1}}℃</a>
  80. </div>
  81. <div class="cuIcon4">
  82. <view class="icon1 iconfont" :class="['icon-' + cuIconList[9].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  83. class="wenZhi" :style="{'font-size':fontSize}">白降水</br>{{weatherProphetData_1[0].precipitation1}}m/s</a>
  84. </div>
  85. </div>
  86. <div class="cu-listAllTwo" :style="{'width':widthToday,'margin-top':margintop}">
  87. <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
  88. <view class="icon1 iconfont" :class="['icon-' + cuIconList[10].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  89. class="wenZhi" :style="{'font-size':fontSize}">白风向</br>{{weatherProphetData_1[0].winddirection1}}</a>
  90. </div>
  91. <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
  92. <view class="icon1 iconfont" :class="['icon-' + cuIconList[11].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  93. class="wenZhi" :style="{'font-size':fontSize}">白风速</br>{{weatherProphetData_1[0].speed1}}km/h</a>
  94. </div>
  95. <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
  96. <view class="icon1 iconfont" :class="['icon-' + cuIconList[12].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  97. class="wenZhi" :style="{'font-size':fontSize}">白阵风速</br>{{weatherProphetData_1[0].gust1}}km/h</a>
  98. </div>
  99. <div class="cuIcon4" :style="{'margin-top':margintop}">
  100. <view class="icon1 iconfont" :class="['icon-' + cuIconList[0].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  101. class="wenZhi" :style="{'font-size':fontSize}">天气</br>{{weatherProphetData_1[0].weather}}</a>
  102. </div>
  103. </div>
  104. <div class="cu-listAllTThree" :style="{'width':widthToday,'margin-top':margintopThree}">
  105. <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
  106. <view class="icon1 iconfont" :class="['icon-' + cuIconList[1].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  107. class="wenZhi" :style="{'font-size':fontSize}">最高温度</br>{{weatherProphetData_1[0].maximumtem}}℃</a>
  108. </div>
  109. <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
  110. <view class="icon1 iconfont" :class="['icon-' + cuIconList[2].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  111. class="wenZhi" :style="{'font-size':fontSize}">最低温度</br>{{weatherProphetData_1[0].minimumtem}}℃</a>
  112. </div>
  113. <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
  114. <view class="icon1 iconfont" :class="['icon-' + cuIconList[3].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  115. class="wenZhi" :style="{'font-size':fontSize}">日出</br>{{weatherProphetData_1[0].sunrise}}</a>
  116. </div>
  117. <div class="cuIcon4" :style="{'margin-top':margintopThree}">
  118. <view class="icon1 iconfont" :class="['icon-' + cuIconList[4].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  119. class="wenZhi" :style="{'font-size':fontSize}">日落</br>{{weatherProphetData_1[0].sunset}}</a>
  120. </div>
  121. </div>
  122. <div class="cu-listAllTFour" :style="{'width':widthToday,'margin-top':margintopThree}">
  123. <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
  124. <view class="icon1 iconfont" :class="['icon-' + cuIconList[5].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  125. class="wenZhi" :style="{'font-size':fontSize}">持续时间</br>{{weatherProphetData_1[0].sunduration}}</a>
  126. </div>
  127. <div class="cuIcon2">
  128. </div>
  129. <div class="cuIcon2">
  130. </div>
  131. <div class="cuIcon2">
  132. </div>
  133. </div>
  134. </view>
  135. </view>
  136. </scroll-view>
  137. </view>
  138. <view class="weatherNocturnalgrid" v-if="weatherSwitch==false">
  139. <scroll-view scroll-y scroll-with-animation class="scrollList" :style="{'height':heightToday}">
  140. <view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']" style="background-color: #242424;">
  141. <view class="cu-item">
  142. <div class="cu-listAll" :style="{'width':widthToday}">
  143. <div class="cuIcon" :style="{'height':xianHeight}">
  144. <view class="icon1 iconfont" :class="['icon-' + cuIconList[6].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  145. class="wenZhi" :style="{'font-size':fontSize}">夜气象</br>{{weatherProphetData_1[0].weather2}}</a>
  146. </div>
  147. <div class="cuIcon" :style="{'height':xianHeight}">
  148. <view class="icon1 iconfont" :class="['icon-' + cuIconList[7].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  149. class="wenZhi" :style="{'font-size':fontSize}">夜气温</br>{{weatherProphetData_1[0].temperature2}}℃</a>
  150. </div>
  151. <div class="cuIcon" :style="{'height':xianHeight}">
  152. <view class="icon1 iconfont" :class="['icon-' + cuIconList[8].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  153. class="wenZhi" :style="{'font-size':fontSize}">夜体感</br>{{weatherProphetData_1[0].realfeel2}}℃</a>
  154. </div>
  155. <div class="cuIcon4">
  156. <view class="icon1 iconfont" :class="['icon-' + cuIconList[9].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  157. class="wenZhi" :style="{'font-size':fontSize}">夜降水</br>{{weatherProphetData_1[0].precipitation2}}m/s</a>
  158. </div>
  159. </div>
  160. <div class="cu-listAllTwo" :style="{'width':widthToday,'margin-top':margintop}">
  161. <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
  162. <view class="icon1 iconfont" :class="['icon-' + cuIconList[10].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  163. class="wenZhi" :style="{'font-size':fontSize}">夜风向</br>{{weatherProphetData_1[0].winddirection2}}</a>
  164. </div>
  165. <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
  166. <view class="icon1 iconfont" :class="['icon-' + cuIconList[11].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  167. class="wenZhi" :style="{'font-size':fontSize}">夜风速</br>{{weatherProphetData_1[0].speed2}}km/h</a>
  168. </div>
  169. <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
  170. <view class="icon1 iconfont" :class="['icon-' + cuIconList[12].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  171. class="wenZhi" :style="{'font-size':fontSize}">夜阵风速</br>{{weatherProphetData_1[0].gust2}}km/h</a>
  172. </div>
  173. <div class="cuIcon4" :style="{'margin-top':margintop}">
  174. <view class="icon1 iconfont" :class="['icon-' + cuIconList[0].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  175. class="wenZhi" :style="{'font-size':fontSize}">天气</br>{{weatherProphetData_1[0].weather}}</a>
  176. </div>
  177. </div>
  178. <div class="cu-listAllTThree" :style="{'width':widthToday,'margin-top':margintopThree}">
  179. <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
  180. <view class="icon1 iconfont" :class="['icon-' + cuIconList[1].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  181. class="wenZhi" :style="{'font-size':fontSize}">最高温度</br>{{weatherProphetData_1[0].maximumtem}}℃</a>
  182. </div>
  183. <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
  184. <view class="icon1 iconfont" :class="['icon-' + cuIconList[2].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  185. class="wenZhi" :style="{'font-size':fontSize}">最低温度</br>{{weatherProphetData_1[0].minimumtem}}℃</a>
  186. </div>
  187. <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
  188. <view class="icon1 iconfont" :class="['icon-' + cuIconList[3].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  189. class="wenZhi" :style="{'font-size':fontSize}">日出</br>{{weatherProphetData_1[0].sunrise}}</a>
  190. </div>
  191. <div class="cuIcon4" :style="{'margin-top':margintopThree}">
  192. <view class="icon1 iconfont" :class="['icon-' + cuIconList[4].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  193. class="wenZhi" :style="{'font-size':fontSize}">日落</br>{{weatherProphetData_1[0].sunset}}</a>
  194. </div>
  195. </div>
  196. <div class="cu-listAllTFour" :style="{'width':widthToday,'margin-top':margintopThree}">
  197. <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
  198. <view class="icon1 iconfont" :class="['icon-' + cuIconList[5].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  199. class="wenZhi" :style="{'font-size':fontSize}">持续时间</br>{{weatherProphetData_1[0].sunduration}}</a>
  200. </div>
  201. <div class="cuIcon2">
  202. </div>
  203. <div class="cuIcon2">
  204. </div>
  205. <div class="cuIcon2">
  206. </div>
  207. </div>
  208. </view>
  209. </view>
  210. </scroll-view>
  211. </view>
  212. </view>
  213. <!-- 7天气象卡片 -->
  214. <view v-if="weatherSevendaybutton">
  215. <div>
  216. <WeatherTemperatureWindSpeedCard_7 ref='WeatherTemperatureWindSpeedCard_7' @listenEven="changeTap"></WeatherTemperatureWindSpeedCard_7>
  217. </div>
  218. <div class="weatherDayAndNightButton7">
  219. <div :class="[weatherSwitch7==true?'dayButtonWhite7':'dayButtonBlack7']" @click="weatherDaySwitch7()">白天</div>
  220. <div :class="[weatherSwitch7==false?'nightButtonWhite7':'nightButtonBlack7']" :style="{'margin-left':nightmarginleft7}"
  221. @click="weatherNightSwitch7()">夜间</div>
  222. </div>
  223. <div v-if="weatherSwitch7">
  224. <scroll-view scroll-y scroll-with-animation class="scrollList7" :style="{'height':height7}">
  225. <view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']" style="background-color: rgba(0, 0, 0, 0);">
  226. <view class="cu-item">
  227. <div class="cu-listAll7" :style="{'width':width7}">
  228. <div class="cuIcon7" :style="{'height':xianHeight7}">
  229. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[6].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  230. class="wenZhi7" :style="{'font-size':fontSize7}">白气象</br>{{weatherInformation.weather1}}</a>
  231. </div>
  232. <div class="cuIcon7" :style="{'height':xianHeight7}">
  233. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[7].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  234. class="wenZhi7" :style="{'font-size':fontSize7}">白气温</br>{{weatherInformation.temperature1}}℃</a>
  235. </div>
  236. <div class="cuIcon7" :style="{'height':xianHeight7}">
  237. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[8].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  238. class="wenZhi7" :style="{'font-size':fontSize7}">白体感</br>{{weatherInformation.realfeel1}}℃</a>
  239. </div>
  240. <div class="cuIcon4">
  241. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[9].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  242. class="wenZhi7" :style="{'font-size':fontSize7}">白降水</br>{{weatherInformation.precipitation1}}m/s</a>
  243. </div>
  244. </div>
  245. <div class="cu-listAllTwo7" :style="{'width':width7,'margin-top':margintop7}">
  246. <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
  247. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[10].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  248. class="wenZhi7" :style="{'font-size':fontSize7}">白风向</br>{{weatherInformation.winddirection1}}</a>
  249. </div>
  250. <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
  251. <view class="icon7 iconfont" :class="['icon-' + cuIconList[11].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  252. class="wenZhi7" :style="{'font-size':fontSize7}">白风速</br>{{weatherInformation.speed1}}km/h</a>
  253. </div>
  254. <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
  255. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[12].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  256. class="wenZhi7" :style="{'font-size':fontSize7}">白阵风速</br>{{weatherInformation.gust1}}km/h</a>
  257. </div>
  258. <div class="cuIcon4" :style="{'margin-top':margintop7}">
  259. <view class="icon7 iconfont" :class="['icon-' + cuIconList[0].cuIcon,'text-'+ cuIconList[0].color]"></view><a
  260. class="wenZhi" :style="{'font-size':fontSize7}">天气</br>{{weatherInformation.weather}}</a>
  261. </div>
  262. </div>
  263. <div class="cu-listAllTThree7" :style="{'width':width7,'margin-top':margintopThree7}">
  264. <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
  265. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[1].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  266. class="wenZhi7" :style="{'font-size':fontSize7}">最高温度</br>{{weatherInformation.maximumtem}}℃</a>
  267. </div>
  268. <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
  269. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[2].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  270. class="wenZhi7" :style="{'font-size':fontSize7}">最低温度</br>{{weatherInformation.minimumtem}}℃</a>
  271. </div>
  272. <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
  273. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[3].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  274. class="wenZhi7" :style="{'font-size':fontSize7}">日出</br>{{weatherInformation.sunrise}}</a>
  275. </div>
  276. <div class="cuIcon4" :style="{'margin-top':margintopThree7}">
  277. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[4].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  278. class="wenZhi7" :style="{'font-size':fontSize7}">日落</br>{{weatherInformation.sunset}}</a>
  279. </div>
  280. </div>
  281. <div class="cu-listAllTFour7" :style="{'width':width7,'margin-top':margintopThree7}">
  282. <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
  283. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[5].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  284. class="wenZhi7" :style="{'font-size':fontSize7}">持续时间</br>{{weatherInformation.sunduration}}</a>
  285. </div>
  286. <div class="cuIcon2">
  287. </div>
  288. <div class="cuIcon2">
  289. </div>
  290. <div class="cuIcon2">
  291. </div>
  292. </div>
  293. </view>
  294. </view>
  295. </scroll-view>
  296. </div>
  297. <view v-if="weatherSwitch7==false">
  298. <scroll-view scroll-y scroll-with-animation class="scrollList7" :style="{'height':height7}">
  299. <view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']" style="background-color: rgba(0, 0, 0, 0);">
  300. <view class="cu-item">
  301. <div class="cu-listAll7" :style="{'width':width7}">
  302. <div class="cuIcon7" :style="{'height':xianHeight7}">
  303. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[6].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  304. class="wenZhi7" :style="{'font-size':fontSize7}">夜气象</br>{{weatherInformation.weather2}}</a>
  305. </div>
  306. <div class="cuIcon7" :style="{'height':xianHeight7}">
  307. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[7].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  308. class="wenZhi7" :style="{'font-size':fontSize7}">夜气温</br>{{weatherInformation.temperature2}}℃</a>
  309. </div>
  310. <div class="cuIcon7" :style="{'height':xianHeight7}">
  311. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[8].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  312. class="wenZhi7" :style="{'font-size':fontSize7}">夜体感</br>{{weatherInformation.realfeel2}}℃</a>
  313. </div>
  314. <div class="cuIcon4">
  315. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[9].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  316. class="wenZhi7" :style="{'font-size':fontSize7}">夜降水</br>{{weatherInformation.precipitation2}}m/s</a>
  317. </div>
  318. </div>
  319. <div class="cu-listAllTwo7" :style="{'width':width7,'margin-top':margintop7}">
  320. <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
  321. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[10].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  322. class="wenZhi7" :style="{'font-size':fontSize7}">夜风向</br>{{weatherInformation.winddirection2}}</a>
  323. </div>
  324. <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
  325. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[11].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  326. class="wenZhi7" :style="{'font-size':fontSize7}">夜风速</br>{{weatherInformation.speed2}}km/h</a>
  327. </div>
  328. <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
  329. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[12].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  330. class="wenZhi7" :style="{'font-size':fontSize7}">夜阵风速</br>{{weatherInformation.gust2}}km/h</a>
  331. </div>
  332. <div class="cuIcon4" :style="{'margin-top':margintop7}">
  333. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[0].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  334. class="wenZhi7" :style="{'font-size':fontSize7}">天气</br>{{weatherInformation.weather}}</a>
  335. </div>
  336. </div>
  337. <div class="cu-listAllTThree7" :style="{'width':width7,'margin-top':margintopThree7}">
  338. <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
  339. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[1].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  340. class="wenZhi7" :style="{'font-size':fontSize7}">最高温度</br>{{weatherInformation.maximumtem}}℃</a>
  341. </div>
  342. <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
  343. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[2].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  344. class="wenZhi7" :style="{'font-size':fontSize7}">最低温度</br>{{weatherInformation.minimumtem}}℃</a>
  345. </div>
  346. <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
  347. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[3].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  348. class="wenZhi7" :style="{'font-size':fontSize7}">日出</br>{{weatherInformation.sunrise}}</a>
  349. </div>
  350. <div class="cuIcon4" :style="{'margin-top':margintopThree7}">
  351. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[4].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  352. class="wenZhi7" :style="{'font-size':fontSize7}">日落</br>{{weatherInformation.sunset}}</a>
  353. </div>
  354. </div>
  355. <div class="cu-listAllTFour7" :style="{'width':width7,'margin-top':margintopThree7}">
  356. <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
  357. <view class="icon7 iconfont" :class="['icon-' + cuIconList7[5].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
  358. class="wenZhi7" :style="{'font-size':fontSize7}">持续时间</br>{{weatherInformation.sunduration}}</a>
  359. </div>
  360. <div class="cuIcon2">
  361. </div>
  362. <div class="cuIcon2">
  363. </div>
  364. <div class="cuIcon2">
  365. </div>
  366. </div>
  367. </view>
  368. </view>
  369. </scroll-view>
  370. </view>
  371. </view>
  372. <!-- 8~15天气象卡片 -->
  373. <view v-if="weatherFromeighttofifteendaysbutton">
  374. <view class="cu-card case" :class="isCard?'no-card':''">
  375. <view class="cardContenter">
  376. <view class="weather8_15">
  377. <view class="weather8_15_text">{{startDate}}~{{endDate}}</view>
  378. <view class="choice">
  379. <div :class="[speedFlag==true?'speedButtonWhite':'speedButtonBlack']" :style="{'font-size':choiceFontSize,'margin-top':choiceMarginTop}"
  380. @click="speedSwitch()">风速</div>
  381. <div :class="[temperatureFlag==true?'temperatureButtonWhite':'temperatureButtonBlack']" :style="{'font-size':choiceFontSize,'margin-top':choiceMarginTop}"
  382. @click="temperatureSwitch()">温度</div>
  383. <div :class="[realFeelFlag==true?'realFeelButtonWhite':'realFeelButtonBlack']" :style="{'font-size':choiceFontSize,'margin-top':choiceMarginTop}"
  384. @click="realFeelSwitch()">体感温度</div>
  385. </view>
  386. </view>
  387. <scroll-view scroll-x scroll-with-animation :scroll-left=scrollposition class="scrollUcharts" @scroll="uChartsScrollEvent"
  388. :scroll-into-view="'uCharts-'+mainCur">
  389. <view class="qiun-charts">
  390. <canvas canvas-id="canvasLineA" id="canvasLineA" class="charts"></canvas>
  391. </view>
  392. </scroll-view>
  393. </view>
  394. </view>
  395. <div>
  396. <scroll-view scroll-y scroll-with-animation :scroll-top=scrollposition class="scrollList" :style="{'height': scrollHeight }"
  397. @scroll="listScrollEvent">
  398. <weatherCalendarCardList8_15 ref="weatherCalendarCardList8_15"></weatherCalendarCardList8_15>
  399. </scroll-view>
  400. </div>
  401. </view>
  402. <!-- 40天气象卡片 -->
  403. <view v-if="weatherFortydaysbutton">
  404. <view class="cu-card case" :class="isCard40?'no-card':''">
  405. <view class="cardContenter40">
  406. <view class="dateAndChoice">
  407. <view class="date">
  408. {{startDate40}}~{{endDate40}}
  409. </view>
  410. <view class="choice40">
  411. <div :class="[speedFlag40==true?'speedButtonWhite40':'speedButtonBlack40']" :style="{'font-size':choiceFontSize40,'margin-top':choiceMarginTop40}"
  412. @click="speedSwitch40()">风速</div>
  413. <div :class="[temperatureFlag40==true?'temperatureButtonWhite40':'temperatureButtonBlack40']" :style="{'font-size':choiceFontSize40,'margin-top':choiceMarginTop40}"
  414. @click="temperatureSwitch40()">温度</div>
  415. <div :class="[realFeelFlag40==true?'realFeelButtonWhite40':'realFeelButtonBlack40']" :style="{'font-size':choiceFontSize40,'margin-top':choiceMarginTop40}"
  416. @click="realFeelSwitch40()">体感温度</div>
  417. </view>
  418. </view>
  419. <scroll-view scroll-x scroll-with-animation :scroll-left=scrollposition_uCharts class="scrollUcharts40" @scroll="uChartsScrollEvent40"
  420. :scroll-into-view="'uCharts-'+mainCur40">
  421. <view class="qiun-charts40">
  422. <canvas canvas-id="canvasLineA40" id="canvasLineA40" class="charts40"></canvas>
  423. </view>
  424. </scroll-view>
  425. </view>
  426. </view>
  427. <scroll-view scroll-y scroll-with-animation :scroll-top=scrollposition_list class="scrollList40" :style="{'height': scrollListHeight40 }"
  428. @scroll="listScrollEvent40">
  429. <weatherCalendarCardList40 ref="weatherCalendarCardList40"></weatherCalendarCardList40>
  430. </scroll-view>
  431. </view>
  432. </scroll-view>
  433. <view class="DrawerClose" :class="modalName == 'viewModal' ? 'show' : ''" @tap="hideModal"><text class="cuIcon-pullright"></text></view>
  434. </view>
  435. </template>
  436. <script>
  437. import uCharts from '../../components/tools/u-charts/u-charts.js';
  438. import utils from '../../components/tools/shoyu-date/utils.filter.js';
  439. import res from '../../common/data.json';
  440. import drawer from '../../components/drawer/weatherThreeLineDrawer.vue';
  441. import plusDrawer from '../../components/drawer/plusDrawer.vue';
  442. import ThermometerCard from '../../components/weatherProphethomepage/weathercomponents/thermometerCard/ThermometerCard.vue';
  443. import WeatherTemperatureWindSpeedCard_7 from '../../components/weatherProphethomepage/weathercomponents/weatherTemperatureWindSpeedCard_7/WeatherTemperatureWindSpeedCard_7.vue';
  444. import weatherCalendarCardList8_15 from '../../components/weatherProphethomepage/weathercomponents/weatherCalendarCardList8_15/weatherCalendarCardList8_15.vue';
  445. import weatherCalendarCardList40 from '../../components/weatherProphethomepage/weathercomponents/weatherCalendarCardList40/weatherCalendarCardList40.vue';
  446. import sPopup from '@/s-popup';
  447. export default {
  448. components: {
  449. drawer: drawer,
  450. plusDrawer: plusDrawer,
  451. weatherCalendarCardList8_15: weatherCalendarCardList8_15,
  452. weatherCalendarCardList40: weatherCalendarCardList40,
  453. sPopup: sPopup,
  454. ThermometerCard: ThermometerCard,
  455. WeatherTemperatureWindSpeedCard_7: WeatherTemperatureWindSpeedCard_7
  456. },
  457. data() {
  458. return {
  459. outThreeLineDrawerIsShow:false,
  460. badge: 22,
  461. modalName: null,
  462. inconList: ["form", "favor", "question", "edit"],
  463. address: '宁夏新能源公司',
  464. weatherTodaybutton: true,
  465. weatherSevendaybutton: false,
  466. weatherFromeighttofifteendaysbutton: false,
  467. weatherFortydaysbutton: false,
  468. windStationName: '',
  469. showCenterVisible: false,
  470. windStation: ['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'],
  471. choiceIndex: -1,
  472. clickFlag: 'jieRu',
  473. cardCur: 0,
  474. spopupWrapperHeight: "",
  475. windStationListHeight: '',
  476. drawerList: [
  477. {
  478. "name": "地图监视"
  479. }
  480. ],
  481. plusDrawerList: [{
  482. name: '宁夏新能源公司',
  483. windPowerStationId: 'MHS_FDC'
  484. },
  485. {
  486. name: '牛首山风电场',
  487. windPowerStationId: 'NSS_FDC'
  488. },
  489. {
  490. name: '香山风电场',
  491. windPowerStationId: 'XS_FDC'
  492. },
  493. {
  494. name: '石板泉风电场',
  495. windPowerStationId: 'SBQ_FDC'
  496. },
  497. {
  498. name: '青山风电场',
  499. windPowerStationId: 'QS_FDC'
  500. },
  501. {
  502. name: '麻黄山风电场',
  503. windPowerStationId: 'MHS_FDC'
  504. }
  505. ],
  506. utils: utils,
  507. margintop: '',
  508. margintopThree: '',
  509. messageTop: '',
  510. // 直接使用需要进行声明
  511. // 直接使用需要进行声明 End
  512. date: '2020/03/27 08:00:00',
  513. timestamp: "",
  514. option: '',
  515. cuIconList: [{
  516. cuIcon: 'weather',
  517. color: 'white',
  518. name: '天气',
  519. }, {
  520. cuIcon: 'maxTemperature',
  521. color: 'white',
  522. name: '最高温度',
  523. }, {
  524. cuIcon: 'minTemperature',
  525. color: 'white',
  526. name: '最低温度',
  527. }, {
  528. cuIcon: 'sunRise',
  529. color: 'white',
  530. name: '日出',
  531. }, {
  532. cuIcon: 'sunSet',
  533. color: 'white',
  534. name: '日落',
  535. }, {
  536. cuIcon: 'sunDuration',
  537. color: 'white',
  538. name: '持续时间',
  539. }, {
  540. cuIcon: 'dayWeather',
  541. color: 'white',
  542. name: '白气象',
  543. }, {
  544. cuIcon: 'dayTemperature',
  545. color: 'white',
  546. name: '白气温',
  547. }, {
  548. cuIcon: 'dayRealFeel',
  549. color: 'white',
  550. name: '白体感',
  551. }, {
  552. cuIcon: 'dayPrecipitation',
  553. color: 'white',
  554. name: '白降水',
  555. }, {
  556. cuIcon: 'dayWindDirection',
  557. color: 'white',
  558. name: '白风向',
  559. }, {
  560. cuIcon: 'dayWindSpeed',
  561. color: 'white',
  562. name: '白风速',
  563. }, {
  564. cuIcon: 'dayGust',
  565. color: 'white',
  566. name: '白阵风速',
  567. }, {
  568. cuIcon: 'nightWeather',
  569. color: 'white',
  570. name: '夜气象',
  571. }, {
  572. cuIcon: 'nightTemperature',
  573. color: 'white',
  574. name: '夜温度',
  575. }, {
  576. cuIcon: 'nightRealFeel',
  577. color: 'white',
  578. name: '夜体感',
  579. }, {
  580. cuIcon: 'nightPrecipitation',
  581. color: 'white',
  582. name: '夜降水',
  583. }, {
  584. cuIcon: 'nightWindDirection',
  585. color: 'white',
  586. name: '夜风向',
  587. }, {
  588. cuIcon: 'nightWindSpeed',
  589. color: 'white',
  590. name: '夜风速',
  591. }, {
  592. cuIcon: 'nightGust',
  593. color: 'white',
  594. name: '夜阵风速',
  595. }],
  596. gridCol: 4,
  597. gridBorder: false,
  598. weatherProphetDataAll_17Hour: [],
  599. weatherProphetData_17Hour: [{
  600. date: '',
  601. id: '',
  602. realfeel: '',
  603. region: '',
  604. speed: '',
  605. temperature: '',
  606. weather: '',
  607. winddirection: '',
  608. windpowerstationid: ''
  609. }],
  610. weatherProphetDataAll_1: [],
  611. weatherProphetData_1: [{
  612. weather1: '',
  613. gust1: '',
  614. gust2: '',
  615. id: '',
  616. maximumtem: '',
  617. minimumtem: '',
  618. precipitation1: "",
  619. precipitation2: '',
  620. realfeel1: '',
  621. realfeel1: '',
  622. recodedata: '',
  623. region: '',
  624. speed1: '',
  625. speed2: '',
  626. sunduration: "",
  627. sunrise: '',
  628. sunset: '',
  629. temperature1: '',
  630. temperature2: '',
  631. weather: '',
  632. weather1: '',
  633. weather2: "",
  634. winddirection1: '',
  635. winddirection2: '',
  636. windpowerstationid: '',
  637. }],
  638. weatherSwitch: true,
  639. FDC: "MHS_FDC",
  640. windPowerStations: [],
  641. widthToday: '',
  642. heightToday: '',
  643. width: '',
  644. height: '',
  645. windowWidth: "",
  646. windowHeight: "",
  647. windowWidth7: "",
  648. windowHeight7:"",
  649. windowWidth8_15: "",
  650. windowHeight8_15:"",
  651. windowWidth40: "",
  652. windowHeight40:"",
  653. ziHeight: '',
  654. fontSize: '',
  655. xianHeight: '',
  656. marginleftBiao: '',
  657. scrollHeight: '',
  658. choiceFontSize: "",
  659. choiceMarginTop: "",
  660. xAxisFontSize: "",
  661. seriesTextSize: "",
  662. cardWidth: "",
  663. cardHeight: "",
  664. isToday: false,
  665. scrollposition: 0,
  666. weatherProphetDataAll_8_15: [],
  667. weatherProphetData_8_15: [],
  668. socket: "",
  669. startDate: "",
  670. isCard: false,
  671. endDate: "",
  672. cWidth: '',
  673. cHeight: '',
  674. cWidth40: '',
  675. cHeight40: '',
  676. pixelRatio: 1,
  677. pixelRatio40: 1,
  678. realFeelFlag: true,
  679. temperatureFlag: false,
  680. speedFlag: false,
  681. tabCur: 0,
  682. mainCur: 0,
  683. scrollposition_uCharts: 0,
  684. scrollposition_list: 0,
  685. isCard40: false,
  686. weatherProphetData_40: [{
  687. id: '238466634',
  688. recodedata: '2020/02/25 00:00:00',
  689. region: '石板泉风电场',
  690. windpowerstationid: 'SBQ_FDC',
  691. weather: '晴',
  692. maximumtem: '15',
  693. minimumtem: '-2',
  694. sunrise: '07:37',
  695. sunset: '18:48',
  696. sunduration: '11',
  697. weather1: '晴',
  698. temperature1: '-15',
  699. realfeel1: '15',
  700. precipitation1: '0',
  701. winddrection1: '0',
  702. speed1: '3',
  703. gust1: '3',
  704. weather2: '晴',
  705. temperature2: '-2',
  706. realfeel2: '-3',
  707. precipitation2: '0',
  708. winddirection2: '东北',
  709. speed2: '3',
  710. gust2: '3'
  711. },
  712. {
  713. id: '238466634',
  714. recodedata: '2020/02/26 00:00:00',
  715. region: '石板泉风电场',
  716. windpowerstationid: 'SBQ_FDC',
  717. weather: '晴',
  718. maximumtem: '15',
  719. minimumtem: '-2',
  720. sunrise: '07:37',
  721. sunset: '18:48',
  722. sunduration: '11',
  723. weather1: '晴',
  724. temperature1: '-10',
  725. realfeel1: '8',
  726. precipitation1: '0',
  727. winddrection1: '0',
  728. speed1: '6',
  729. gust1: '3',
  730. weather2: '晴',
  731. temperature2: '-2',
  732. realfeel2: '-3',
  733. precipitation2: '0',
  734. winddirection2: '东北',
  735. speed2: '3',
  736. gust2: '3'
  737. },
  738. {
  739. id: '238466634',
  740. recodedata: '2020/02/27 00:00:00',
  741. region: '石板泉风电场',
  742. windpowerstationid: 'SBQ_FDC',
  743. weather: '晴',
  744. maximumtem: '15',
  745. minimumtem: '-2',
  746. sunrise: '07:37',
  747. sunset: '18:48',
  748. sunduration: '11',
  749. weather1: '晴',
  750. temperature1: '10',
  751. realfeel1: '7',
  752. precipitation1: '0',
  753. winddrection1: '0',
  754. speed1: '2',
  755. gust1: '3',
  756. weather2: '晴',
  757. temperature2: '-2',
  758. realfeel2: '-3',
  759. precipitation2: '0',
  760. winddirection2: '东北',
  761. speed2: '3',
  762. gust2: '3'
  763. },
  764. {
  765. id: '238466634',
  766. recodedata: '2020/02/28 00:00:00',
  767. region: '石板泉风电场',
  768. windpowerstationid: 'SBQ_FDC',
  769. weather: '晴',
  770. maximumtem: '15',
  771. minimumtem: '-2',
  772. sunrise: '07:37',
  773. sunset: '18:48',
  774. sunduration: '11',
  775. weather1: '晴',
  776. temperature1: '12',
  777. realfeel1: '15',
  778. precipitation1: '0',
  779. winddrection1: '0',
  780. speed1: '10',
  781. gust1: '3',
  782. weather2: '晴',
  783. temperature2: '-2',
  784. realfeel2: '-3',
  785. precipitation2: '0',
  786. winddirection2: '东北',
  787. speed2: '3',
  788. gust2: '3'
  789. },
  790. {
  791. id: '238466634',
  792. recodedata: '2020/02/29 00:00:00',
  793. region: '石板泉风电场',
  794. windpowerstationid: 'SBQ_FDC',
  795. weather: '晴',
  796. maximumtem: '15',
  797. minimumtem: '-2',
  798. sunrise: '07:37',
  799. sunset: '18:48',
  800. sunduration: '11',
  801. weather1: '晴',
  802. temperature1: '15',
  803. realfeel1: '13',
  804. precipitation1: '0',
  805. winddrection1: '0',
  806. speed1: '12',
  807. gust1: '3',
  808. weather2: '晴',
  809. temperature2: '-2',
  810. realfeel2: '-3',
  811. precipitation2: '0',
  812. winddirection2: '东北',
  813. speed2: '3',
  814. gust2: '3'
  815. },
  816. {
  817. id: '238466634',
  818. recodedata: '2020/03/01 00:00:00',
  819. region: '石板泉风电场',
  820. windpowerstationid: 'SBQ_FDC',
  821. weather: '晴',
  822. maximumtem: '15',
  823. minimumtem: '-2',
  824. sunrise: '07:37',
  825. sunset: '18:48',
  826. sunduration: '11',
  827. weather1: '晴',
  828. temperature1: '-15',
  829. realfeel1: '15',
  830. precipitation1: '0',
  831. winddrection1: '0',
  832. speed1: '3',
  833. gust1: '3',
  834. weather2: '晴',
  835. temperature2: '-2',
  836. realfeel2: '-3',
  837. precipitation2: '0',
  838. winddirection2: '东北',
  839. speed2: '3',
  840. gust2: '3'
  841. },
  842. {
  843. id: '238466634',
  844. recodedata: '2020/03/02 00:00:00',
  845. region: '石板泉风电场',
  846. windpowerstationid: 'SBQ_FDC',
  847. weather: '晴',
  848. maximumtem: '15',
  849. minimumtem: '-2',
  850. sunrise: '07:37',
  851. sunset: '18:48',
  852. sunduration: '11',
  853. weather1: '晴',
  854. temperature1: '-15',
  855. realfeel1: '15',
  856. precipitation1: '0',
  857. winddrection1: '0',
  858. speed1: '3',
  859. gust1: '3',
  860. weather2: '晴',
  861. temperature2: '-2',
  862. realfeel2: '-3',
  863. precipitation2: '0',
  864. winddirection2: '东北',
  865. speed2: '3',
  866. gust2: '3'
  867. },
  868. {
  869. id: '238466634',
  870. recodedata: '2020/03/03 00:00:00',
  871. region: '石板泉风电场',
  872. windpowerstationid: 'SBQ_FDC',
  873. weather: '晴',
  874. maximumtem: '15',
  875. minimumtem: '-2',
  876. sunrise: '07:37',
  877. sunset: '18:48',
  878. sunduration: '11',
  879. weather1: '晴',
  880. temperature1: '-15',
  881. realfeel1: '15',
  882. precipitation1: '0',
  883. winddrection1: '0',
  884. speed1: '3',
  885. gust1: '3',
  886. weather2: '晴',
  887. temperature2: '-2',
  888. realfeel2: '-3',
  889. precipitation2: '0',
  890. winddirection2: '东北',
  891. speed2: '3',
  892. gust2: '3'
  893. },
  894. {
  895. id: '238466634',
  896. recodedata: '2020/03/04 00:00:00',
  897. region: '石板泉风电场',
  898. windpowerstationid: 'SBQ_FDC',
  899. weather: '晴',
  900. maximumtem: '15',
  901. minimumtem: '-2',
  902. sunrise: '07:37',
  903. sunset: '18:48',
  904. sunduration: '11',
  905. weather1: '晴',
  906. temperature1: '-15',
  907. realfeel1: '15',
  908. precipitation1: '0',
  909. winddrection1: '0',
  910. speed1: '3',
  911. gust1: '3',
  912. weather2: '晴',
  913. temperature2: '-2',
  914. realfeel2: '-3',
  915. precipitation2: '0',
  916. winddirection2: '东北',
  917. speed2: '3',
  918. gust2: '3'
  919. },
  920. {
  921. id: '238466634',
  922. recodedata: '2020/03/05 00:00:00',
  923. region: '石板泉风电场',
  924. windpowerstationid: 'SBQ_FDC',
  925. weather: '晴',
  926. maximumtem: '15',
  927. minimumtem: '-2',
  928. sunrise: '07:37',
  929. sunset: '18:48',
  930. sunduration: '11',
  931. weather1: '晴',
  932. temperature1: '-15',
  933. realfeel1: '15',
  934. precipitation1: '0',
  935. winddrection1: '0',
  936. speed1: '3',
  937. gust1: '3',
  938. weather2: '晴',
  939. temperature2: '-2',
  940. realfeel2: '-3',
  941. precipitation2: '0',
  942. winddirection2: '东北',
  943. speed2: '3',
  944. gust2: '3'
  945. },
  946. {
  947. id: '238466634',
  948. recodedata: '2020/03/06 00:00:00',
  949. region: '石板泉风电场',
  950. windpowerstationid: 'SBQ_FDC',
  951. weather: '晴',
  952. maximumtem: '15',
  953. minimumtem: '-2',
  954. sunrise: '07:37',
  955. sunset: '18:48',
  956. sunduration: '11',
  957. weather1: '晴',
  958. temperature1: '-15',
  959. realfeel1: '15',
  960. precipitation1: '0',
  961. winddrection1: '0',
  962. speed1: '3',
  963. gust1: '3',
  964. weather2: '晴',
  965. temperature2: '-2',
  966. realfeel2: '-3',
  967. precipitation2: '0',
  968. winddirection2: '东北',
  969. speed2: '3',
  970. gust2: '3'
  971. },
  972. {
  973. id: '238466634',
  974. recodedata: '2020/03/06 00:00:00',
  975. region: '石板泉风电场',
  976. windpowerstationid: 'SBQ_FDC',
  977. weather: '晴',
  978. maximumtem: '15',
  979. minimumtem: '-2',
  980. sunrise: '07:37',
  981. sunset: '18:48',
  982. sunduration: '11',
  983. weather1: '晴',
  984. temperature1: '-15',
  985. realfeel1: '15',
  986. precipitation1: '0',
  987. winddrection1: '0',
  988. speed1: '3',
  989. gust1: '3',
  990. weather2: '晴',
  991. temperature2: '-2',
  992. realfeel2: '-3',
  993. precipitation2: '0',
  994. winddirection2: '东北',
  995. speed2: '3',
  996. gust2: '3'
  997. },
  998. {
  999. id: '238466634',
  1000. recodedata: '2020/03/07 00:00:00',
  1001. region: '石板泉风电场',
  1002. windpowerstationid: 'SBQ_FDC',
  1003. weather: '晴',
  1004. maximumtem: '15',
  1005. minimumtem: '-2',
  1006. sunrise: '07:37',
  1007. sunset: '18:48',
  1008. sunduration: '11',
  1009. weather1: '晴',
  1010. temperature1: '-15',
  1011. realfeel1: '15',
  1012. precipitation1: '0',
  1013. winddrection1: '0',
  1014. speed1: '3',
  1015. gust1: '3',
  1016. weather2: '晴',
  1017. temperature2: '-2',
  1018. realfeel2: '-3',
  1019. precipitation2: '0',
  1020. winddirection2: '东北',
  1021. speed2: '3',
  1022. gust2: '3'
  1023. },
  1024. {
  1025. id: '238466634',
  1026. recodedata: '2020/03/08 00:00:00',
  1027. region: '石板泉风电场',
  1028. windpowerstationid: 'SBQ_FDC',
  1029. weather: '晴',
  1030. maximumtem: '15',
  1031. minimumtem: '-2',
  1032. sunrise: '07:37',
  1033. sunset: '18:48',
  1034. sunduration: '11',
  1035. weather1: '晴',
  1036. temperature1: '-15',
  1037. realfeel1: '15',
  1038. precipitation1: '0',
  1039. winddrection1: '0',
  1040. speed1: '3',
  1041. gust1: '3',
  1042. weather2: '晴',
  1043. temperature2: '-2',
  1044. realfeel2: '-3',
  1045. precipitation2: '0',
  1046. winddirection2: '东北',
  1047. speed2: '3',
  1048. gust2: '3'
  1049. },
  1050. {
  1051. id: '238466634',
  1052. recodedata: '2020/03/09 00:00:00',
  1053. region: '石板泉风电场',
  1054. windpowerstationid: 'SBQ_FDC',
  1055. weather: '晴',
  1056. maximumtem: '15',
  1057. minimumtem: '-2',
  1058. sunrise: '07:37',
  1059. sunset: '18:48',
  1060. sunduration: '11',
  1061. weather1: '晴',
  1062. temperature1: '-15',
  1063. realfeel1: '15',
  1064. precipitation1: '0',
  1065. winddrection1: '0',
  1066. speed1: '3',
  1067. gust1: '3',
  1068. weather2: '晴',
  1069. temperature2: '-2',
  1070. realfeel2: '-3',
  1071. precipitation2: '0',
  1072. winddirection2: '东北',
  1073. speed2: '3',
  1074. gust2: '3'
  1075. },
  1076. {
  1077. id: '238466634',
  1078. recodedata: '2020/03/10 00:00:00',
  1079. region: '石板泉风电场',
  1080. windpowerstationid: 'SBQ_FDC',
  1081. weather: '晴',
  1082. maximumtem: '15',
  1083. minimumtem: '-2',
  1084. sunrise: '07:37',
  1085. sunset: '18:48',
  1086. sunduration: '11',
  1087. weather1: '晴',
  1088. temperature1: '-15',
  1089. realfeel1: '15',
  1090. precipitation1: '0',
  1091. winddrection1: '0',
  1092. speed1: '3',
  1093. gust1: '3',
  1094. weather2: '晴',
  1095. temperature2: '-2',
  1096. realfeel2: '-3',
  1097. precipitation2: '0',
  1098. winddirection2: '东北',
  1099. speed2: '3',
  1100. gust2: '3'
  1101. },
  1102. {
  1103. id: '238466634',
  1104. recodedata: '2020/03/11 00:00:00',
  1105. region: '石板泉风电场',
  1106. windpowerstationid: 'SBQ_FDC',
  1107. weather: '晴',
  1108. maximumtem: '15',
  1109. minimumtem: '-2',
  1110. sunrise: '07:37',
  1111. sunset: '18:48',
  1112. sunduration: '11',
  1113. weather1: '晴',
  1114. temperature1: '-15',
  1115. realfeel1: '15',
  1116. precipitation1: '0',
  1117. winddrection1: '0',
  1118. speed1: '3',
  1119. gust1: '3',
  1120. weather2: '晴',
  1121. temperature2: '-2',
  1122. realfeel2: '-3',
  1123. precipitation2: '0',
  1124. winddirection2: '东北',
  1125. speed2: '3',
  1126. gust2: '3'
  1127. },
  1128. {
  1129. id: '238466634',
  1130. recodedata: '2020/03/12 00:00:00',
  1131. region: '石板泉风电场',
  1132. windpowerstationid: 'SBQ_FDC',
  1133. weather: '晴',
  1134. maximumtem: '15',
  1135. minimumtem: '-2',
  1136. sunrise: '07:37',
  1137. sunset: '18:48',
  1138. sunduration: '11',
  1139. weather1: '晴',
  1140. temperature1: '-15',
  1141. realfeel1: '15',
  1142. precipitation1: '0',
  1143. winddrection1: '0',
  1144. speed1: '3',
  1145. gust1: '3',
  1146. weather2: '晴',
  1147. temperature2: '-2',
  1148. realfeel2: '-3',
  1149. precipitation2: '0',
  1150. winddirection2: '东北',
  1151. speed2: '3',
  1152. gust2: '3'
  1153. },
  1154. {
  1155. id: '238466634',
  1156. recodedata: '2020/03/13 00:00:00',
  1157. region: '石板泉风电场',
  1158. windpowerstationid: 'SBQ_FDC',
  1159. weather: '晴',
  1160. maximumtem: '15',
  1161. minimumtem: '-2',
  1162. sunrise: '07:37',
  1163. sunset: '18:48',
  1164. sunduration: '11',
  1165. weather1: '晴',
  1166. temperature1: '-15',
  1167. realfeel1: '15',
  1168. precipitation1: '0',
  1169. winddrection1: '0',
  1170. speed1: '3',
  1171. gust1: '3',
  1172. weather2: '晴',
  1173. temperature2: '-2',
  1174. realfeel2: '-3',
  1175. precipitation2: '0',
  1176. winddirection2: '东北',
  1177. speed2: '3',
  1178. gust2: '3'
  1179. },
  1180. {
  1181. id: '238466634',
  1182. recodedata: '2020/03/14 00:00:00',
  1183. region: '石板泉风电场',
  1184. windpowerstationid: 'SBQ_FDC',
  1185. weather: '晴',
  1186. maximumtem: '15',
  1187. minimumtem: '-2',
  1188. sunrise: '07:37',
  1189. sunset: '18:48',
  1190. sunduration: '11',
  1191. weather1: '晴',
  1192. temperature1: '-15',
  1193. realfeel1: '15',
  1194. precipitation1: '0',
  1195. winddrection1: '0',
  1196. speed1: '3',
  1197. gust1: '3',
  1198. weather2: '晴',
  1199. temperature2: '-2',
  1200. realfeel2: '-3',
  1201. precipitation2: '0',
  1202. winddirection2: '东北',
  1203. speed2: '3',
  1204. gust2: '3'
  1205. },
  1206. {
  1207. id: '238466634',
  1208. recodedata: '2020/03/15 00:00:00',
  1209. region: '石板泉风电场',
  1210. windpowerstationid: 'SBQ_FDC',
  1211. weather: '晴',
  1212. maximumtem: '15',
  1213. minimumtem: '-2',
  1214. sunrise: '07:37',
  1215. sunset: '18:48',
  1216. sunduration: '11',
  1217. weather1: '晴',
  1218. temperature1: '-15',
  1219. realfeel1: '15',
  1220. precipitation1: '0',
  1221. winddrection1: '0',
  1222. speed1: '3',
  1223. gust1: '3',
  1224. weather2: '晴',
  1225. temperature2: '-2',
  1226. realfeel2: '-3',
  1227. precipitation2: '0',
  1228. winddirection2: '东北',
  1229. speed2: '3',
  1230. gust2: '3'
  1231. },
  1232. {
  1233. id: '238466634',
  1234. recodedata: '2020/03/16 00:00:00',
  1235. region: '石板泉风电场',
  1236. windpowerstationid: 'SBQ_FDC',
  1237. weather: '晴',
  1238. maximumtem: '15',
  1239. minimumtem: '-2',
  1240. sunrise: '07:37',
  1241. sunset: '18:48',
  1242. sunduration: '11',
  1243. weather1: '晴',
  1244. temperature1: '-15',
  1245. realfeel1: '15',
  1246. precipitation1: '0',
  1247. winddrection1: '0',
  1248. speed1: '3',
  1249. gust1: '3',
  1250. weather2: '晴',
  1251. temperature2: '-2',
  1252. realfeel2: '-3',
  1253. precipitation2: '0',
  1254. winddirection2: '东北',
  1255. speed2: '3',
  1256. gust2: '3'
  1257. },
  1258. {
  1259. id: '238466634',
  1260. recodedata: '2020/03/17 00:00:00',
  1261. region: '石板泉风电场',
  1262. windpowerstationid: 'SBQ_FDC',
  1263. weather: '晴',
  1264. maximumtem: '15',
  1265. minimumtem: '-2',
  1266. sunrise: '07:37',
  1267. sunset: '18:48',
  1268. sunduration: '11',
  1269. weather1: '晴',
  1270. temperature1: '-15',
  1271. realfeel1: '15',
  1272. precipitation1: '0',
  1273. winddrection1: '0',
  1274. speed1: '3',
  1275. gust1: '3',
  1276. weather2: '晴',
  1277. temperature2: '-2',
  1278. realfeel2: '-3',
  1279. precipitation2: '0',
  1280. winddirection2: '东北',
  1281. speed2: '3',
  1282. gust2: '3'
  1283. },
  1284. {
  1285. id: '238466634',
  1286. recodedata: '2020/03/18 00:00:00',
  1287. region: '石板泉风电场',
  1288. windpowerstationid: 'SBQ_FDC',
  1289. weather: '晴',
  1290. maximumtem: '15',
  1291. minimumtem: '-2',
  1292. sunrise: '07:37',
  1293. sunset: '18:48',
  1294. sunduration: '11',
  1295. weather1: '晴',
  1296. temperature1: '-15',
  1297. realfeel1: '15',
  1298. precipitation1: '0',
  1299. winddrection1: '0',
  1300. speed1: '3',
  1301. gust1: '3',
  1302. weather2: '晴',
  1303. temperature2: '-2',
  1304. realfeel2: '-3',
  1305. precipitation2: '0',
  1306. winddirection2: '东北',
  1307. speed2: '3',
  1308. gust2: '3'
  1309. },
  1310. {
  1311. id: '238466634',
  1312. recodedata: '2020/03/19 00:00:00',
  1313. region: '石板泉风电场',
  1314. windpowerstationid: 'SBQ_FDC',
  1315. weather: '晴',
  1316. maximumtem: '15',
  1317. minimumtem: '-2',
  1318. sunrise: '07:37',
  1319. sunset: '18:48',
  1320. sunduration: '11',
  1321. weather1: '晴',
  1322. temperature1: '-15',
  1323. realfeel1: '15',
  1324. precipitation1: '0',
  1325. winddrection1: '0',
  1326. speed1: '3',
  1327. gust1: '3',
  1328. weather2: '晴',
  1329. temperature2: '-2',
  1330. realfeel2: '-3',
  1331. precipitation2: '0',
  1332. winddirection2: '东北',
  1333. speed2: '3',
  1334. gust2: '3'
  1335. },
  1336. {
  1337. id: '238466634',
  1338. recodedata: '2020/03/20 00:00:00',
  1339. region: '石板泉风电场',
  1340. windpowerstationid: 'SBQ_FDC',
  1341. weather: '晴',
  1342. maximumtem: '15',
  1343. minimumtem: '-2',
  1344. sunrise: '07:37',
  1345. sunset: '18:48',
  1346. sunduration: '11',
  1347. weather1: '晴',
  1348. temperature1: '-15',
  1349. realfeel1: '15',
  1350. precipitation1: '0',
  1351. winddrection1: '0',
  1352. speed1: '3',
  1353. gust1: '3',
  1354. weather2: '晴',
  1355. temperature2: '-2',
  1356. realfeel2: '-3',
  1357. precipitation2: '0',
  1358. winddirection2: '东北',
  1359. speed2: '3',
  1360. gust2: '3'
  1361. },
  1362. {
  1363. id: '238466634',
  1364. recodedata: '2020/03/21 00:00:00',
  1365. region: '石板泉风电场',
  1366. windpowerstationid: 'SBQ_FDC',
  1367. weather: '晴',
  1368. maximumtem: '15',
  1369. minimumtem: '-2',
  1370. sunrise: '07:37',
  1371. sunset: '18:48',
  1372. sunduration: '11',
  1373. weather1: '晴',
  1374. temperature1: '-15',
  1375. realfeel1: '15',
  1376. precipitation1: '0',
  1377. winddrection1: '0',
  1378. speed1: '3',
  1379. gust1: '3',
  1380. weather2: '晴',
  1381. temperature2: '-2',
  1382. realfeel2: '-3',
  1383. precipitation2: '0',
  1384. winddirection2: '东北',
  1385. speed2: '3',
  1386. gust2: '3'
  1387. },
  1388. {
  1389. id: '238466634',
  1390. recodedata: '2020/03/22 00:00:00',
  1391. region: '石板泉风电场',
  1392. windpowerstationid: 'SBQ_FDC',
  1393. weather: '晴',
  1394. maximumtem: '15',
  1395. minimumtem: '-2',
  1396. sunrise: '07:37',
  1397. sunset: '18:48',
  1398. sunduration: '11',
  1399. weather1: '晴',
  1400. temperature1: '-15',
  1401. realfeel1: '15',
  1402. precipitation1: '0',
  1403. winddrection1: '0',
  1404. speed1: '3',
  1405. gust1: '3',
  1406. weather2: '晴',
  1407. temperature2: '-2',
  1408. realfeel2: '-3',
  1409. precipitation2: '0',
  1410. winddirection2: '东北',
  1411. speed2: '3',
  1412. gust2: '3'
  1413. },
  1414. {
  1415. id: '238466634',
  1416. recodedata: '2020/03/23 00:00:00',
  1417. region: '石板泉风电场',
  1418. windpowerstationid: 'SBQ_FDC',
  1419. weather: '晴',
  1420. maximumtem: '15',
  1421. minimumtem: '-2',
  1422. sunrise: '07:37',
  1423. sunset: '18:48',
  1424. sunduration: '11',
  1425. weather1: '晴',
  1426. temperature1: '-15',
  1427. realfeel1: '15',
  1428. precipitation1: '0',
  1429. winddrection1: '0',
  1430. speed1: '3',
  1431. gust1: '3',
  1432. weather2: '晴',
  1433. temperature2: '-2',
  1434. realfeel2: '-3',
  1435. precipitation2: '0',
  1436. winddirection2: '东北',
  1437. speed2: '3',
  1438. gust2: '3'
  1439. },
  1440. {
  1441. id: '238466634',
  1442. recodedata: '2020/03/24 00:00:00',
  1443. region: '石板泉风电场',
  1444. windpowerstationid: 'SBQ_FDC',
  1445. weather: '晴',
  1446. maximumtem: '15',
  1447. minimumtem: '-2',
  1448. sunrise: '07:37',
  1449. sunset: '18:48',
  1450. sunduration: '11',
  1451. weather1: '晴',
  1452. temperature1: '-15',
  1453. realfeel1: '15',
  1454. precipitation1: '0',
  1455. winddrection1: '0',
  1456. speed1: '3',
  1457. gust1: '3',
  1458. weather2: '晴',
  1459. temperature2: '-2',
  1460. realfeel2: '-3',
  1461. precipitation2: '0',
  1462. winddirection2: '东北',
  1463. speed2: '3',
  1464. gust2: '3'
  1465. },
  1466. {
  1467. id: '238466634',
  1468. recodedata: '2020/03/25 00:00:00',
  1469. region: '石板泉风电场',
  1470. windpowerstationid: 'SBQ_FDC',
  1471. weather: '晴',
  1472. maximumtem: '15',
  1473. minimumtem: '-2',
  1474. sunrise: '07:37',
  1475. sunset: '18:48',
  1476. sunduration: '11',
  1477. weather1: '晴',
  1478. temperature1: '-15',
  1479. realfeel1: '15',
  1480. precipitation1: '0',
  1481. winddrection1: '0',
  1482. speed1: '3',
  1483. gust1: '3',
  1484. weather2: '晴',
  1485. temperature2: '-2',
  1486. realfeel2: '-3',
  1487. precipitation2: '0',
  1488. winddirection2: '东北',
  1489. speed2: '3',
  1490. gust2: '3'
  1491. },
  1492. {
  1493. id: '238466634',
  1494. recodedata: '2020/03/26 00:00:00',
  1495. region: '石板泉风电场',
  1496. windpowerstationid: 'SBQ_FDC',
  1497. weather: '晴',
  1498. maximumtem: '15',
  1499. minimumtem: '-2',
  1500. sunrise: '07:37',
  1501. sunset: '18:48',
  1502. sunduration: '11',
  1503. weather1: '晴',
  1504. temperature1: '-15',
  1505. realfeel1: '15',
  1506. precipitation1: '0',
  1507. winddrection1: '0',
  1508. speed1: '3',
  1509. gust1: '3',
  1510. weather2: '晴',
  1511. temperature2: '-2',
  1512. realfeel2: '-3',
  1513. precipitation2: '0',
  1514. winddirection2: '东北',
  1515. speed2: '3',
  1516. gust2: '3'
  1517. },
  1518. {
  1519. id: '238466634',
  1520. recodedata: '2020/03/27 00:00:00',
  1521. region: '石板泉风电场',
  1522. windpowerstationid: 'SBQ_FDC',
  1523. weather: '晴',
  1524. maximumtem: '15',
  1525. minimumtem: '-2',
  1526. sunrise: '07:37',
  1527. sunset: '18:48',
  1528. sunduration: '11',
  1529. weather1: '晴',
  1530. temperature1: '-15',
  1531. realfeel1: '15',
  1532. precipitation1: '0',
  1533. winddrection1: '0',
  1534. speed1: '3',
  1535. gust1: '3',
  1536. weather2: '晴',
  1537. temperature2: '-2',
  1538. realfeel2: '-3',
  1539. precipitation2: '0',
  1540. winddirection2: '东北',
  1541. speed2: '3',
  1542. gust2: '3'
  1543. },
  1544. {
  1545. id: '238466634',
  1546. recodedata: '2020/03/28 00:00:00',
  1547. region: '石板泉风电场',
  1548. windpowerstationid: 'SBQ_FDC',
  1549. weather: '晴',
  1550. maximumtem: '15',
  1551. minimumtem: '-2',
  1552. sunrise: '07:37',
  1553. sunset: '18:48',
  1554. sunduration: '11',
  1555. weather1: '晴',
  1556. temperature1: '-15',
  1557. realfeel1: '15',
  1558. precipitation1: '0',
  1559. winddrection1: '0',
  1560. speed1: '3',
  1561. gust1: '3',
  1562. weather2: '晴',
  1563. temperature2: '-2',
  1564. realfeel2: '-3',
  1565. precipitation2: '0',
  1566. winddirection2: '东北',
  1567. speed2: '3',
  1568. gust2: '3'
  1569. },
  1570. {
  1571. id: '238466634',
  1572. recodedata: '2020/03/29 00:00:00',
  1573. region: '石板泉风电场',
  1574. windpowerstationid: 'SBQ_FDC',
  1575. weather: '晴',
  1576. maximumtem: '15',
  1577. minimumtem: '-2',
  1578. sunrise: '07:37',
  1579. sunset: '18:48',
  1580. sunduration: '11',
  1581. weather1: '晴',
  1582. temperature1: '-15',
  1583. realfeel1: '15',
  1584. precipitation1: '0',
  1585. winddrection1: '0',
  1586. speed1: '3',
  1587. gust1: '3',
  1588. weather2: '晴',
  1589. temperature2: '-2',
  1590. realfeel2: '-3',
  1591. precipitation2: '0',
  1592. winddirection2: '东北',
  1593. speed2: '3',
  1594. gust2: '3'
  1595. },
  1596. {
  1597. id: '238466634',
  1598. recodedata: '2020/03/30 00:00:00',
  1599. region: '石板泉风电场',
  1600. windpowerstationid: 'SBQ_FDC',
  1601. weather: '晴',
  1602. maximumtem: '15',
  1603. minimumtem: '-2',
  1604. sunrise: '07:37',
  1605. sunset: '18:48',
  1606. sunduration: '11',
  1607. weather1: '晴',
  1608. temperature1: '-15',
  1609. realfeel1: '15',
  1610. precipitation1: '0',
  1611. winddrection1: '0',
  1612. speed1: '3',
  1613. gust1: '3',
  1614. weather2: '晴',
  1615. temperature2: '-2',
  1616. realfeel2: '-3',
  1617. precipitation2: '0',
  1618. winddirection2: '东北',
  1619. speed2: '3',
  1620. gust2: '3'
  1621. },
  1622. {
  1623. id: '238466634',
  1624. recodedata: '2020/03/31 00:00:00',
  1625. region: '石板泉风电场',
  1626. windpowerstationid: 'SBQ_FDC',
  1627. weather: '晴',
  1628. maximumtem: '15',
  1629. minimumtem: '-2',
  1630. sunrise: '07:37',
  1631. sunset: '18:48',
  1632. sunduration: '11',
  1633. weather1: '晴',
  1634. temperature1: '-15',
  1635. realfeel1: '15',
  1636. precipitation1: '0',
  1637. winddrection1: '0',
  1638. speed1: '3',
  1639. gust1: '3',
  1640. weather2: '晴',
  1641. temperature2: '-2',
  1642. realfeel2: '-3',
  1643. precipitation2: '0',
  1644. winddirection2: '东北',
  1645. speed2: '3',
  1646. gust2: '3'
  1647. },
  1648. {
  1649. id: '238466634',
  1650. recodedata: '2020/04/01 00:00:00',
  1651. region: '石板泉风电场',
  1652. windpowerstationid: 'SBQ_FDC',
  1653. weather: '晴',
  1654. maximumtem: '15',
  1655. minimumtem: '-2',
  1656. sunrise: '07:37',
  1657. sunset: '18:48',
  1658. sunduration: '11',
  1659. weather1: '晴',
  1660. temperature1: '-15',
  1661. realfeel1: '15',
  1662. precipitation1: '0',
  1663. winddrection1: '0',
  1664. speed1: '3',
  1665. gust1: '3',
  1666. weather2: '晴',
  1667. temperature2: '-2',
  1668. realfeel2: '-3',
  1669. precipitation2: '0',
  1670. winddirection2: '东北',
  1671. speed2: '3',
  1672. gust2: '3'
  1673. },
  1674. {
  1675. id: '238466634',
  1676. recodedata: '2020/04/02 00:00:00',
  1677. region: '石板泉风电场',
  1678. windpowerstationid: 'SBQ_FDC',
  1679. weather: '晴',
  1680. maximumtem: '15',
  1681. minimumtem: '-2',
  1682. sunrise: '07:37',
  1683. sunset: '18:48',
  1684. sunduration: '11',
  1685. weather1: '晴',
  1686. temperature1: '-15',
  1687. realfeel1: '15',
  1688. precipitation1: '0',
  1689. winddrection1: '0',
  1690. speed1: '3',
  1691. gust1: '3',
  1692. weather2: '晴',
  1693. temperature2: '-2',
  1694. realfeel2: '-3',
  1695. precipitation2: '0',
  1696. winddirection2: '东北',
  1697. speed2: '3',
  1698. gust2: '3'
  1699. },
  1700. {
  1701. id: '238466634',
  1702. recodedata: '2020/04/03 00:00:00',
  1703. region: '石板泉风电场',
  1704. windpowerstationid: 'SBQ_FDC',
  1705. weather: '晴',
  1706. maximumtem: '15',
  1707. minimumtem: '-2',
  1708. sunrise: '07:37',
  1709. sunset: '18:48',
  1710. sunduration: '11',
  1711. weather1: '晴',
  1712. temperature1: '-15',
  1713. realfeel1: '15',
  1714. precipitation1: '0',
  1715. winddrection1: '0',
  1716. speed1: '3',
  1717. gust1: '3',
  1718. weather2: '晴',
  1719. temperature2: '-2',
  1720. realfeel2: '-3',
  1721. precipitation2: '0',
  1722. winddirection2: '东北',
  1723. speed2: '3',
  1724. gust2: '3'
  1725. }
  1726. ],
  1727. weatherProphetDataAll_40: [],
  1728. startDate40: "",
  1729. endDate40: "",
  1730. realFeelFlag40: true,
  1731. temperatureFlag40: false,
  1732. speedFlag40: false,
  1733. tabCur40: 0,
  1734. mainCur40: 0,
  1735. choiceFontSize40: "",
  1736. choiceMarginTop40: "",
  1737. xAxisFontSize40: "",
  1738. seriesTextSize40: "",
  1739. cardWidth40: "",
  1740. cardHeight40: "",
  1741. scrollListHeight40: "",
  1742. socketTask8_15: '',
  1743. socketTask40: '',
  1744. socketTask: '',
  1745. weatherInformation: {},
  1746. cuIconList7: [{
  1747. cuIcon: 'weather',
  1748. color: 'white',
  1749. name: '天气',
  1750. }, {
  1751. cuIcon: 'maxTemperature',
  1752. color: 'white',
  1753. name: '最高温度',
  1754. }, {
  1755. cuIcon: 'minTemperature',
  1756. color: 'white',
  1757. name: '最低温度',
  1758. }, {
  1759. cuIcon: 'sunRise',
  1760. color: 'white',
  1761. name: '日出',
  1762. }, {
  1763. cuIcon: 'sunSet',
  1764. color: 'white',
  1765. name: '日落',
  1766. }, {
  1767. cuIcon: 'sunDuration',
  1768. color: 'white',
  1769. name: '持续时间',
  1770. }, {
  1771. cuIcon: 'dayWeather',
  1772. color: 'white',
  1773. name: '白气象',
  1774. }, {
  1775. cuIcon: 'dayTemperature',
  1776. color: 'white',
  1777. name: '白气温',
  1778. }, {
  1779. cuIcon: 'dayRealFeel',
  1780. color: 'white',
  1781. name: '白体感',
  1782. }, {
  1783. cuIcon: 'dayPrecipitation',
  1784. color: 'white',
  1785. name: '白降水',
  1786. }, {
  1787. cuIcon: 'dayWindDirection',
  1788. color: 'white',
  1789. name: '白风向',
  1790. }, {
  1791. cuIcon: 'dayWindSpeed',
  1792. color: 'white',
  1793. name: '白风速',
  1794. }, {
  1795. cuIcon: 'dayGust',
  1796. color: 'white',
  1797. name: '白阵风速',
  1798. }, {
  1799. cuIcon: 'nightWeather',
  1800. color: 'white',
  1801. name: '夜气象',
  1802. }, {
  1803. cuIcon: 'nightTemperature',
  1804. color: 'white',
  1805. name: '夜温度',
  1806. }, {
  1807. cuIcon: 'nightRealFeel',
  1808. color: 'white',
  1809. name: '夜体感',
  1810. }, {
  1811. cuIcon: 'nightPrecipitation',
  1812. color: 'white',
  1813. name: '夜降水',
  1814. }, {
  1815. cuIcon: 'nightWindDirection',
  1816. color: 'white',
  1817. name: '夜风向',
  1818. }, {
  1819. cuIcon: 'nightWindSpeed',
  1820. color: 'white',
  1821. name: '夜风速',
  1822. }, {
  1823. cuIcon: 'nightGust',
  1824. color: 'white',
  1825. name: '夜阵风速',
  1826. }],
  1827. assemblyWidth7: '',
  1828. assemblyHeight7: '',
  1829. weatherSwitch7: true,
  1830. weatherProphetDataAll_7: [],
  1831. weatherProphetData_7: [],
  1832. weatherIconsDay7: [],
  1833. weatherIconsNight7: [],
  1834. classNameDay7: [],
  1835. classNameNight7: [],
  1836. height7: "",
  1837. width7: "",
  1838. ziHeight7: '',
  1839. fontSize7: '',
  1840. xianHeight7: '',
  1841. nightmarginleft7: '',
  1842. socketTask7: '',
  1843. }
  1844. },
  1845. created: function() {
  1846. // this.pushWindPowerStationNameToSessionStorage("麻黄山");
  1847. this.address = this.getWindPowerStationNameToSessionStorage();
  1848. if (this.address == '') {
  1849. this.pushWindPowerStationNameToSessionStorage('宁夏新能源公司');
  1850. this.address = this.getWindPowerStationNameToSessionStorage();
  1851. }
  1852. if (this.address == '宁夏新能源公司') {
  1853. this.FDC = 'MHS_FDC';
  1854. }
  1855. if (this.address == '麻黄山风电场') {
  1856. this.FDC = 'MHS_FDC';
  1857. }
  1858. if (this.address == '牛首山风电场') {
  1859. this.FDC = 'NSS_FDC';
  1860. }
  1861. if (this.address == '石板泉风电场') {
  1862. this.FDC = 'SBQ_FDC';
  1863. }
  1864. if (this.address == '青山风电场') {
  1865. this.FDC = 'QS_FDC';
  1866. }
  1867. if (this.address == '香山风电场') {
  1868. this.FDC = 'XS_FDC';
  1869. }
  1870. this.windPowerStationId = uni.getStorageSync('windPowerStationId');
  1871. this.$nextTick(function() {
  1872. this.getWeatherDataToday();
  1873. this.getWeatherData7();
  1874. });
  1875. this.cWidth = uni.upx2px(2000);
  1876. this.cHeight = uni.upx2px(350);
  1877. this.cWidth40 = uni.upx2px(5000);
  1878. this.cHeight40 = uni.upx2px(350);
  1879. if (this.address == '宁夏新能源公司') {
  1880. this.windStation = ['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
  1881. this.windStationName = this.windStation[0].replace('风电场', '');
  1882. // this.windPowerStationId = 'MHS_FDC';
  1883. // this.getWeatherDataToday();
  1884. }
  1885. if (this.address == '麻黄山风电场') {
  1886. this.windStation = ['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
  1887. this.windStationName = this.windStation[0].replace('风电场', '');
  1888. // this.windPowerStationId = 'MHS_FDC';
  1889. // this.getWeatherDataToday();
  1890. }
  1891. if (this.address == '牛首山风电场') {
  1892. this.windStation = ['牛首山风电场', '麻黄山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
  1893. this.windStationName = this.windStation[0].replace('风电场', '');
  1894. // this.windPowerStationId = 'NSS_FDC';
  1895. // this.getWeatherDataToday();
  1896. }
  1897. if (this.address == '石板泉风电场') {
  1898. this.windStation = ['石板泉风电场', '麻黄山风电场', '牛首山风电场', '青山风电场', '香山风电场'];
  1899. this.windStationName = this.windStation[0].replace('风电场', '');
  1900. // this.windPowerStationId = 'SBQ_FDC';
  1901. // this.getWeatherDataToday();
  1902. }
  1903. if (this.address == '香山风电场') {
  1904. this.windStation = ['香山风电场', '麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场'];
  1905. this.windStationName = this.windStation[0].replace('风电场', '');
  1906. // this.windPowerStationId = 'XS_FDC';
  1907. // this.getWeatherDataToday();
  1908. }
  1909. if (this.address == '青山风电场') {
  1910. this.windStation = ['青山风电场', '麻黄山风电场', '牛首山风电场', '石板泉风电场', '香山风电场'];
  1911. this.windStationName = this.windStation[0].replace('风电场', '');
  1912. // this.windPowerStationId = 'QS_FDC';
  1913. // this.getWeatherDataToday();
  1914. }
  1915. this.windStationListHeight = this.windStation.length * 50 + 40 + 'px';
  1916. this.spopupWrapperHeight = this.windStation.length * 50 + 90 + 'px';
  1917. this.windowWidth = uni.getSystemInfoSync().windowWidth;
  1918. this.windowHeight = uni.getSystemInfoSync().windowHeight;
  1919. if (this.windowWidth >= 768) {
  1920. this.margintop="60px";
  1921. this.margintopThree="80px";
  1922. this.messageTop="10px";
  1923. this.fontSize="18px";
  1924. this.xianHeight="168px";
  1925. this.marginleftBiao="50px";
  1926. } else {
  1927. this.margintop="10px";
  1928. this.margintopThree="10px";
  1929. this.fontSize="14px";
  1930. this.xianHeight="92px";
  1931. this.marginleftBiao="26px";
  1932. }
  1933. this.heightToday = parseInt(uni.getSystemInfoSync().windowHeight - 450) + "px";
  1934. this.widthToday = parseInt(uni.getSystemInfoSync().windowWidth) + "px";
  1935. this.windowWidth7 = uni.getSystemInfoSync().windowWidth;
  1936. this.windowHeight7 = uni.getSystemInfoSync().windowHeight;
  1937. if(this.windowWidth7>=768){
  1938. this.margintop7="60px";
  1939. this.margintopThree7="80px";
  1940. this.messageTop7="10px";
  1941. this.fontSize7="18px";
  1942. this.xianHeight7="168px";
  1943. this.nightmarginleft7="20px";
  1944. }else{
  1945. this.margintop7="10px";
  1946. this.margintopThree7="10px";
  1947. this.fontSize7="14px";
  1948. this.xianHeight7="92px";
  1949. this.nightmarginleft7="20px";
  1950. }
  1951. this.height7 = parseInt(uni.getSystemInfoSync().windowHeight - 450) + "px";
  1952. this.width7 = parseInt(uni.getSystemInfoSync().windowWidth) + "px";
  1953. this.windowWidth8_15 = uni.getSystemInfoSync().windowWidth;
  1954. this.windowHeight8_15 = uni.getSystemInfoSync().windowHeight;
  1955. if(this.windowWidth8_15>=768){
  1956. this.width="99";
  1957. this.choiceFontSize="22px";
  1958. this.choiceMarginTop="27.5px";
  1959. this.xAxisFontSize=18;
  1960. this.seriesTextSize=18;
  1961. this.cardWidth=100;
  1962. this.cardHeight=130;
  1963. this.scrollHeight=(this.windowHeight8_15-550)+"px";
  1964. }
  1965. else{
  1966. this.width="100";
  1967. this.choiceFontSize="15px";
  1968. this.choiceMarginTop="0";
  1969. this.xAxisFontSize=12;
  1970. this.seriesTextSize=12;
  1971. this.cardWidth=100;
  1972. this.cardHeight=100;
  1973. this.scrollHeight=(this.windowHeight8_15-360)+"px";
  1974. }
  1975. this.windowWidth40 = uni.getSystemInfoSync().windowWidth;
  1976. this.windowHeight40 = uni.getSystemInfoSync().windowHeight;
  1977. if(this.windowWidth40>=768){
  1978. this.choiceFontSize40="22px";
  1979. this.choiceMarginTop40="27.5px";
  1980. this.xAxisFontSize40=18;
  1981. this.seriesTextSize40=18;
  1982. this.cardWidth40=100;
  1983. this.cardHeight40=130;
  1984. this.scrollListHeight40=(this.windowHeight40-550)+"px";
  1985. }else{
  1986. this.choiceFontSize40="15px";
  1987. this.choiceMarginTop40="0";
  1988. this.xAxisFontSize40=12;
  1989. this.seriesTextSize40=12;
  1990. this.cardWidth40=100;
  1991. this.cardHeight40=100;
  1992. this.scrollListHeight40=(this.windowHeight40-360)+"px";
  1993. }
  1994. },
  1995. onShow() {
  1996. this.windPowerStationId = uni.getStorageSync('windPowerStationId');
  1997. this.address = this.getWindPowerStationNameToSessionStorage();
  1998. if (this.address == '宁夏新能源公司') {
  1999. this.FDC = 'MHS_FDC';
  2000. }
  2001. if (this.address == '麻黄山风电场') {
  2002. this.FDC = 'MHS_FDC';
  2003. }
  2004. if (this.address == '牛首山风电场') {
  2005. this.FDC = 'NSS_FDC';
  2006. }
  2007. if (this.address == '石板泉风电场') {
  2008. this.FDC = 'SBQ_FDC';
  2009. }
  2010. if (this.address == '青山风电场') {
  2011. this.FDC = 'QS_FDC';
  2012. }
  2013. if (this.address == '香山风电场') {
  2014. this.FDC = 'XS_FDC';
  2015. }
  2016. this.getWeatherData();
  2017. this.getWeatherDataToday();
  2018. this.getWeatherData7();
  2019. },
  2020. onLoad: function() {
  2021. this.address = this.getWindPowerStationNameToSessionStorage();
  2022. this.cWidth = uni.upx2px(2000);
  2023. this.cHeight = uni.upx2px(350);
  2024. this.getServerData();
  2025. this.cWidth40 = uni.upx2px(5000);
  2026. this.cHeight40 = uni.upx2px(350);
  2027. this.getServerData40();
  2028. },
  2029. onHide() {
  2030. this.$refs.drawer.closeDrawer();
  2031. this.hideModal();
  2032. },
  2033. methods: {
  2034. openDrawer: function() {
  2035. this.outThreeLineDrawerIsShow=true;
  2036. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList);
  2037. },
  2038. closeDrawer: function() {
  2039. this.drawerIsShow = false;
  2040. },
  2041. showModal(e) {
  2042. this.modalName = e.currentTarget.dataset.target;
  2043. this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
  2044. },
  2045. hideModal() {
  2046. this.modalName = null;
  2047. this.$refs.plusDrawer.hideModal(this.modalName);
  2048. this.choiceIndex = -1;
  2049. },
  2050. onHide() {
  2051. this.$refs.drawer.closeDrawer();
  2052. this.hideModal();
  2053. },
  2054. choiceWindStation: function(item, index) {
  2055. this.choiceIndex = index;
  2056. this.windStationName = item.replace('风电场', '');
  2057. this.modalWindStationName = item.replace('风电场', '');
  2058. let _this = this;
  2059. setTimeout(function() {
  2060. // _this.hideModal();
  2061. _this.showCenterVisible = false;
  2062. _this.choiceIndex = -1;
  2063. _this.cardCur = index;
  2064. }, 1000);
  2065. if (this.windStationName == '麻黄山') {
  2066. this.FDC = 'MHS_FDC';
  2067. }
  2068. if (this.windStationName == '牛首山') {
  2069. this.FDC = 'NSS_FDC';
  2070. }
  2071. if (this.windStationName == '石板泉') {
  2072. this.FDC = 'SBQ_FDC';
  2073. }
  2074. if (this.windStationName == '青山') {
  2075. this.FDC = 'QS_FDC';
  2076. }
  2077. if (this.windStationName == '香山') {
  2078. this.FDC = 'XS_FDC';
  2079. }
  2080. if (this.weatherTodaybutton == true) {
  2081. this.getWeatherDataToday();
  2082. }
  2083. if (this.weatherSevendaybutton == true) {
  2084. this.getWeatherData7();
  2085. }
  2086. if (this.weatherFromeighttofifteendaysbutton == true) {
  2087. this.getWeatherData();
  2088. }
  2089. if (this.weatherFortydaysbutton == true) {
  2090. this.getWeatherData40();
  2091. }
  2092. },
  2093. cardSwiper(e) {
  2094. let _this = this;
  2095. this.cardCur = e.detail.current;
  2096. for (let i = 0; i < this.windStation.length; i++) {
  2097. if (this.cardCur == i) {
  2098. if (this.address == '宁夏新能源公司') {
  2099. this.windStationName = this.windStation[i].replace('风电场', '');
  2100. this.modalWindStationName = this.windStation[i].replace('风电场', '');
  2101. }
  2102. if (this.address.search('风电场') != -1) {
  2103. if (this.windStation[i].search('风电场') != -1) {
  2104. this.windStationName = this.windStation[i].replace('风电场', '');
  2105. } else {
  2106. this.windStationName = this.windStation[i];
  2107. }
  2108. this.modalWindStationName = this.windStation[i];
  2109. }
  2110. this.windMotorMatrixDetailAll = this.windMotorMatrixDetailMaHuagShan;
  2111. this.getWindMotorStatusCard();
  2112. this.clickWindMotorStatusCard(this.clickFlag);
  2113. this.getBackgroundColor();
  2114. this.showCardModal('Modal');
  2115. setTimeout(function() {
  2116. _this.hideCardModal();
  2117. }, 1000);
  2118. }
  2119. }
  2120. },
  2121. pushWindPowerStationNameToSessionStorage(windpowerstationName) {
  2122. uni.setStorageSync('windpowerstationName', windpowerstationName);
  2123. //sessionStorage.setItem('windpowerstationName', windpowerstationName);
  2124. //alert("v"+ sessionStorage.getItem("windpowerstationName"));
  2125. //this.common.goback('/pages/index/Index');
  2126. },
  2127. getWindPowerStationNameToSessionStorage() {
  2128. uni.getStorageSync('windpowerstationName');
  2129. return uni.getStorageSync('windpowerstationName');
  2130. },
  2131. getWeatherDataToday: function() {
  2132. //得到数据
  2133. let _this = this;
  2134. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  2135. // 按小时数据
  2136. this.socketTaskHour = uni.connectSocket({
  2137. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  2138. url: "ws://49.4.78.143:8081/websocket/pageNumber_3/functionNumber_2",
  2139. success(data) {
  2140. console.log("websocket连接成功");
  2141. },
  2142. });
  2143. // 今天数据
  2144. this.socketTaskToday = uni.connectSocket({
  2145. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  2146. url: "ws://49.4.78.143:8081/websocket/pageNumber_2/functionNumber_1",
  2147. success(data) {
  2148. console.log("websocket连接成功");
  2149. },
  2150. });
  2151. this.socketTaskToday.onOpen((res) => {
  2152. console.log("WebSocket连接正常打开中...!");
  2153. this.is_open_socket = true;
  2154. // 注:只有连接正常打开中 ,才能正常收到消息
  2155. this.socketTaskToday.onMessage((res) => {
  2156. //console.log("收到服务器内容:" + res.data);
  2157. _this.weatherProphetDataAll_1 = res.data;
  2158. _this.weatherProphetDataAll_1 = JSON.parse(res.data);
  2159. _this.weatherProphetData_1 = [];
  2160. //判断风场id 40天
  2161. for (let i = 0; i < _this.weatherProphetDataAll_1.length; i++) {
  2162. if (_this.weatherProphetDataAll_1[i].windpowerstationid == _this.FDC) {
  2163. _this.weatherProphetData_1.push(_this.weatherProphetDataAll_1[i]);
  2164. }
  2165. }
  2166. console.log(_this.weatherProphetData_1)
  2167. _this.$nextTick(function() {
  2168. if (_this.$refs.thermometerCard == undefined) {
  2169. } else {
  2170. _this.$refs.thermometerCard.getHourWeatherData("90", "260", _this.weatherProphetData_17Hour, _this.weatherProphetData_1);
  2171. }
  2172. })
  2173. });
  2174. })
  2175. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  2176. this.socketTaskHour.onOpen((res) => {
  2177. console.log("WebSocket连接正常打开中...!");
  2178. this.is_open_socket = true;
  2179. // 注:只有连接正常打开中 ,才能正常收到消息
  2180. this.socketTaskHour.onMessage((res) => {
  2181. //console.log("收到服务器内容:" + res.data);
  2182. _this.weatherProphetDataAll_17Hour = res.data;
  2183. _this.weatherProphetDataAll_17Hour = JSON.parse(res.data);
  2184. _this.weatherProphetData_17Hour = [];
  2185. //判断风场id 40天
  2186. for (let i1 = 0; i1 < _this.weatherProphetDataAll_17Hour.length; i1++) {
  2187. if (_this.weatherProphetDataAll_17Hour[i1].windpowerstationid == _this.FDC) {
  2188. _this.weatherProphetData_17Hour.push(_this.weatherProphetDataAll_17Hour[i1]);
  2189. }
  2190. }
  2191. // console.log(_this.weatherProphetData_17Hour)
  2192. _this.$nextTick(function() {
  2193. if (_this.$refs.thermometerCard == undefined) {
  2194. } else {
  2195. _this.$refs.thermometerCard.getHourWeatherData("90", "260", _this.weatherProphetData_17Hour, _this.weatherProphetData_1);
  2196. }
  2197. })
  2198. });
  2199. })
  2200. // 这里仅是事件监听【如果socket关闭了会执行】
  2201. this.socketTaskHour.onClose(() => {
  2202. console.log("已经被关闭了")
  2203. })
  2204. this.socketTaskToday.onClose(() => {
  2205. console.log("已经被关闭了")
  2206. })
  2207. },
  2208. getWeatherData7: function() {
  2209. let _this = this;
  2210. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  2211. this.socketTask7 = uni.connectSocket({
  2212. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  2213. url: "ws://49.4.78.143:8081/websocket/pageNumber_3/functionNumber_1",
  2214. success(data) {
  2215. console.log("websocket连接成功");
  2216. },
  2217. });
  2218. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  2219. this.socketTask7.onOpen((res) => {
  2220. console.log("WebSocket连接正常打开中...!");
  2221. this.is_open_socket = true;
  2222. // 注:只有连接正常打开中 ,才能正常收到消息
  2223. this.socketTask7.onMessage((res) => {
  2224. //console.log("收到服务器内容:" + res.data);
  2225. _this.weatherProphetDataAll_7 = res.data;
  2226. _this.weatherProphetDataAll_7 = JSON.parse(res.data);
  2227. _this.weatherProphetData_7 = [];
  2228. //判断风场id 40天
  2229. for (let i = 0; i < _this.weatherProphetDataAll_7.length; i++) {
  2230. if (_this.weatherProphetDataAll_7[i].windpowerstationid == _this.FDC) {
  2231. _this.weatherProphetData_7.push(_this.weatherProphetDataAll_7[i]);
  2232. }
  2233. }
  2234. // console.log(_this.weatherProphetData_7);
  2235. if (_this.$refs.WeatherTemperatureWindSpeedCard_7 == undefined) {
  2236. } else {
  2237. _this.$refs.WeatherTemperatureWindSpeedCard_7.weatherInformationCard('110', '100', _this.classNameDay7,
  2238. _this
  2239. .classNameNight7,
  2240. _this.weatherProphetData_7);
  2241. }
  2242. });
  2243. })
  2244. // 这里仅是事件监听【如果socket关闭了会执行】
  2245. this.socketTask7.onClose(() => {
  2246. console.log("已经被关闭了")
  2247. })
  2248. },
  2249. weatherDayNightSwitch: function(flag) {
  2250. if (flag == "day") {
  2251. this.weatherSwitch = true;
  2252. } else if (flag == "night") {
  2253. this.weatherSwitch = false;
  2254. }
  2255. },
  2256. getWeatherData: function() {
  2257. let _this = this;
  2258. this.socketTask8_15 = uni.connectSocket({
  2259. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  2260. url: "ws://49.4.78.143:8081/websocket/pageNumber_4/functionNumber_1",
  2261. success(data) {
  2262. console.log("websocket连接成功");
  2263. },
  2264. });
  2265. this.socketTask8_15.onOpen((res) => {
  2266. console.log("WebSocket连接正常打开中...!");
  2267. this.is_open_socket = true;
  2268. // 注:只有连接正常打开中 ,才能正常收到消息
  2269. this.socketTask8_15.onMessage((res) => {
  2270. _this.weatherProphetDataAll_8_15 = JSON.parse(res.data);
  2271. _this.weatherProphetData_8_15 = [];
  2272. //判断风场id 8~15天
  2273. for (let i = 0; i < _this.weatherProphetDataAll_8_15.length; i++) {
  2274. if (_this.weatherProphetDataAll_8_15[i].windpowerstationid == _this.FDC) {
  2275. _this.weatherProphetData_8_15.push(_this.weatherProphetDataAll_8_15[i]);
  2276. }
  2277. }
  2278. if (_this.$refs.weatherCalendarCardList8_15 == undefined) {
  2279. } else {
  2280. _this.$refs.weatherCalendarCardList8_15.getWeatherData(_this.width, "400", _this.weatherProphetData_8_15);
  2281. }
  2282. _this.getWeatherDataUchart();
  2283. })
  2284. })
  2285. this.socketTask8_15.onClose(() => {
  2286. console.log("已经被关闭了")
  2287. })
  2288. },
  2289. getWeatherDataUchart: function() {
  2290. let startMonth = new Date(this.weatherProphetData_8_15[0].recodedata).getMonth() + 1;
  2291. let startDay = new Date(this.weatherProphetData_8_15[0].recodedata).getDate();
  2292. this.startDate = startMonth + "月" + startDay + "日";
  2293. let endMonth = new Date(this.weatherProphetData_8_15[this.weatherProphetData_8_15.length - 1].recodedata).getMonth() +
  2294. 1;
  2295. let endDay = new Date(this.weatherProphetData_8_15[this.weatherProphetData_8_15.length - 1].recodedata).getDate();
  2296. this.endDate = endMonth + "月" + endDay + "日";
  2297. this.getServerData();
  2298. },
  2299. getWeatherData40: function() {
  2300. let _this = this;
  2301. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  2302. this.socketTask40 = uni.connectSocket({
  2303. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  2304. url: "ws://49.4.78.143:8081/websocket/pageNumber_5/functionNumber_1",
  2305. success(data) {
  2306. console.log("websocket连接成功");
  2307. },
  2308. });
  2309. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  2310. this.socketTask40.onOpen((res) => {
  2311. console.log("WebSocket连接正常打开中...!");
  2312. this.is_open_socket = true;
  2313. // 注:只有连接正常打开中 ,才能正常收到消息
  2314. this.socketTask40.onMessage((res) => {
  2315. //console.log("收到服务器内容:" + res.data);
  2316. _this.weatherProphetDataAll_40 = res.data;
  2317. _this.weatherProphetDataAll_40 = JSON.parse(res.data);
  2318. _this.weatherProphetData_40 = [];
  2319. //判断风场id 40天
  2320. for (let i = 0; i < _this.weatherProphetDataAll_40.length; i++) {
  2321. if (_this.weatherProphetDataAll_40[i].windpowerstationid == _this.FDC) {
  2322. _this.weatherProphetData_40.push(_this.weatherProphetDataAll_40[i]);
  2323. }
  2324. }
  2325. //console.log(_this.weatherProphetData_40);
  2326. let startMonth40 = new Date(_this.weatherProphetData_40[0].recodedata).getMonth() + 1;
  2327. let startDay40 = new Date(_this.weatherProphetData_40[0].recodedata).getDate();
  2328. _this.startDate40 = startMonth40 + "月" + startDay40 + "日";
  2329. let endMonth40 = new Date(_this.weatherProphetData_40[_this.weatherProphetData_40.length - 1].recodedata).getMonth() +
  2330. 1;
  2331. let endDay40 = new Date(_this.weatherProphetData_40[_this.weatherProphetData_40.length - 1].recodedata).getDate();
  2332. _this.endDate40 = endMonth40 + "月" + endDay40 + "日";
  2333. if (_this.$refs.weatherCalendarCardList40 == undefined) {
  2334. } else {
  2335. _this.$refs.weatherCalendarCardList40.getWeatherData40(this.cardWidth40, this.cardHeight40, _this.weatherProphetData_40);
  2336. }
  2337. _this.getServerData40();
  2338. });
  2339. })
  2340. // 这里仅是事件监听【如果socket关闭了会执行】
  2341. this.socketTask40.onClose(() => {
  2342. console.log("已经被关闭了")
  2343. })
  2344. },
  2345. realFeelSwitch() {
  2346. this.realFeelFlag = true;
  2347. this.temperatureFlag = false;
  2348. this.speedFlag = false;
  2349. this.getServerData();
  2350. },
  2351. temperatureSwitch() {
  2352. this.realFeelFlag = false;
  2353. this.temperatureFlag = true;
  2354. this.speedFlag = false;
  2355. this.getServerData();
  2356. },
  2357. speedSwitch() {
  2358. this.realFeelFlag = false;
  2359. this.temperatureFlag = false;
  2360. this.speedFlag = true;
  2361. this.getServerData();
  2362. },
  2363. realFeelSwitch40() {
  2364. this.realFeelFlag40 = true;
  2365. this.temperatureFlag40 = false;
  2366. this.speedFlag40 = false;
  2367. this.getServerData40();
  2368. },
  2369. temperatureSwitch40() {
  2370. this.realFeelFlag40 = false;
  2371. this.temperatureFlag40 = true;
  2372. this.speedFlag40 = false;
  2373. this.getServerData40();
  2374. },
  2375. speedSwitch40() {
  2376. this.realFeelFlag40 = false;
  2377. this.temperatureFlag40 = false;
  2378. this.speedFlag40 = true;
  2379. this.getServerData40();
  2380. },
  2381. getServerData() {
  2382. let LineA = {
  2383. categories: ['02/21', '02/22', '02/23', '02/24', '02/25', '02/26', '02/27'],
  2384. series: [{
  2385. name: '体感温度',
  2386. data: [12, 13, 12, 11, 16, 14, 12],
  2387. color: '#F3F3F3',
  2388. textColor: '#FFFFFF',
  2389. textSize: this.seriesTextSize,
  2390. format: (val) => {
  2391. return val + '℃'
  2392. }
  2393. }, {
  2394. name: '温度',
  2395. data: [70, 40, 65, 100, 44, 68],
  2396. color: '#FFFFFF',
  2397. textColor: "#FFFFFF",
  2398. textSize: this.seriesTextSize,
  2399. format: (val) => {
  2400. return val + '℃'
  2401. }
  2402. }, {
  2403. name: '风速',
  2404. data: [100, 80, 95, 150, 112, 132],
  2405. color: '#FFFFFF',
  2406. textColor: "#FFFFFF",
  2407. textSize: this.seriesTextSize,
  2408. format: (val) => {
  2409. return val + 'km/h'
  2410. }
  2411. }]
  2412. };
  2413. LineA.categories = [];
  2414. LineA.series[0].data = [];
  2415. LineA.series[1].data = [];
  2416. LineA.series[2].data = [];
  2417. if (this.realFeelFlag) {
  2418. for (let i = 0; i < this.weatherProphetData_8_15.length; i++) {
  2419. let xAxisMonth = new Date(this.weatherProphetData_8_15[i].recodedata).getMonth() + 1;
  2420. let xAxisData = new Date(this.weatherProphetData_8_15[i].recodedata).getDate();
  2421. if (xAxisMonth < 10) {
  2422. xAxisMonth = "0" + xAxisMonth;
  2423. }
  2424. if (xAxisData < 10) {
  2425. xAxisData = "0" + xAxisData;
  2426. }
  2427. LineA.categories.push(xAxisMonth + '/' + xAxisData);
  2428. LineA.series[0].data.push(this.weatherProphetData_8_15[i].realfeel1);
  2429. }
  2430. } else if (this.temperatureFlag) {
  2431. for (let i = 0; i < this.weatherProphetData_8_15.length; i++) {
  2432. let xAxisMonth = new Date(this.weatherProphetData_8_15[i].recodedata).getMonth() + 1;
  2433. let xAxisData = new Date(this.weatherProphetData_8_15[i].recodedata).getDate();
  2434. if (xAxisMonth < 10) {
  2435. xAxisMonth = "0" + xAxisMonth;
  2436. }
  2437. if (xAxisData < 10) {
  2438. xAxisData = "0" + xAxisData;
  2439. }
  2440. LineA.categories.push(xAxisMonth + '/' + xAxisData);
  2441. LineA.series[1].data.push(this.weatherProphetData_8_15[i].temperature1);
  2442. }
  2443. } else if (this.speedFlag) {
  2444. for (let i = 0; i < this.weatherProphetData_8_15.length; i++) {
  2445. let xAxisMonth = new Date(this.weatherProphetData_8_15[i].recodedata).getMonth() + 1;
  2446. let xAxisData = new Date(this.weatherProphetData_8_15[i].recodedata).getDate();
  2447. if (xAxisMonth < 10) {
  2448. xAxisMonth = "0" + xAxisMonth;
  2449. }
  2450. if (xAxisData < 10) {
  2451. xAxisData = "0" + xAxisData;
  2452. }
  2453. LineA.categories.push(xAxisMonth + '/' + xAxisData);
  2454. LineA.series[2].data.push(this.weatherProphetData_8_15[i].speed1);
  2455. }
  2456. }
  2457. //LineA.categories=res.data.data.LineA.categories;
  2458. // LineA.series=res.data.data.LineA.series;
  2459. this.showLineA("canvasLineA", LineA);
  2460. },
  2461. showLineA(canvasId, chartData) {
  2462. var _self = this;
  2463. var canvaLineA = new uCharts({
  2464. $this: _self,
  2465. canvasId: canvasId,
  2466. type: 'line',
  2467. fontSize: 11,
  2468. legend: {
  2469. show: false
  2470. },
  2471. dataLabel: true,
  2472. dataPointShape: true,
  2473. background: '#FFFFFF',
  2474. pixelRatio: _self.pixelRatio,
  2475. categories: chartData.categories,
  2476. series: chartData.series,
  2477. animation: true,
  2478. xAxis: {
  2479. disableGrid: true,
  2480. type: 'grid',
  2481. fontColor: '#FFFFFF',
  2482. gridColor: '#FFFFFF',
  2483. gridType: 'dash',
  2484. dashLength: 1,
  2485. fontSize: _self.xAxisFontSize
  2486. },
  2487. yAxis: {
  2488. disableGrid: true,
  2489. gridType: 'dash',
  2490. gridColor: '#CCCCCC',
  2491. dashLength: 1,
  2492. disabled: true,
  2493. splitNumber: 5,
  2494. min: -40,
  2495. max: 50,
  2496. },
  2497. width: _self.cWidth * _self.pixelRatio,
  2498. height: _self.cHeight * _self.pixelRatio,
  2499. extra: {
  2500. line: {
  2501. type: 'straight'
  2502. }
  2503. }
  2504. });
  2505. },
  2506. getServerData40() {
  2507. let LineA40 = {
  2508. categories: ['2012', '2013', '2014', '2015', '2016', '2017'],
  2509. series: [{
  2510. name: '体感温度',
  2511. data: [35, 20, 25, 37, 4, 20],
  2512. color: '#FFFFFF',
  2513. textColor: "#FFFFFF",
  2514. textSize: this.seriesTextSize40,
  2515. format: (val) => {
  2516. return val + '℃'
  2517. }
  2518. }, {
  2519. name: '温度',
  2520. data: [70, 40, 65, 100, 44, 68],
  2521. color: '#FFFFFF',
  2522. textColor: "#FFFFFF",
  2523. textSize: this.seriesTextSize40,
  2524. format: (val) => {
  2525. return val + '℃'
  2526. }
  2527. }, {
  2528. name: '风速',
  2529. data: [100, 80, 95, 150, 112, 132],
  2530. color: '#FFFFFF',
  2531. textColor: "#FFFFFF",
  2532. textSize: this.seriesTextSize40,
  2533. format: (val) => {
  2534. return val + 'km/h'
  2535. }
  2536. }]
  2537. };
  2538. LineA40.categories = [];
  2539. LineA40.series[0].data = [];
  2540. LineA40.series[1].data = [];
  2541. LineA40.series[2].data = [];
  2542. if (this.realFeelFlag40) {
  2543. for (let i = 0; i < this.weatherProphetData_40.length; i++) {
  2544. let xAxisMonth40 = new Date(this.weatherProphetData_40[i].recodedata).getMonth() + 1;
  2545. let xAxisData40 = new Date(this.weatherProphetData_40[i].recodedata).getDate();
  2546. if (xAxisMonth40 < 10) {
  2547. xAxisMonth40 = "0" + xAxisMonth40;
  2548. }
  2549. if (xAxisData40 < 10) {
  2550. xAxisData40 = "0" + xAxisData40;
  2551. }
  2552. LineA40.categories.push(xAxisMonth40 + '/' + xAxisData40);
  2553. LineA40.series[0].data.push(this.weatherProphetData_40[i].realfeel1);
  2554. }
  2555. } else if (this.temperatureFlag40) {
  2556. for (let i = 0; i < this.weatherProphetData_40.length; i++) {
  2557. let xAxisMonth40 = new Date(this.weatherProphetData_40[i].recodedata).getMonth() + 1;
  2558. let xAxisData40 = new Date(this.weatherProphetData_40[i].recodedata).getDate();
  2559. if (xAxisMonth40 < 10) {
  2560. xAxisMonth40 = "0" + xAxisMonth40;
  2561. }
  2562. if (xAxisData40 < 10) {
  2563. xAxisData40 = "0" + xAxisData40;
  2564. }
  2565. LineA40.categories.push(xAxisMonth40 + '/' + xAxisData40);
  2566. LineA40.series[1].data.push(this.weatherProphetData_40[i].temperature1);
  2567. }
  2568. } else if (this.speedFlag40) {
  2569. for (let i = 0; i < this.weatherProphetData_40.length; i++) {
  2570. let xAxisMonth40 = new Date(this.weatherProphetData_40[i].recodedata).getMonth() + 1;
  2571. let xAxisData40 = new Date(this.weatherProphetData_40[i].recodedata).getDate();
  2572. if (xAxisMonth40 < 10) {
  2573. xAxisMonth40 = "0" + xAxisMonth40;
  2574. }
  2575. if (xAxisData40 < 10) {
  2576. xAxisData40 = "0" + xAxisData40;
  2577. }
  2578. LineA40.categories.push(xAxisMonth40 + '/' + xAxisData40);
  2579. LineA40.series[2].data.push(this.weatherProphetData_40[i].speed1);
  2580. }
  2581. }
  2582. this.showLineA40("canvasLineA40", LineA40);
  2583. },
  2584. showLineA40(canvasId, chartData) {
  2585. var _self = this;
  2586. var canvaLineA40 = new uCharts({
  2587. $this: _self,
  2588. canvasId: canvasId,
  2589. type: 'line',
  2590. fontSize: 11,
  2591. legend: {
  2592. show: false
  2593. }, //图例
  2594. dataLabel: true, //数据点标签
  2595. dataPointShape: true,
  2596. background: '#FFFFFF',
  2597. pixelRatio: _self.pixelRatio40,
  2598. categories: chartData.categories,
  2599. series: chartData.series,
  2600. animation: true,
  2601. xAxis: {
  2602. type: 'grid',
  2603. gridColor: '#CCCCCC',
  2604. gridType: 'dash',
  2605. dashLength: 8,
  2606. disableGrid: true, //网格线
  2607. axisLine: true, //x轴轴线
  2608. fontColor: "#FFFFFF",
  2609. fontSize: _self.xAxisFontSize40
  2610. },
  2611. yAxis: {
  2612. data: {
  2613. disabled: false //y轴轴线
  2614. },
  2615. disableGrid: true, //网格线
  2616. gridType: 'dash',
  2617. gridColor: '#CCCCCC',
  2618. dashLength: 8,
  2619. splitNumber: 5,
  2620. min: -40,
  2621. max: 50,
  2622. format: (val) => {
  2623. return val.toFixed(0) + '元'
  2624. }
  2625. },
  2626. width: _self.cWidth40 * _self.pixelRatio40,
  2627. height: _self.cHeight40 * _self.pixelRatio40,
  2628. padding: [0, 0, 10, -30], //画布填充边距,顺序为上右下左,同css,但必须4位
  2629. extra: {
  2630. line: {
  2631. type: 'curve' //曲线
  2632. }
  2633. }
  2634. });
  2635. },
  2636. uChartsScrollEvent(e) {
  2637. this.scrollposition = e.detail.scrollLeft;
  2638. // let scrollposition2 = scrollposition*0.98;
  2639. },
  2640. listScrollEvent(e) {
  2641. this.scrollposition = e.detail.scrollTop;
  2642. },
  2643. uChartsScrollEvent40(e) {
  2644. this.scrollposition_uCharts = e.detail.scrollLeft;
  2645. if (e.detail.scrollLeft < 237) {
  2646. this.scrollposition_list = 0;
  2647. } else if (e.detail.scrollLeft < 487 && e.detail.scrollLeft > 237) {
  2648. this.scrollposition_list = 104;
  2649. } else if (e.detail.scrollLeft < 737 && e.detail.scrollLeft > 487) {
  2650. this.scrollposition_list = 208;
  2651. } else if (e.detail.scrollLeft < 987 && e.detail.scrollLeft > 737) {
  2652. this.scrollposition_list = 312;
  2653. } else if (e.detail.scrollLeft < 1237 && e.detail.scrollLeft > 987) {
  2654. this.scrollposition_list = 416;
  2655. } else if (e.detail.scrollLeft < 1487 && e.detail.scrollLeft > 1237) {
  2656. this.scrollposition_list = 520;
  2657. } else if (e.detail.scrollLeft < 1737 && e.detail.scrollLeft > 1487) {
  2658. this.scrollposition_list = 624;
  2659. } else if (e.detail.scrollLeft > 1737) {
  2660. this.scrollposition_list = 656;
  2661. }
  2662. },
  2663. listScrollEvent40(e) {
  2664. this.scrollposition_list = e.detail.scrollTop;
  2665. if (e.detail.scrollTop < 104) {
  2666. this.scrollposition_uCharts = 0;
  2667. } else if (e.detail.scrollTop < 208 && e.detail.scrollTop > 104) {
  2668. this.scrollposition_uCharts = 237;
  2669. } else if (e.detail.scrollTop < 312 && e.detail.scrollTop > 208) {
  2670. this.scrollposition_uCharts = 487;
  2671. } else if (e.detail.scrollTop < 416 && e.detail.scrollTop > 312) {
  2672. this.scrollposition_uCharts = 737;
  2673. } else if (e.detail.scrollTop < 520 && e.detail.scrollTop > 416) {
  2674. this.scrollposition_uCharts = 987;
  2675. } else if (e.detail.scrollTop < 624 && e.detail.scrollTop > 520) {
  2676. this.scrollposition_uCharts = 1237;
  2677. } else if (e.detail.scrollTop < 656 && e.detail.scrollTop > 624) {
  2678. this.scrollposition_uCharts = 1487;
  2679. }
  2680. },
  2681. changeTap: function(item) {
  2682. this.weatherInformation = JSON.parse(item); //vue json转object
  2683. },
  2684. weatherDaySwitch7: function() {
  2685. this.weatherSwitch7 = true;
  2686. },
  2687. weatherNightSwitch7: function() {
  2688. this.weatherSwitch7 = false;
  2689. },
  2690. closeSocket: function() {
  2691. this.socket.onclose;
  2692. },
  2693. openSocket: function() {
  2694. this.socket.onOpen;
  2695. },
  2696. weatherToday() {
  2697. this.weatherSevendaybutton = false;
  2698. this.weatherFromeighttofifteendaysbutton = false;
  2699. this.weatherFortydaysbutton = false;
  2700. this.$nextTick(function() {
  2701. this.weatherTodaybutton = true;
  2702. this.getWeatherDataToday();
  2703. });
  2704. },
  2705. weatherSevenday() {
  2706. this.weatherTodaybutton = false;
  2707. this.weatherFromeighttofifteendaysbutton = false;
  2708. this.weatherFortydaysbutton = false;
  2709. this.$nextTick(function() {
  2710. this.weatherSevendaybutton = true;
  2711. this.getWeatherData7();
  2712. })
  2713. },
  2714. weatherFromeighttofifteendays() {
  2715. this.weatherTodaybutton = false;
  2716. this.weatherSevendaybutton = false;
  2717. this.weatherFortydaysbutton = false;
  2718. this.$nextTick(function() {
  2719. this.weatherFromeighttofifteendaysbutton = true;
  2720. this.getWeatherData();
  2721. })
  2722. },
  2723. weatherFortydays() {
  2724. this.weatherTodaybutton = false;
  2725. this.weatherSevendaybutton = false;
  2726. this.weatherFromeighttofifteendaysbutton = false;
  2727. this.$nextTick(function() {
  2728. this.weatherFortydaysbutton = true;
  2729. this.getWeatherData40();
  2730. })
  2731. },
  2732. },
  2733. }
  2734. </script>
  2735. <style>
  2736. body {
  2737. font-family: '方正兰亭细黑_GBK';
  2738. font-size: 12px;
  2739. color: silver;
  2740. background: #000;
  2741. }
  2742. @font-face {
  2743. font-family: '方正兰亭细黑_GBK';
  2744. src: url(../../static/fzltxh.TTF);
  2745. }
  2746. page {
  2747. background-color: #1f1f1f;
  2748. font-family: '方正兰亭细黑_GBK';
  2749. overflow-x: hidden;
  2750. overflow-y: hidden;
  2751. }
  2752. .notice {
  2753. width: 50px;
  2754. height: 45px;
  2755. float: left;
  2756. }
  2757. .icon{
  2758. font-size: 40upx;
  2759. }
  2760. .plus {
  2761. width: 30px;
  2762. height: 45px;
  2763. float: right;
  2764. color: white;
  2765. font-size: 35px;
  2766. line-height: 45px;
  2767. text-align: right;
  2768. margin-right: 2.5%;
  2769. }
  2770. .DrawerPage {
  2771. position: fixed;
  2772. width: 100vw;
  2773. height: 100vh;
  2774. left: 0vw;
  2775. background-color: #1f1f1f;
  2776. transition: all 0.4s;
  2777. }
  2778. .DrawerPage.show {
  2779. transform: scale(0.9, 0.9);
  2780. left: 85vw;
  2781. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  2782. transform-origin: 0;
  2783. }
  2784. .DrawerWindow {
  2785. position: absolute;
  2786. width: 85vw;
  2787. height: 100vh;
  2788. left: 0;
  2789. top: 0;
  2790. transform: scale(0.9, 0.9) translateX(-100%);
  2791. opacity: 0;
  2792. pointer-events: none;
  2793. transition: all 0.4s;
  2794. padding: 100upx 0;
  2795. }
  2796. .DrawerWindow.show {
  2797. transform: scale(1, 1) translateX(0%);
  2798. opacity: 1;
  2799. pointer-events: all;
  2800. }
  2801. .DrawerClose {
  2802. position: absolute;
  2803. width: 40vw;
  2804. height: 100vh;
  2805. right: 0;
  2806. top: 0;
  2807. color: transparent;
  2808. padding-bottom: 30upx;
  2809. display: flex;
  2810. align-items: flex-end;
  2811. justify-content: center;
  2812. background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.6));
  2813. letter-spacing: 5px;
  2814. font-size: 50upx;
  2815. opacity: 0;
  2816. pointer-events: none;
  2817. transition: all 0.4s;
  2818. }
  2819. .DrawerClose.show {
  2820. opacity: 1;
  2821. pointer-events: all;
  2822. width: 15vw;
  2823. color: #fff;
  2824. }
  2825. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  2826. width: 64upx;
  2827. height: 64upx;
  2828. line-height: 64upx;
  2829. margin: 0;
  2830. display: inline-block;
  2831. }
  2832. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  2833. margin: 0;
  2834. }
  2835. .DrawerPage .nav {
  2836. flex: 1;
  2837. }
  2838. .DrawerPage .nav .cu-item.cur {
  2839. border-bottom: 0;
  2840. position: relative;
  2841. }
  2842. .DrawerPage .nav .cu-item.cur::after {
  2843. content: '';
  2844. width: 10upx;
  2845. height: 10upx;
  2846. background-color: currentColor;
  2847. position: absolute;
  2848. bottom: 10upx;
  2849. border-radius: 10upx;
  2850. left: 0;
  2851. right: 0;
  2852. margin: auto;
  2853. }
  2854. .DrawerPage .cu-bar.tabbar .action {
  2855. flex: initial;
  2856. }
  2857. .clickThedaystab {
  2858. width: 100%;
  2859. height: 40px;
  2860. background-color: #242424;
  2861. }
  2862. .weatherToday {
  2863. width: 25%;
  2864. height: 40px;
  2865. float: left;
  2866. text-align: center;
  2867. line-height: 40px;
  2868. color: #DEDFE3;
  2869. }
  2870. .weatherTodaywhite {
  2871. width: 25%;
  2872. height: 40px;
  2873. float: left;
  2874. text-align: center;
  2875. line-height: 40px;
  2876. color: white;
  2877. background-color: #3B3B3B;
  2878. }
  2879. .weatherSevenday {
  2880. width: 25%;
  2881. height: 40px;
  2882. float: left;
  2883. text-align: center;
  2884. line-height: 40px;
  2885. color: #DEDFE3;
  2886. }
  2887. .weatherSevendaywhite {
  2888. width: 25%;
  2889. height: 40px;
  2890. float: left;
  2891. text-align: center;
  2892. line-height: 40px;
  2893. color: white;
  2894. background-color: #3B3B3B;
  2895. }
  2896. .weatherFromeighttofifteendays {
  2897. width: 25%;
  2898. height: 40px;
  2899. float: left;
  2900. text-align: center;
  2901. line-height: 40px;
  2902. color: #DEDFE3;
  2903. }
  2904. .weatherFromeighttofifteendayswhite {
  2905. width: 25%;
  2906. height: 40px;
  2907. float: left;
  2908. text-align: center;
  2909. line-height: 40px;
  2910. color: white;
  2911. background-color: #3B3B3B;
  2912. }
  2913. .weatherFortydays {
  2914. width: 25%;
  2915. height: 40px;
  2916. float: left;
  2917. text-align: center;
  2918. line-height: 40px;
  2919. color: #DEDFE3;
  2920. }
  2921. .weatherFortydayswhite {
  2922. width: 25%;
  2923. height: 40px;
  2924. float: left;
  2925. text-align: center;
  2926. line-height: 40px;
  2927. color: white;
  2928. background-color: #3B3B3B;
  2929. }
  2930. .cardContenter {
  2931. border-radius: 20px;
  2932. margin-left: 20px;
  2933. width: 90%;
  2934. height: 450upx;
  2935. background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#024F93), color-stop(1.5, #cccccc), to(#437193));
  2936. background: rgba(0, 0, 0, 0.1);
  2937. }
  2938. .weather8_15 {
  2939. width: 100%;
  2940. height: 100upx;
  2941. }
  2942. .weather8_15_text {
  2943. width: 40%;
  2944. height: 100upx;
  2945. line-height: 100upx;
  2946. color: white;
  2947. margin-left: 5px;
  2948. float: left;
  2949. }
  2950. .leftInnerMatrix {
  2951. width: 100%;
  2952. height: 100%;
  2953. }
  2954. .qiun-charts {
  2955. width: 2000upx;
  2956. height: 350upx;
  2957. }
  2958. .charts {
  2959. width: 2000upx;
  2960. height: 350upx;
  2961. }
  2962. .choice {
  2963. width: calc(60% - 5px);
  2964. height: 100upx;
  2965. float: right;
  2966. }
  2967. .realFeelButtonWhite {
  2968. height: 37px;
  2969. line-height: 44px;
  2970. color: white;
  2971. font-size: 15px;
  2972. border-style: solid;
  2973. border-top-width: 0px;
  2974. border-right-width: 0px;
  2975. border-bottom-width: 3px;
  2976. border-bottom-color: #FFEE35;
  2977. border-left-width: 0px;
  2978. font-family: "microsoft yahei";
  2979. float: right;
  2980. }
  2981. .realFeelButtonBlack {
  2982. height: 37px;
  2983. line-height: 44px;
  2984. color: #DEDEDE;
  2985. font-size: 15px;
  2986. font-family: "microsoft yahei";
  2987. float: right;
  2988. }
  2989. .temperatureButtonWhite {
  2990. height: 37px;
  2991. line-height: 44px;
  2992. margin-left: 20px;
  2993. color: white;
  2994. font-size: 15px;
  2995. border-style: solid;
  2996. border-top-width: 0px;
  2997. border-right-width: 0px;
  2998. border-bottom-width: 3px;
  2999. border-bottom-color: #FFEE35;
  3000. border-left-width: 0px;
  3001. font-family: "microsoft yahei";
  3002. float: right;
  3003. }
  3004. .temperatureButtonBlack {
  3005. height: 37px;
  3006. line-height: 44px;
  3007. margin-left: 20px;
  3008. color: #DEDEDE;
  3009. font-size: 15px;
  3010. font-family: "microsoft yahei";
  3011. float: right;
  3012. }
  3013. .speedButtonWhite {
  3014. height: 37px;
  3015. line-height: 44px;
  3016. margin-left: 20px;
  3017. margin-right: 20px;
  3018. color: white;
  3019. font-size: 15px;
  3020. border-style: solid;
  3021. border-top-width: 0px;
  3022. border-right-width: 0px;
  3023. border-bottom-width: 3px;
  3024. border-bottom-color: #FFEE35;
  3025. border-left-width: 0px;
  3026. font-family: "microsoft yahei";
  3027. float: right;
  3028. }
  3029. .speedButtonBlack {
  3030. height: 37px;
  3031. line-height: 44px;
  3032. margin-left: 20px;
  3033. margin-right: 20px;
  3034. color: #DEDEDE;
  3035. font-size: 15px;
  3036. font-family: "microsoft yahei";
  3037. float: right;
  3038. }
  3039. .scrollUcharts {
  3040. white-space: nowrap;
  3041. }
  3042. .scrollList {
  3043. height: 380px;
  3044. }
  3045. .cardContenter40 {
  3046. border-radius: 20px;
  3047. margin-left: 20px;
  3048. width: 90%;
  3049. height: 450upx;
  3050. background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#024F93), color-stop(1.5, #cccccc), to(#437193));
  3051. background: rgba(0, 0, 0, 0.1);
  3052. }
  3053. .dateAndChoice {
  3054. width: 100%;
  3055. height: 100upx;
  3056. }
  3057. .date {
  3058. width: 40%;
  3059. height: 100upx;
  3060. line-height: 100upx;
  3061. color: white;
  3062. margin-left: 5px;
  3063. float: left;
  3064. }
  3065. .choice40 {
  3066. width: calc(60% - 5px);
  3067. height: 100upx;
  3068. float: right;
  3069. }
  3070. .realFeelButtonWhite40 {
  3071. height: 37px;
  3072. line-height: 44px;
  3073. color: white;
  3074. font-size: 15px;
  3075. border-style: solid;
  3076. border-top-width: 0px;
  3077. border-right-width: 0px;
  3078. border-bottom-width: 3px;
  3079. border-bottom-color: #FFEE35;
  3080. border-left-width: 0px;
  3081. font-family: "microsoft yahei";
  3082. float: right;
  3083. }
  3084. .realFeelButtonBlack40 {
  3085. height: 37px;
  3086. // margin-top: 3px;
  3087. line-height: 44px;
  3088. /* margin-left: 20px; */
  3089. color: #DEDEDE;
  3090. font-size: 15px;
  3091. font-family: "microsoft yahei";
  3092. float: right;
  3093. }
  3094. .temperatureButtonWhite40 {
  3095. height: 37px;
  3096. // margin-top: 3px;
  3097. line-height: 44px;
  3098. margin-left: 20px;
  3099. color: white;
  3100. font-size: 15px;
  3101. border-style: solid;
  3102. border-top-width: 0px;
  3103. border-right-width: 0px;
  3104. border-bottom-width: 3px;
  3105. border-bottom-color: #FFEE35;
  3106. border-left-width: 0px;
  3107. font-family: "microsoft yahei";
  3108. float: right;
  3109. }
  3110. .temperatureButtonBlack40 {
  3111. height: 37px;
  3112. line-height: 44px;
  3113. margin-left: 20px;
  3114. color: #DEDEDE;
  3115. font-size: 15px;
  3116. font-family: "microsoft yahei";
  3117. float: right;
  3118. }
  3119. .speedButtonWhite40 {
  3120. height: 37px;
  3121. line-height: 44px;
  3122. margin-left: 20px;
  3123. margin-right: 20px;
  3124. color: white;
  3125. font-size: 15px;
  3126. border-style: solid;
  3127. border-top-width: 0px;
  3128. border-right-width: 0px;
  3129. border-bottom-width: 3px;
  3130. border-bottom-color: #FFEE35;
  3131. border-left-width: 0px;
  3132. font-family: "microsoft yahei";
  3133. float: right;
  3134. }
  3135. .speedButtonBlack40 {
  3136. height: 37px;
  3137. line-height: 44px;
  3138. margin-left: 20px;
  3139. margin-right: 20px;
  3140. color: #DEDEDE;
  3141. font-size: 15px;
  3142. font-family: "microsoft yahei";
  3143. float: right;
  3144. }
  3145. .scrollUcharts40 {
  3146. white-space: nowrap;
  3147. }
  3148. .scrollList40 {
  3149. height: 330px;
  3150. }
  3151. .qiun-charts40 {
  3152. width: 5000upx;
  3153. height: 350upx;
  3154. float: left;
  3155. }
  3156. .charts40 {
  3157. width: 5000upx;
  3158. height: 350upx;
  3159. }
  3160. .windStationNameAndChoice {
  3161. clear: both;
  3162. width: 100%;
  3163. height: 30px;
  3164. margin-top: 1%;
  3165. color: silver;
  3166. /* border: 1px solid red; */
  3167. }
  3168. .windStationName {
  3169. width: 50%;
  3170. height: 100%;
  3171. float: left;
  3172. line-height: 30px;
  3173. font-size: 14px;
  3174. margin-left: 9.5%;
  3175. }
  3176. .windStationChoice {
  3177. width: 20%;
  3178. height: 100%;
  3179. float: right;
  3180. text-align: right;
  3181. line-height: 30px;
  3182. font-size: 14px;
  3183. margin-right: 5%;
  3184. }
  3185. .s-popup-wrapper {
  3186. width: 500rpx;
  3187. background-color: #f0f0f0;
  3188. }
  3189. .s-popup-title {
  3190. width: 100%;
  3191. height: 50px;
  3192. background-color: #211E21;
  3193. }
  3194. .s-popup-word {
  3195. width: calc(100% - 65px);
  3196. height: 50px;
  3197. font-size: 14px;
  3198. color: white;
  3199. line-height: 50px;
  3200. float: left;
  3201. margin-left: 25px;
  3202. }
  3203. .s-popup-cha {
  3204. width: 40px;
  3205. height: 50px;
  3206. text-align: center;
  3207. line-height: 50px;
  3208. float: right;
  3209. font-size: 24px;
  3210. }
  3211. .windStationItemContainer {
  3212. width: 100%;
  3213. }
  3214. .windStationItemContainerBlack {
  3215. width: 100%;
  3216. background-color: grey;
  3217. color: white;
  3218. }
  3219. .windStationItem {
  3220. width: 80%;
  3221. height: 50px;
  3222. border-bottom: 1px solid #c8c8c8;
  3223. text-align: left;
  3224. line-height: 50px;
  3225. margin-left: 10%;
  3226. color: #333333;
  3227. }
  3228. .weatherDaytimegrid {
  3229. width: 100%;
  3230. height: 200px;
  3231. float: left;
  3232. margin-top: 1%;
  3233. }
  3234. .weatherNocturnalgrid {
  3235. width: 100%;
  3236. height: 130px;
  3237. float: left;
  3238. margin-top: 1%;
  3239. }
  3240. .weatherDetails {
  3241. margin-top: 0%;
  3242. width: 100%;
  3243. height: 25px;
  3244. float: left;
  3245. }
  3246. .weatherText {
  3247. width: 20%;
  3248. height: 25px;
  3249. float: left;
  3250. font-size: 14px;
  3251. color: white;
  3252. margin-left: 9.5%;
  3253. }
  3254. .detailsText {
  3255. width: 20%;
  3256. height: 25px;
  3257. float: right;
  3258. font-size: 14px;
  3259. color: white;
  3260. margin-right: 5.5%;
  3261. text-align: right;
  3262. }
  3263. .ThermometerCard {
  3264. margin-top: -10%;
  3265. height: 308px;
  3266. width: 100%;
  3267. }
  3268. .border-left {
  3269. border-style: solid;
  3270. border-top-width: 0px;
  3271. border-right-width: 1px;
  3272. border-bottom-width: 0px;
  3273. border-left-width: 0px;
  3274. border-right-color: white;
  3275. }
  3276. .border-right {
  3277. border-style: solid;
  3278. border-top-width: 0px;
  3279. border-right-width: 0px;
  3280. border-bottom-width: 0px;
  3281. border-left-width: 0px;
  3282. border-right-color: #19B5BC;
  3283. }
  3284. .scrollList {
  3285. // height:20%;
  3286. height: 130px;
  3287. width: 95%;
  3288. margin: 0px auto;
  3289. }
  3290. .dayButtonWhite {
  3291. height: 25px;
  3292. margin-top: -4px;
  3293. margin-left: 20px;
  3294. color: white;
  3295. font-size: 18px;
  3296. border-style: solid;
  3297. border-top-width: 0px;
  3298. border-right-width: 0px;
  3299. border-bottom-width: 3px;
  3300. border-bottom-color: #FFEE35;
  3301. border-left-width: 0px;
  3302. font-family: "microsoft yahei";
  3303. float: left;
  3304. }
  3305. .dayButtonBlack {
  3306. height: 25px;
  3307. margin-top: -4px;
  3308. margin-left: 20px;
  3309. color: #DEDEDE;
  3310. font-size: 18px;
  3311. font-family: "microsoft yahei";
  3312. float: left;
  3313. }
  3314. .nightButtonWhite {
  3315. height: 25px;
  3316. margin-top: -4px;
  3317. border-style: solid;
  3318. border-top-width: 0px;
  3319. border-right-width: 0px;
  3320. border-bottom-width: 3px;
  3321. border-left-width: 0px;
  3322. border-bottom-color: #FFEE35;
  3323. color: white;
  3324. margin-left: 50rpx;
  3325. font-size: 18px;
  3326. font-family: "microsoft yahei";
  3327. float: left;
  3328. }
  3329. .nightButtonBlack {
  3330. height: 25px;
  3331. margin-top: -4px;
  3332. color: #DEDEDE;
  3333. margin-left: 50rpx;
  3334. font-size: 18px;
  3335. font-family: "microsoft yahei";
  3336. float: left;
  3337. }
  3338. .cuIcon {
  3339. border-right: 1px solid white;
  3340. height: 92px;
  3341. }
  3342. .icon7 {
  3343. font-size: 50upx;
  3344. }
  3345. .cu-listAll {
  3346. // width: 100%;
  3347. height: 100px;
  3348. display: -webkit-flex;
  3349. display: flex;
  3350. justify-content: space-around;
  3351. margin-top: -20px;
  3352. float: left;
  3353. }
  3354. .cu-listAllTwo {
  3355. height: 100px;
  3356. display: -webkit-flex;
  3357. display: flex;
  3358. justify-content: space-around;
  3359. margin-top: 10px;
  3360. }
  3361. .cu-listAllTThree {
  3362. height: 100px;
  3363. display: -webkit-flex;
  3364. display: flex;
  3365. justify-content: space-around;
  3366. margin-top: 10px;
  3367. }
  3368. .cu-listAllTFour {
  3369. height: 100px;
  3370. display: -webkit-flex;
  3371. display: flex;
  3372. justify-content: space-around;
  3373. margin-top: 10px;
  3374. }
  3375. .wenZhi {
  3376. color: white;
  3377. }
  3378. .cuIcon1 {
  3379. margin-top: 20px;
  3380. }
  3381. .cu-item {
  3382. width: 100%;
  3383. margin-left: -15px;
  3384. }
  3385. .weatherDayAndNightButton7 {
  3386. margin-left: 20px;
  3387. width: 120px;
  3388. height: 20px;
  3389. }
  3390. .border-left {
  3391. border-style: solid;
  3392. border-top-width: 0px;
  3393. border-right-width: 1px;
  3394. border-bottom-width: 0px;
  3395. border-left-width: 0px;
  3396. border-right-color: white;
  3397. }
  3398. .border-right {
  3399. border-style: solid;
  3400. border-top-width: 0px;
  3401. border-right-width: 0px;
  3402. border-bottom-width: 0px;
  3403. border-left-width: 0px;
  3404. border-right-color: #19B5BC;
  3405. }
  3406. .scrollList7 {
  3407. float: left;
  3408. height: 130px;
  3409. width: 95%;
  3410. margin-left: 2.5%;
  3411. }
  3412. .dayButtonWhite7 {
  3413. height: 25px;
  3414. margin-top: -9%;
  3415. margin-left: 20px;
  3416. color: white;
  3417. font-size: 15px;
  3418. border-style: solid;
  3419. border-top-width: 0px;
  3420. border-right-width: 0px;
  3421. border-bottom-width: 3px;
  3422. border-bottom-color: #FFEE35;
  3423. border-left-width: 0px;
  3424. font-family: "microsoft yahei";
  3425. float: left;
  3426. }
  3427. .dayButtonBlack7 {
  3428. height: 25px;
  3429. margin-top: -9%;
  3430. margin-left: 20px;
  3431. color: #DEDEDE;
  3432. font-size: 15px;
  3433. font-family: "microsoft yahei";
  3434. float: left;
  3435. }
  3436. .nightButtonWhite7 {
  3437. height: 25px;
  3438. margin-top: -9%;
  3439. border-style: solid;
  3440. border-top-width: 0px;
  3441. border-right-width: 0px;
  3442. border-bottom-width: 3px;
  3443. border-left-width: 0px;
  3444. border-bottom-color: #FFEE35;
  3445. color: white;
  3446. margin-left: 50rpx;
  3447. font-size: 15px;
  3448. font-family: "microsoft yahei";
  3449. float: left;
  3450. }
  3451. .nightButtonBlack7 {
  3452. height: 25px;
  3453. margin-top: -9%;
  3454. color: #DEDEDE;
  3455. margin-left: 50rpx;
  3456. font-size: 15px;
  3457. font-family: "microsoft yahei";
  3458. float: left;
  3459. }
  3460. .cuIcon7 {
  3461. border-right: 1px solid white;
  3462. height: 92px;
  3463. }
  3464. .icon1 {
  3465. font-size: 50upx;
  3466. }
  3467. .cu-listAll7 {
  3468. height: 100px;
  3469. display: -webkit-flex;
  3470. display: flex;
  3471. justify-content: space-around;
  3472. margin-top: -20px;
  3473. float: left;
  3474. }
  3475. .cu-listAllTwo7 {
  3476. height: 100px;
  3477. display: -webkit-flex;
  3478. display: flex;
  3479. justify-content: space-around;
  3480. margin-top: 10px;
  3481. }
  3482. .cu-listAllTThree7 {
  3483. height: 100px;
  3484. display: -webkit-flex;
  3485. display: flex;
  3486. justify-content: space-around;
  3487. margin-top: 10px;
  3488. }
  3489. .cu-listAllTFour7 {
  3490. height: 100px;
  3491. display: -webkit-flex;
  3492. display: flex;
  3493. justify-content: space-around;
  3494. margin-top: 10px;
  3495. }
  3496. .wenZhi7 {
  3497. color: white;
  3498. }
  3499. .cuIcon1 {
  3500. margin-top: 20px;
  3501. }
  3502. .cu-item {
  3503. width: 100%;
  3504. margin-left: -15px;
  3505. }
  3506. </style>