WeatherProphethomepage.vue 107 KB

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