WeatherProphethomepage.vue 106 KB

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