WeatherProphethomepage.vue 85 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698
  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 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 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/threeLineDrawer.vue';
  441. import plusDrawer from '../../components/drawer/plusDrawer.vue';
  442. import ThermometerCard from '../../components/weatherProphethomepage/weathercomponents/thermometerCard/ThermometerCard.vue';
  443. import WeatherTemperatureWindSpeedCard_7 from '../../components/weatherProphethomepage/weathercomponents/weatherTemperatureWindSpeedCard_7/WeatherTemperatureWindSpeedCard_7.vue';
  444. import weatherCalendarCardList8_15 from '../../components/weatherProphethomepage/weathercomponents/weatherCalendarCardList8_15/weatherCalendarCardList8_15.vue';
  445. import weatherCalendarCardList40 from '../../components/weatherProphethomepage/weathercomponents/weatherCalendarCardList40/weatherCalendarCardList40.vue';
  446. import sPopup from '@/s-popup';
  447. export default {
  448. components: {
  449. drawer: drawer,
  450. plusDrawer: plusDrawer,
  451. weatherCalendarCardList8_15: weatherCalendarCardList8_15,
  452. weatherCalendarCardList40: weatherCalendarCardList40,
  453. sPopup: sPopup,
  454. ThermometerCard: ThermometerCard,
  455. WeatherTemperatureWindSpeedCard_7: WeatherTemperatureWindSpeedCard_7
  456. },
  457. data() {
  458. return {
  459. userid:'',
  460. name:[],
  461. windId:[],
  462. socketTaskHourId:'',
  463. outThreeLineDrawerIsShow:false,
  464. badge: 22,
  465. modalName: null,
  466. inconList: ["form", "favor", "question", "edit"],
  467. address: '宁夏新能源公司',
  468. weatherTodaybutton: true,
  469. weatherSevendaybutton: false,
  470. weatherFromeighttofifteendaysbutton: false,
  471. weatherFortydaysbutton: false,
  472. windStationName: '',
  473. showCenterVisible: false,
  474. windStation: [],
  475. choiceIndex: -1,
  476. clickFlag: 'jieRu',
  477. cardCur: 0,
  478. spopupWrapperHeight: "",
  479. windStationListHeight: '',
  480. drawerList: [],
  481. leftNavigationtitle:'预测功能分组',
  482. plusDrawerList: [],
  483. utils: utils,
  484. margintop: '',
  485. margintopThree: '',
  486. messageTop: '',
  487. // 直接使用需要进行声明
  488. // 直接使用需要进行声明 End
  489. date: '2020/03/27 08:00:00',
  490. timestamp: "",
  491. option: '',
  492. cuIconList: [{
  493. cuIcon: 'weather',
  494. color: 'white',
  495. name: '天气',
  496. }, {
  497. cuIcon: 'maxTemperature',
  498. color: 'white',
  499. name: '最高温度',
  500. }, {
  501. cuIcon: 'minTemperature',
  502. color: 'white',
  503. name: '最低温度',
  504. }, {
  505. cuIcon: 'sunRise',
  506. color: 'white',
  507. name: '日出',
  508. }, {
  509. cuIcon: 'sunSet',
  510. color: 'white',
  511. name: '日落',
  512. }, {
  513. cuIcon: 'sunDuration',
  514. color: 'white',
  515. name: '持续时间',
  516. }, {
  517. cuIcon: 'dayWeather',
  518. color: 'white',
  519. name: '白气象',
  520. }, {
  521. cuIcon: 'dayTemperature',
  522. color: 'white',
  523. name: '白气温',
  524. }, {
  525. cuIcon: 'dayRealFeel',
  526. color: 'white',
  527. name: '白体感',
  528. }, {
  529. cuIcon: 'dayPrecipitation',
  530. color: 'white',
  531. name: '白降水',
  532. }, {
  533. cuIcon: 'dayWindDirection',
  534. color: 'white',
  535. name: '白风向',
  536. }, {
  537. cuIcon: 'dayWindSpeed',
  538. color: 'white',
  539. name: '白风速',
  540. }, {
  541. cuIcon: 'dayGust',
  542. color: 'white',
  543. name: '白阵风速',
  544. }, {
  545. cuIcon: 'nightWeather',
  546. color: 'white',
  547. name: '夜气象',
  548. }, {
  549. cuIcon: 'nightTemperature',
  550. color: 'white',
  551. name: '夜温度',
  552. }, {
  553. cuIcon: 'nightRealFeel',
  554. color: 'white',
  555. name: '夜体感',
  556. }, {
  557. cuIcon: 'nightPrecipitation',
  558. color: 'white',
  559. name: '夜降水',
  560. }, {
  561. cuIcon: 'nightWindDirection',
  562. color: 'white',
  563. name: '夜风向',
  564. }, {
  565. cuIcon: 'nightWindSpeed',
  566. color: 'white',
  567. name: '夜风速',
  568. }, {
  569. cuIcon: 'nightGust',
  570. color: 'white',
  571. name: '夜阵风速',
  572. }],
  573. gridCol: 4,
  574. gridBorder: false,
  575. weatherProphetDataAll_17Hour: [],
  576. weatherProphetData_17Hour: [{
  577. date: '',
  578. id: '',
  579. realfeel: '',
  580. region: '',
  581. speed: '',
  582. temperature: '',
  583. weather: '',
  584. winddirection: '',
  585. windpowerstationid: ''
  586. }],
  587. weatherProphetDataAll_1: [],
  588. weatherProphetData_1: [{
  589. weather1: '',
  590. gust1: '',
  591. gust2: '',
  592. id: '',
  593. maximumtem: '',
  594. minimumtem: '',
  595. precipitation1: "",
  596. precipitation2: '',
  597. realfeel1: '',
  598. realfeel1: '',
  599. recodedata: '',
  600. region: '',
  601. speed1: '',
  602. speed2: '',
  603. sunduration: "",
  604. sunrise: '',
  605. sunset: '',
  606. temperature1: '',
  607. temperature2: '',
  608. weather: '',
  609. weather1: '',
  610. weather2: "",
  611. winddirection1: '',
  612. winddirection2: '',
  613. windpowerstationid: '',
  614. }],
  615. weatherSwitch: true,
  616. FDC: "MHS_FDC",
  617. windPowerStations: [],
  618. widthToday: '',
  619. heightToday: '',
  620. width: '',
  621. height: '',
  622. windowWidth: "",
  623. windowHeight: "",
  624. windowWidth7: "",
  625. windowHeight7:"",
  626. windowWidth8_15: "",
  627. windowHeight8_15:"",
  628. windowWidth40: "",
  629. windowHeight40:"",
  630. ziHeight: '',
  631. fontSize: '',
  632. xianHeight: '',
  633. marginleftBiao: '',
  634. scrollHeight: '',
  635. choiceFontSize: "",
  636. choiceMarginTop: "",
  637. xAxisFontSize: "",
  638. seriesTextSize: "",
  639. cardWidth: "",
  640. cardHeight: "",
  641. isToday: false,
  642. scrollposition: 0,
  643. weatherProphetDataAll_8_15: [],
  644. weatherProphetData_8_15: [],
  645. socket: "",
  646. startDate: "",
  647. isCard: false,
  648. endDate: "",
  649. cWidth: '',
  650. cHeight: '',
  651. cWidth40: '',
  652. cHeight40: '',
  653. pixelRatio: 1,
  654. pixelRatio40: 1,
  655. realFeelFlag: true,
  656. temperatureFlag: false,
  657. speedFlag: false,
  658. tabCur: 0,
  659. mainCur: 0,
  660. scrollposition_uCharts: 0,
  661. scrollposition_list: 0,
  662. isCard40: false,
  663. weatherProphetData_40: [],
  664. weatherProphetDataAll_40: [],
  665. startDate40: "",
  666. endDate40: "",
  667. realFeelFlag40: true,
  668. temperatureFlag40: false,
  669. speedFlag40: false,
  670. tabCur40: 0,
  671. mainCur40: 0,
  672. choiceFontSize40: "",
  673. choiceMarginTop40: "",
  674. xAxisFontSize40: "",
  675. seriesTextSize40: "",
  676. cardWidth40: "",
  677. cardHeight40: "",
  678. scrollListHeight40: "",
  679. socketTask8_15: '',
  680. socketTask40: '',
  681. socketTask: '',
  682. weatherInformation: {},
  683. cuIconList7: [{
  684. cuIcon: 'weather',
  685. color: 'white',
  686. name: '天气',
  687. }, {
  688. cuIcon: 'maxTemperature',
  689. color: 'white',
  690. name: '最高温度',
  691. }, {
  692. cuIcon: 'minTemperature',
  693. color: 'white',
  694. name: '最低温度',
  695. }, {
  696. cuIcon: 'sunRise',
  697. color: 'white',
  698. name: '日出',
  699. }, {
  700. cuIcon: 'sunSet',
  701. color: 'white',
  702. name: '日落',
  703. }, {
  704. cuIcon: 'sunDuration',
  705. color: 'white',
  706. name: '持续时间',
  707. }, {
  708. cuIcon: 'dayWeather',
  709. color: 'white',
  710. name: '白气象',
  711. }, {
  712. cuIcon: 'dayTemperature',
  713. color: 'white',
  714. name: '白气温',
  715. }, {
  716. cuIcon: 'dayRealFeel',
  717. color: 'white',
  718. name: '白体感',
  719. }, {
  720. cuIcon: 'dayPrecipitation',
  721. color: 'white',
  722. name: '白降水',
  723. }, {
  724. cuIcon: 'dayWindDirection',
  725. color: 'white',
  726. name: '白风向',
  727. }, {
  728. cuIcon: 'dayWindSpeed',
  729. color: 'white',
  730. name: '白风速',
  731. }, {
  732. cuIcon: 'dayGust',
  733. color: 'white',
  734. name: '白阵风速',
  735. }, {
  736. cuIcon: 'nightWeather',
  737. color: 'white',
  738. name: '夜气象',
  739. }, {
  740. cuIcon: 'nightTemperature',
  741. color: 'white',
  742. name: '夜温度',
  743. }, {
  744. cuIcon: 'nightRealFeel',
  745. color: 'white',
  746. name: '夜体感',
  747. }, {
  748. cuIcon: 'nightPrecipitation',
  749. color: 'white',
  750. name: '夜降水',
  751. }, {
  752. cuIcon: 'nightWindDirection',
  753. color: 'white',
  754. name: '夜风向',
  755. }, {
  756. cuIcon: 'nightWindSpeed',
  757. color: 'white',
  758. name: '夜风速',
  759. }, {
  760. cuIcon: 'nightGust',
  761. color: 'white',
  762. name: '夜阵风速',
  763. }],
  764. assemblyWidth7: '',
  765. assemblyHeight7: '',
  766. weatherSwitch7: true,
  767. weatherProphetDataAll_7: [],
  768. weatherProphetData_7: [],
  769. weatherIconsDay7: [],
  770. weatherIconsNight7: [],
  771. classNameDay7: [],
  772. classNameNight7: [],
  773. height7: "",
  774. width7: "",
  775. ziHeight7: '',
  776. fontSize7: '',
  777. xianHeight7: '',
  778. nightmarginleft7: '',
  779. socketTask7: '',
  780. userCanviewthewindfarm:[],
  781. permissionsInformation:[]
  782. }
  783. },
  784. created: function() {
  785. // this.pushWindPowerStationNameToSessionStorage("麻黄山");
  786. this.viewUserid();
  787. this.monitoringAuthority();
  788. this.address = this.getWindPowerStationNameToSessionStorage();
  789. this.windPowerStationId = uni.getStorageSync('windPowerStationId');
  790. this.FDC= uni.getStorageSync('windPowerStationId');
  791. if (this.address == '宁夏新能源公司') {
  792. this.FDC = 'MHS_FDC';
  793. }
  794. if (this.address == '河北能源集团') {
  795. this.FDC = 'CL_FDC';
  796. }
  797. uni.setStorageSync('windPowerStationId',this.FDC);
  798. this.$nextTick(function() {
  799. this.getWeatherDataToday();
  800. this.getWeatherData7();
  801. });
  802. this.cWidth = uni.upx2px(2000);
  803. this.cHeight = uni.upx2px(350);
  804. this.cWidth40 = uni.upx2px(5000);
  805. this.cHeight40 = uni.upx2px(350);
  806. if (this.address == '宁夏新能源公司') {
  807. this.windStation = ['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
  808. this.windStationName = this.windStation[0].replace('风电场', '');
  809. // this.windPowerStationId = 'MHS_FDC';
  810. // this.getWeatherDataToday();
  811. }
  812. if (this.address == '麻黄山风电场') {
  813. this.windStation = ['麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
  814. this.windStationName = this.windStation[0].replace('风电场', '');
  815. // this.windPowerStationId = 'MHS_FDC';
  816. // this.getWeatherDataToday();
  817. }
  818. if (this.address == '牛首山风电场') {
  819. this.windStation = ['牛首山风电场', '麻黄山风电场', '石板泉风电场', '青山风电场', '香山风电场'];
  820. this.windStationName = this.windStation[0].replace('风电场', '');
  821. // this.windPowerStationId = 'NSS_FDC';
  822. // this.getWeatherDataToday();
  823. }
  824. if (this.address == '石板泉风电场') {
  825. this.windStation = ['石板泉风电场', '麻黄山风电场', '牛首山风电场', '青山风电场', '香山风电场'];
  826. this.windStationName = this.windStation[0].replace('风电场', '');
  827. // this.windPowerStationId = 'SBQ_FDC';
  828. // this.getWeatherDataToday();
  829. }
  830. if (this.address == '香山风电场') {
  831. this.windStation = ['香山风电场', '麻黄山风电场', '牛首山风电场', '石板泉风电场', '青山风电场'];
  832. this.windStationName = this.windStation[0].replace('风电场', '');
  833. // this.windPowerStationId = 'XS_FDC';
  834. // this.getWeatherDataToday();
  835. }
  836. if (this.address == '青山风电场') {
  837. this.windStation = ['青山风电场', '麻黄山风电场', '牛首山风电场', '石板泉风电场', '香山风电场'];
  838. this.windStationName = this.windStation[0].replace('风电场', '');
  839. // this.windPowerStationId = 'QS_FDC';
  840. // this.getWeatherDataToday();
  841. }if (this.address == '河北能源集团') {
  842. this.windStation = ['崇礼风电场', '康保风电场', '代县风电场'];
  843. this.windStationName = this.windStation[0].replace('风电场', '');
  844. // this.windPowerStationId = 'QS_FDC';
  845. // this.getWeatherDataToday();
  846. }
  847. if (this.address == '崇礼风电场') {
  848. this.windStation = ['崇礼风电场', '康保风电场', '代县风电场'];
  849. this.windStationName = this.windStation[0].replace('风电场', '');
  850. // this.windPowerStationId = 'QS_FDC';
  851. // this.getWeatherDataToday();
  852. }
  853. if (this.address == '康保风电场') {
  854. this.windStation = ['康保风电场', '崇礼风电场', '代县风电场'];
  855. this.windStationName = this.windStation[0].replace('风电场', '');
  856. // this.windPowerStationId = 'QS_FDC';
  857. // this.getWeatherDataToday();
  858. }
  859. if (this.address == '代县风电场') {
  860. this.windStation = ['代县风电场', '康保风电场', '崇礼风电场'];
  861. this.windStationName = this.windStation[0].replace('风电场', '');
  862. // this.windPowerStationId = 'QS_FDC';
  863. // this.getWeatherDataToday();
  864. }
  865. this.windStationListHeight = this.windStation.length * 50 + 40 + 'px';
  866. this.spopupWrapperHeight = this.windStation.length * 50 + 90 + 'px';
  867. this.windowWidth = uni.getSystemInfoSync().windowWidth;
  868. this.windowHeight = uni.getSystemInfoSync().windowHeight;
  869. if (this.windowWidth >= 768) {
  870. this.margintop="60px";
  871. this.margintopThree="80px";
  872. this.messageTop="10px";
  873. this.fontSize="18px";
  874. this.xianHeight="168px";
  875. this.marginleftBiao="50px";
  876. } else {
  877. this.margintop="3.5%";
  878. this.margintopThree="3.5%";
  879. this.fontSize="14px";
  880. this.xianHeight="85%";
  881. this.marginleftBiao="26px";
  882. }
  883. this.heightToday = parseInt(uni.getSystemInfoSync().windowHeight - 440) + "px";
  884. this.widthToday = parseInt(uni.getSystemInfoSync().windowWidth) + "px";
  885. this.windowWidth7 = uni.getSystemInfoSync().windowWidth;
  886. this.windowHeight7 = uni.getSystemInfoSync().windowHeight;
  887. if(this.windowWidth7>=768){
  888. this.margintop7="60px";
  889. this.margintopThree7="80px";
  890. this.messageTop7="10px";
  891. this.fontSize7="18px";
  892. this.xianHeight7="168px";
  893. this.nightmarginleft7="20px";
  894. }else{
  895. this.margintop7="3.5%";
  896. this.margintopThree7="3.5%";
  897. this.fontSize7="14px";
  898. this.xianHeight7="85%";
  899. this.nightmarginleft7="20px";
  900. }
  901. this.height7 = parseInt(uni.getSystemInfoSync().windowHeight - 440) + "px";
  902. this.width7 = parseInt(uni.getSystemInfoSync().windowWidth) + "px";
  903. this.windowWidth8_15 = uni.getSystemInfoSync().windowWidth;
  904. this.windowHeight8_15 = uni.getSystemInfoSync().windowHeight;
  905. if(this.windowWidth8_15>=768){
  906. this.width="99";
  907. this.choiceFontSize="22px";
  908. this.choiceMarginTop="27.5px";
  909. this.xAxisFontSize=18;
  910. this.seriesTextSize=18;
  911. this.cardWidth=100;
  912. this.cardHeight=130;
  913. this.scrollHeight=(this.windowHeight8_15-550)+"px";
  914. }
  915. else{
  916. this.width="100";
  917. this.choiceFontSize="15px";
  918. this.choiceMarginTop="0";
  919. this.xAxisFontSize=12;
  920. this.seriesTextSize=12;
  921. this.cardWidth=100;
  922. this.cardHeight=100;
  923. this.scrollHeight=(this.windowHeight8_15-360)+"px";
  924. }
  925. this.windowWidth40 = uni.getSystemInfoSync().windowWidth;
  926. this.windowHeight40 = uni.getSystemInfoSync().windowHeight;
  927. if(this.windowWidth40>=768){
  928. this.choiceFontSize40="22px";
  929. this.choiceMarginTop40="27.5px";
  930. this.xAxisFontSize40=18;
  931. this.seriesTextSize40=18;
  932. this.cardWidth40=100;
  933. this.cardHeight40=130;
  934. this.scrollListHeight40=(this.windowHeight40-550)+"px";
  935. }else{
  936. this.choiceFontSize40="15px";
  937. this.choiceMarginTop40="0";
  938. this.xAxisFontSize40=12;
  939. this.seriesTextSize40=12;
  940. this.cardWidth40=100;
  941. this.cardHeight40=100;
  942. this.scrollListHeight40=(this.windowHeight40-360)+"px";
  943. }
  944. },
  945. onShow() {
  946. this.windPowerStationId = uni.getStorageSync('windPowerStationId');
  947. this.address = this.getWindPowerStationNameToSessionStorage();
  948. if (this.address == '宁夏新能源公司') {
  949. this.FDC = 'MHS_FDC';
  950. }
  951. if (this.address == '麻黄山风电场') {
  952. this.FDC = 'MHS_FDC';
  953. }
  954. if (this.address == '牛首山风电场') {
  955. this.FDC = 'NSS_FDC';
  956. }
  957. if (this.address == '石板泉风电场') {
  958. this.FDC = 'SBQ_FDC';
  959. }
  960. if (this.address == '青山风电场') {
  961. this.FDC = 'QS_FDC';
  962. }
  963. if (this.address == '香山风电场') {
  964. this.FDC = 'XS_FDC';
  965. }
  966. if (this.address == '河北能源集团') {
  967. this.FDC = 'CL_FDC';
  968. }
  969. if (this.address == '崇礼风电场') {
  970. this.FDC = 'CL_FDC';
  971. }
  972. if (this.address == '康保风电场') {
  973. this.FDC = 'KB_FDC';
  974. }
  975. if (this.address == '代县风电场') {
  976. this.FDC = 'DX_FDC';
  977. }
  978. this.getWeatherData();
  979. this.getWeatherDataToday();
  980. this.getWeatherData7();
  981. },
  982. onLoad: function() {
  983. this.address = this.getWindPowerStationNameToSessionStorage();
  984. this.cWidth = uni.upx2px(2000);
  985. this.cHeight = uni.upx2px(350);
  986. this.getServerData();
  987. this.cWidth40 = uni.upx2px(5000);
  988. this.cHeight40 = uni.upx2px(350);
  989. this.getServerData40();
  990. },
  991. onHide() {
  992. debugger
  993. //this.$refs.drawer.closeDrawer();
  994. this.hideModal();
  995. },
  996. computed: {
  997. backStageIp: function() {
  998. return this.$store.state.wholeSituationBackStageIp;
  999. },
  1000. backStagePort: function() {
  1001. return this.$store.state.wholeSituationBackStagePort;
  1002. },
  1003. windpowerstationNameToId: function() {
  1004. return this.$store.state.windpowerstationNameToId;
  1005. }
  1006. },
  1007. methods: {
  1008. viewUserid:function(){
  1009. let _this = this;
  1010. _this.userid =uni.getStorageSync('userid')
  1011. //_this.userid = sessionStorage.getItem('userid');
  1012. uni.request({
  1013. url: 'http://' + this.backStageIp + ':' + this.backStagePort + '/GyeeorganController/GyeeOrganList?userid=' + _this.userid,
  1014. data: {},
  1015. method: 'GET',
  1016. success: function(res) {
  1017. for(let i=0;i<res.data.data.length;i++){
  1018. // _this.name.push(res.data.data[i].describes);
  1019. // _this.windId.push(res.data.data[i].name);
  1020. }
  1021. for(let j=0;j<res.data.data.length;j++){
  1022. var a = {};
  1023. _this.$set(a,"name",res.data.data[j].describes);
  1024. _this.$set(a,"windId",res.data.data[j].name);
  1025. _this.plusDrawerList.push(a);
  1026. }
  1027. },
  1028. })
  1029. },
  1030. monitoringAuthority:function(){
  1031. let _this = this;
  1032. uni.request({
  1033. url: 'http://' + this.backStageIp + ':' + this.backStagePort +
  1034. '/GyeepermissionController/GyeePermissionList?userid=' + _this.userid,
  1035. data: {},
  1036. method: 'GET',
  1037. success: function(res) {
  1038. console.log(res);
  1039. for (let i = 0; i < res.data.data.length; i++) {
  1040. if (res.data.data[i].describes == "预测") {
  1041. var b = {};
  1042. _this.$set(b, "gyeePermissionList", res.data.data[i].gyeePermissionList);
  1043. _this.permissionsInformation.push(b);
  1044. console.log(_this.permissionsInformation);
  1045. for (let k = 0; k < _this.permissionsInformation[0].gyeePermissionList.length; k++) {
  1046. if (_this.permissionsInformation[0].gyeePermissionList[k].parent == 3) {
  1047. var c = {};
  1048. var d = {};
  1049. _this.$set(c, "name", _this.permissionsInformation[0].gyeePermissionList[k].permisssionname);
  1050. _this.$set(c, "remark1",_this.permissionsInformation[0].gyeePermissionList[k].remark1);
  1051. _this.drawerList.push(c);
  1052. }
  1053. }
  1054. console.log(_this.drawerList)
  1055. }
  1056. }
  1057. }
  1058. })
  1059. },
  1060. openDrawer: function() {
  1061. this.outThreeLineDrawerIsShow=true;
  1062. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
  1063. },
  1064. closeDrawer: function() {
  1065. this.drawerIsShow = false;
  1066. },
  1067. showModal(e) {
  1068. this.modalName = e.currentTarget.dataset.target;
  1069. this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
  1070. },
  1071. hideModal() {
  1072. this.modalName = null;
  1073. this.$refs.plusDrawer.hideModal(this.modalName);
  1074. this.choiceIndex = -1;
  1075. },
  1076. onHide() {
  1077. debugger
  1078. //this.$refs.drawer.closeDrawer();
  1079. this.hideModal();
  1080. },
  1081. choiceWindStation: function(item, index) {
  1082. this.choiceIndex = index;
  1083. this.windStationName = item.replace('风电场', '');
  1084. this.modalWindStationName = item.replace('风电场', '');
  1085. this.address = item;
  1086. this.pushWindPowerStationNameToSessionStorage(item);
  1087. let _this = this;
  1088. setTimeout(function() {
  1089. // _this.hideModal();
  1090. _this.showCenterVisible = false;
  1091. _this.choiceIndex = -1;
  1092. _this.cardCur = index;
  1093. }, 1000);
  1094. if (this.windStationName == '麻黄山') {
  1095. this.FDC = 'MHS_FDC';
  1096. }
  1097. if (this.windStationName == '牛首山') {
  1098. this.FDC = 'NSS_FDC';
  1099. }
  1100. if (this.windStationName == '石板泉') {
  1101. this.FDC = 'SBQ_FDC';
  1102. }
  1103. if (this.windStationName == '青山') {
  1104. this.FDC = 'QS_FDC';
  1105. }
  1106. if (this.windStationName == '香山') {
  1107. this.FDC = 'XS_FDC';
  1108. }
  1109. if (this.windStationName == '崇礼') {
  1110. this.FDC = 'CL_FDC';
  1111. }
  1112. if (this.windStationName == '康保') {
  1113. this.FDC = 'KB_FDC';
  1114. }
  1115. if (this.windStationName == '代县') {
  1116. this.FDC = 'YMG_FDC';
  1117. }
  1118. uni.setStorageSync('windPowerStationId',this.FDC);
  1119. if (this.weatherTodaybutton == true) {
  1120. this.getWeatherDataToday();
  1121. }
  1122. if (this.weatherSevendaybutton == true) {
  1123. this.getWeatherData7();
  1124. }
  1125. if (this.weatherFromeighttofifteendaysbutton == true) {
  1126. this.getWeatherData();
  1127. }
  1128. if (this.weatherFortydaysbutton == true) {
  1129. this.getWeatherData40();
  1130. }
  1131. },
  1132. cardSwiper(e) {
  1133. let _this = this;
  1134. this.cardCur = e.detail.current;
  1135. for (let i = 0; i < this.windStation.length; i++) {
  1136. if (this.cardCur == i) {
  1137. if (this.address == '宁夏新能源公司' || this.address == '河北能源集团' ) {
  1138. this.windStationName = this.windStation[i].replace('风电场', '');
  1139. this.modalWindStationName = this.windStation[i].replace('风电场', '');
  1140. }
  1141. if (this.address.search('风电场') != -1) {
  1142. if (this.windStation[i].search('风电场') != -1) {
  1143. this.windStationName = this.windStation[i].replace('风电场', '');
  1144. } else {
  1145. this.windStationName = this.windStation[i];
  1146. }
  1147. this.modalWindStationName = this.windStation[i];
  1148. }
  1149. this.windMotorMatrixDetailAll = this.windMotorMatrixDetailMaHuagShan;
  1150. this.getWindMotorStatusCard();
  1151. this.clickWindMotorStatusCard(this.clickFlag);
  1152. this.getBackgroundColor();
  1153. this.showCardModal('Modal');
  1154. setTimeout(function() {
  1155. _this.hideCardModal();
  1156. }, 1000);
  1157. }
  1158. }
  1159. },
  1160. pushWindPowerStationNameToSessionStorage(windpowerstationName) {
  1161. uni.setStorageSync('windpowerstationName', windpowerstationName);
  1162. //sessionStorage.setItem('windpowerstationName', windpowerstationName);
  1163. //alert("v"+ sessionStorage.getItem("windpowerstationName"));
  1164. //this.common.goback('/pages/index/Index');
  1165. },
  1166. getWindPowerStationNameToSessionStorage() {
  1167. uni.getStorageSync('windpowerstationName');
  1168. return uni.getStorageSync('windpowerstationName');
  1169. },
  1170. getWeatherDataToday: function() {
  1171. //得到数据
  1172. let _this = this;
  1173. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1174. // 按小时数据
  1175. this.socketTaskHour = uni.connectSocket({
  1176. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1177. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_3/functionNumber_2',
  1178. success(data) {
  1179. console.log("websocket连接成功");
  1180. },
  1181. });
  1182. // 今天数据
  1183. this.socketTaskToday = uni.connectSocket({
  1184. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1185. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_2/functionNumber_1',
  1186. success(data) {
  1187. console.log("websocket连接成功");
  1188. },
  1189. });
  1190. this.socketTaskToday.onOpen((res) => {
  1191. console.log("WebSocket连接正常打开中...!");
  1192. this.is_open_socket = true;
  1193. // 注:只有连接正常打开中 ,才能正常收到消息
  1194. this.socketTaskToday.onMessage((res) => {
  1195. //console.log("收到服务器内容:" + res.data);
  1196. _this.weatherProphetDataAll_1 = res.data;
  1197. _this.weatherProphetDataAll_1 = JSON.parse(res.data);
  1198. _this.weatherProphetData_1 = [];
  1199. //判断风场id 40天
  1200. //debugger
  1201. for (let i = 0; i < _this.weatherProphetDataAll_1.length; i++) {
  1202. if (_this.weatherProphetDataAll_1[i].windpowerstationid == _this.FDC) {
  1203. //debugger
  1204. _this.weatherProphetData_1.push(_this.weatherProphetDataAll_1[i]);
  1205. }
  1206. }
  1207. _this.$nextTick(function() {
  1208. if (_this.$refs.thermometerCard == undefined) {
  1209. } else {
  1210. _this.$refs.thermometerCard.getHourWeatherData("90", "260", _this.weatherProphetData_17Hour, _this.weatherProphetData_1);
  1211. }
  1212. })
  1213. });
  1214. })
  1215. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1216. this.socketTaskHour.onOpen((res) => {
  1217. console.log("WebSocket连接正常打开中...!");
  1218. this.is_open_socket = true;
  1219. // 注:只有连接正常打开中 ,才能正常收到消息
  1220. this.socketTaskHour.onMessage((res) => {
  1221. //console.log("收到服务器内容:" + res.data);
  1222. _this.weatherProphetDataAll_17Hour = res.data;
  1223. _this.weatherProphetDataAll_17Hour = JSON.parse(res.data);
  1224. if(_this.weatherProphetDataAll_17Hour.length!=0)
  1225. {
  1226. _this.weatherProphetData_17Hour = [];
  1227. //判断风场id 40天
  1228. for (let i1 = 0; i1 < _this.weatherProphetDataAll_17Hour.length; i1++) {
  1229. if (_this.weatherProphetDataAll_17Hour[i1].windpowerstationid == _this.FDC) {
  1230. //debugger
  1231. _this.weatherProphetData_17Hour.push(_this.weatherProphetDataAll_17Hour[i1]);
  1232. }
  1233. }
  1234. // console.log(_this.weatherProphetData_17Hour)
  1235. _this.$nextTick(function() {
  1236. if (_this.$refs.thermometerCard == undefined) {
  1237. } else {
  1238. _this.$refs.thermometerCard.getHourWeatherData("90", "260", _this.weatherProphetData_17Hour, _this.weatherProphetData_1);
  1239. }
  1240. })
  1241. }
  1242. });
  1243. })
  1244. // 这里仅是事件监听【如果socket关闭了会执行】
  1245. this.socketTaskHour.onClose(() => {
  1246. console.log("已经被关闭了")
  1247. })
  1248. this.socketTaskToday.onClose(() => {
  1249. console.log("已经被关闭了")
  1250. })
  1251. },
  1252. getWeatherData7: function() {
  1253. let _this = this;
  1254. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1255. this.socketTask7 = uni.connectSocket({
  1256. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1257. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_3/functionNumber_1',
  1258. success(data) {
  1259. console.log("websocket连接成功");
  1260. },
  1261. });
  1262. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1263. this.socketTask7.onOpen((res) => {
  1264. console.log("WebSocket连接正常打开中...!");
  1265. this.is_open_socket = true;
  1266. // 注:只有连接正常打开中 ,才能正常收到消息
  1267. this.socketTask7.onMessage((res) => {
  1268. //console.log("收到服务器内容:" + res.data);
  1269. _this.weatherProphetDataAll_7 = res.data;
  1270. _this.weatherProphetDataAll_7 = JSON.parse(res.data);
  1271. _this.weatherProphetData_7 = [];
  1272. //判断风场id 40天
  1273. for (let i = 0; i < _this.weatherProphetDataAll_7.length; i++) {
  1274. if (_this.weatherProphetDataAll_7[i].windpowerstationid == _this.FDC) {
  1275. _this.weatherProphetData_7.push(_this.weatherProphetDataAll_7[i]);
  1276. }
  1277. }
  1278. // console.log(_this.weatherProphetData_7);
  1279. if (_this.$refs.WeatherTemperatureWindSpeedCard_7 == undefined) {
  1280. } else {
  1281. _this.$refs.WeatherTemperatureWindSpeedCard_7.weatherInformationCard('110', '80', _this.classNameDay7,
  1282. _this
  1283. .classNameNight7,
  1284. _this.weatherProphetData_7);
  1285. }
  1286. });
  1287. })
  1288. // 这里仅是事件监听【如果socket关闭了会执行】
  1289. this.socketTask7.onClose(() => {
  1290. console.log("已经被关闭了")
  1291. })
  1292. },
  1293. weatherDayNightSwitch: function(flag) {
  1294. if (flag == "day") {
  1295. this.weatherSwitch = true;
  1296. } else if (flag == "night") {
  1297. this.weatherSwitch = false;
  1298. }
  1299. },
  1300. getWeatherData: function() {
  1301. let _this = this;
  1302. this.socketTask8_15 = uni.connectSocket({
  1303. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1304. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_4/functionNumber_1',
  1305. success(data) {
  1306. console.log("websocket连接成功");
  1307. },
  1308. });
  1309. this.socketTask8_15.onOpen((res) => {
  1310. console.log("WebSocket连接正常打开中...!");
  1311. this.is_open_socket = true;
  1312. // 注:只有连接正常打开中 ,才能正常收到消息
  1313. this.socketTask8_15.onMessage((res) => {
  1314. _this.weatherProphetDataAll_8_15 = JSON.parse(res.data);
  1315. _this.weatherProphetData_8_15 = [];
  1316. //判断风场id 8~15天
  1317. for (let i = 0; i < _this.weatherProphetDataAll_8_15.length; i++) {
  1318. if (_this.weatherProphetDataAll_8_15[i].windpowerstationid == _this.FDC) {
  1319. _this.weatherProphetData_8_15.push(_this.weatherProphetDataAll_8_15[i]);
  1320. }
  1321. }
  1322. if (_this.$refs.weatherCalendarCardList8_15 == undefined) {
  1323. } else {
  1324. _this.$refs.weatherCalendarCardList8_15.getWeatherData(_this.width, "400", _this.weatherProphetData_8_15);
  1325. }
  1326. _this.getWeatherDataUchart();
  1327. })
  1328. })
  1329. this.socketTask8_15.onClose(() => {
  1330. console.log("已经被关闭了")
  1331. })
  1332. },
  1333. getWeatherDataUchart: function() {
  1334. let startMonth = new Date(this.weatherProphetData_8_15[0].recodedata).getMonth() + 1;
  1335. let startDay = new Date(this.weatherProphetData_8_15[0].recodedata).getDate();
  1336. this.startDate = startMonth + "月" + startDay + "日";
  1337. let endMonth = new Date(this.weatherProphetData_8_15[this.weatherProphetData_8_15.length - 1].recodedata).getMonth() +
  1338. 1;
  1339. let endDay = new Date(this.weatherProphetData_8_15[this.weatherProphetData_8_15.length - 1].recodedata).getDate();
  1340. this.endDate = endMonth + "月" + endDay + "日";
  1341. this.getServerData();
  1342. },
  1343. getWeatherData40: function() {
  1344. let _this = this;
  1345. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  1346. this.socketTask40 = uni.connectSocket({
  1347. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  1348. url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_5/functionNumber_1',
  1349. success(data) {
  1350. console.log("websocket连接成功");
  1351. },
  1352. });
  1353. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  1354. this.socketTask40.onOpen((res) => {
  1355. console.log("WebSocket连接正常打开中...!");
  1356. this.is_open_socket = true;
  1357. // 注:只有连接正常打开中 ,才能正常收到消息
  1358. this.socketTask40.onMessage((res) => {
  1359. //console.log("收到服务器内容:" + res.data);
  1360. _this.weatherProphetDataAll_40 = res.data;
  1361. _this.weatherProphetDataAll_40 = JSON.parse(res.data);
  1362. _this.weatherProphetData_40 = [];
  1363. //判断风场id 40天
  1364. for (let i = 0; i < _this.weatherProphetDataAll_40.length; i++) {
  1365. if (_this.weatherProphetDataAll_40[i].windpowerstationid == _this.FDC) {
  1366. _this.weatherProphetData_40.push(_this.weatherProphetDataAll_40[i]);
  1367. }
  1368. }
  1369. //console.log(_this.weatherProphetData_40);
  1370. let startMonth40 = new Date(_this.weatherProphetData_40[0].recodedata).getMonth() + 1;
  1371. let startDay40 = new Date(_this.weatherProphetData_40[0].recodedata).getDate();
  1372. _this.startDate40 = startMonth40 + "月" + startDay40 + "日";
  1373. let endMonth40 = new Date(_this.weatherProphetData_40[_this.weatherProphetData_40.length - 1].recodedata).getMonth() +
  1374. 1;
  1375. let endDay40 = new Date(_this.weatherProphetData_40[_this.weatherProphetData_40.length - 1].recodedata).getDate();
  1376. _this.endDate40 = endMonth40 + "月" + endDay40 + "日";
  1377. if (_this.$refs.weatherCalendarCardList40 == undefined) {
  1378. } else {
  1379. _this.$refs.weatherCalendarCardList40.getWeatherData40(this.cardWidth40, this.cardHeight40, _this.weatherProphetData_40);
  1380. }
  1381. _this.getServerData40();
  1382. });
  1383. })
  1384. // 这里仅是事件监听【如果socket关闭了会执行】
  1385. this.socketTask40.onClose(() => {
  1386. console.log("已经被关闭了")
  1387. })
  1388. },
  1389. realFeelSwitch() {
  1390. this.realFeelFlag = true;
  1391. this.temperatureFlag = false;
  1392. this.speedFlag = false;
  1393. this.getServerData();
  1394. },
  1395. temperatureSwitch() {
  1396. this.realFeelFlag = false;
  1397. this.temperatureFlag = true;
  1398. this.speedFlag = false;
  1399. this.getServerData();
  1400. },
  1401. speedSwitch() {
  1402. this.realFeelFlag = false;
  1403. this.temperatureFlag = false;
  1404. this.speedFlag = true;
  1405. this.getServerData();
  1406. },
  1407. realFeelSwitch40() {
  1408. this.realFeelFlag40 = true;
  1409. this.temperatureFlag40 = false;
  1410. this.speedFlag40 = false;
  1411. this.getServerData40();
  1412. },
  1413. temperatureSwitch40() {
  1414. this.realFeelFlag40 = false;
  1415. this.temperatureFlag40 = true;
  1416. this.speedFlag40 = false;
  1417. this.getServerData40();
  1418. },
  1419. speedSwitch40() {
  1420. this.realFeelFlag40 = false;
  1421. this.temperatureFlag40 = false;
  1422. this.speedFlag40 = true;
  1423. this.getServerData40();
  1424. },
  1425. getServerData() {
  1426. let LineA = {
  1427. categories: ['02/21', '02/22', '02/23', '02/24', '02/25', '02/26', '02/27'],
  1428. series: [{
  1429. name: '体感温度',
  1430. data: [12, 13, 12, 11, 16, 14, 12],
  1431. color: '#F3F3F3',
  1432. textColor: '#FFFFFF',
  1433. textSize: this.seriesTextSize,
  1434. format: (val) => {
  1435. return val + '℃'
  1436. }
  1437. }, {
  1438. name: '温度',
  1439. data: [70, 40, 65, 100, 44, 68],
  1440. color: '#FFFFFF',
  1441. textColor: "#FFFFFF",
  1442. textSize: this.seriesTextSize,
  1443. format: (val) => {
  1444. return val + '℃'
  1445. }
  1446. }, {
  1447. name: '风速',
  1448. data: [100, 80, 95, 150, 112, 132],
  1449. color: '#FFFFFF',
  1450. textColor: "#FFFFFF",
  1451. textSize: this.seriesTextSize,
  1452. format: (val) => {
  1453. return val + 'km/h'
  1454. }
  1455. }]
  1456. };
  1457. LineA.categories = [];
  1458. LineA.series[0].data = [];
  1459. LineA.series[1].data = [];
  1460. LineA.series[2].data = [];
  1461. if (this.realFeelFlag) {
  1462. for (let i = 0; i < this.weatherProphetData_8_15.length; i++) {
  1463. let xAxisMonth = new Date(this.weatherProphetData_8_15[i].recodedata).getMonth() + 1;
  1464. let xAxisData = new Date(this.weatherProphetData_8_15[i].recodedata).getDate();
  1465. if (xAxisMonth < 10) {
  1466. xAxisMonth = "0" + xAxisMonth;
  1467. }
  1468. if (xAxisData < 10) {
  1469. xAxisData = "0" + xAxisData;
  1470. }
  1471. LineA.categories.push(xAxisMonth + '/' + xAxisData);
  1472. LineA.series[0].data.push(this.weatherProphetData_8_15[i].realfeel1);
  1473. }
  1474. } else if (this.temperatureFlag) {
  1475. for (let i = 0; i < this.weatherProphetData_8_15.length; i++) {
  1476. let xAxisMonth = new Date(this.weatherProphetData_8_15[i].recodedata).getMonth() + 1;
  1477. let xAxisData = new Date(this.weatherProphetData_8_15[i].recodedata).getDate();
  1478. if (xAxisMonth < 10) {
  1479. xAxisMonth = "0" + xAxisMonth;
  1480. }
  1481. if (xAxisData < 10) {
  1482. xAxisData = "0" + xAxisData;
  1483. }
  1484. LineA.categories.push(xAxisMonth + '/' + xAxisData);
  1485. LineA.series[1].data.push(this.weatherProphetData_8_15[i].temperature1);
  1486. }
  1487. } else if (this.speedFlag) {
  1488. for (let i = 0; i < this.weatherProphetData_8_15.length; i++) {
  1489. let xAxisMonth = new Date(this.weatherProphetData_8_15[i].recodedata).getMonth() + 1;
  1490. let xAxisData = new Date(this.weatherProphetData_8_15[i].recodedata).getDate();
  1491. if (xAxisMonth < 10) {
  1492. xAxisMonth = "0" + xAxisMonth;
  1493. }
  1494. if (xAxisData < 10) {
  1495. xAxisData = "0" + xAxisData;
  1496. }
  1497. LineA.categories.push(xAxisMonth + '/' + xAxisData);
  1498. LineA.series[2].data.push(this.weatherProphetData_8_15[i].speed1);
  1499. }
  1500. }
  1501. //LineA.categories=res.data.data.LineA.categories;
  1502. // LineA.series=res.data.data.LineA.series;
  1503. this.showLineA("canvasLineA", LineA);
  1504. },
  1505. showLineA(canvasId, chartData) {
  1506. var _self = this;
  1507. var canvaLineA = new uCharts({
  1508. $this: _self,
  1509. canvasId: canvasId,
  1510. type: 'line',
  1511. fontSize: 11,
  1512. legend: {
  1513. show: false
  1514. },
  1515. dataLabel: true,
  1516. dataPointShape: true,
  1517. background: '#FFFFFF',
  1518. pixelRatio: _self.pixelRatio,
  1519. categories: chartData.categories,
  1520. series: chartData.series,
  1521. animation: true,
  1522. xAxis: {
  1523. disableGrid: true,
  1524. type: 'grid',
  1525. fontColor: '#FFFFFF',
  1526. gridColor: '#FFFFFF',
  1527. gridType: 'dash',
  1528. dashLength: 1,
  1529. fontSize: _self.xAxisFontSize
  1530. },
  1531. yAxis: {
  1532. disableGrid: true,
  1533. gridType: 'dash',
  1534. gridColor: '#CCCCCC',
  1535. dashLength: 1,
  1536. disabled: true,
  1537. splitNumber: 5,
  1538. min: -40,
  1539. max: 50,
  1540. },
  1541. width: _self.cWidth * _self.pixelRatio,
  1542. height: _self.cHeight * _self.pixelRatio,
  1543. extra: {
  1544. line: {
  1545. type: 'straight'
  1546. }
  1547. }
  1548. });
  1549. },
  1550. getServerData40() {
  1551. let LineA40 = {
  1552. categories: ['2012', '2013', '2014', '2015', '2016', '2017'],
  1553. series: [{
  1554. name: '体感温度',
  1555. data: [35, 20, 25, 37, 4, 20],
  1556. color: '#FFFFFF',
  1557. textColor: "#FFFFFF",
  1558. textSize: this.seriesTextSize40,
  1559. format: (val) => {
  1560. return val + '℃'
  1561. }
  1562. }, {
  1563. name: '温度',
  1564. data: [70, 40, 65, 100, 44, 68],
  1565. color: '#FFFFFF',
  1566. textColor: "#FFFFFF",
  1567. textSize: this.seriesTextSize40,
  1568. format: (val) => {
  1569. return val + '℃'
  1570. }
  1571. }, {
  1572. name: '风速',
  1573. data: [100, 80, 95, 150, 112, 132],
  1574. color: '#FFFFFF',
  1575. textColor: "#FFFFFF",
  1576. textSize: this.seriesTextSize40,
  1577. format: (val) => {
  1578. return val + 'km/h'
  1579. }
  1580. }]
  1581. };
  1582. LineA40.categories = [];
  1583. LineA40.series[0].data = [];
  1584. LineA40.series[1].data = [];
  1585. LineA40.series[2].data = [];
  1586. if (this.realFeelFlag40) {
  1587. for (let i = 0; i < this.weatherProphetData_40.length; i++) {
  1588. let xAxisMonth40 = new Date(this.weatherProphetData_40[i].recodedata).getMonth() + 1;
  1589. let xAxisData40 = new Date(this.weatherProphetData_40[i].recodedata).getDate();
  1590. if (xAxisMonth40 < 10) {
  1591. xAxisMonth40 = "0" + xAxisMonth40;
  1592. }
  1593. if (xAxisData40 < 10) {
  1594. xAxisData40 = "0" + xAxisData40;
  1595. }
  1596. LineA40.categories.push(xAxisMonth40 + '/' + xAxisData40);
  1597. LineA40.series[0].data.push(this.weatherProphetData_40[i].realfeel1);
  1598. }
  1599. } else if (this.temperatureFlag40) {
  1600. for (let i = 0; i < this.weatherProphetData_40.length; i++) {
  1601. let xAxisMonth40 = new Date(this.weatherProphetData_40[i].recodedata).getMonth() + 1;
  1602. let xAxisData40 = new Date(this.weatherProphetData_40[i].recodedata).getDate();
  1603. if (xAxisMonth40 < 10) {
  1604. xAxisMonth40 = "0" + xAxisMonth40;
  1605. }
  1606. if (xAxisData40 < 10) {
  1607. xAxisData40 = "0" + xAxisData40;
  1608. }
  1609. LineA40.categories.push(xAxisMonth40 + '/' + xAxisData40);
  1610. LineA40.series[1].data.push(this.weatherProphetData_40[i].temperature1);
  1611. }
  1612. } else if (this.speedFlag40) {
  1613. for (let i = 0; i < this.weatherProphetData_40.length; i++) {
  1614. let xAxisMonth40 = new Date(this.weatherProphetData_40[i].recodedata).getMonth() + 1;
  1615. let xAxisData40 = new Date(this.weatherProphetData_40[i].recodedata).getDate();
  1616. if (xAxisMonth40 < 10) {
  1617. xAxisMonth40 = "0" + xAxisMonth40;
  1618. }
  1619. if (xAxisData40 < 10) {
  1620. xAxisData40 = "0" + xAxisData40;
  1621. }
  1622. LineA40.categories.push(xAxisMonth40 + '/' + xAxisData40);
  1623. LineA40.series[2].data.push(this.weatherProphetData_40[i].speed1);
  1624. }
  1625. }
  1626. this.showLineA40("canvasLineA40", LineA40);
  1627. },
  1628. showLineA40(canvasId, chartData) {
  1629. var _self = this;
  1630. var canvaLineA40 = new uCharts({
  1631. $this: _self,
  1632. canvasId: canvasId,
  1633. type: 'line',
  1634. fontSize: 11,
  1635. legend: {
  1636. show: false
  1637. }, //图例
  1638. dataLabel: true, //数据点标签
  1639. dataPointShape: true,
  1640. background: '#FFFFFF',
  1641. pixelRatio: _self.pixelRatio40,
  1642. categories: chartData.categories,
  1643. series: chartData.series,
  1644. animation: true,
  1645. xAxis: {
  1646. type: 'grid',
  1647. gridColor: '#CCCCCC',
  1648. gridType: 'dash',
  1649. dashLength: 8,
  1650. disableGrid: true, //网格线
  1651. axisLine: true, //x轴轴线
  1652. fontColor: "#FFFFFF",
  1653. fontSize: _self.xAxisFontSize40
  1654. },
  1655. yAxis: {
  1656. data: {
  1657. disabled: false //y轴轴线
  1658. },
  1659. disableGrid: true, //网格线
  1660. gridType: 'dash',
  1661. gridColor: '#CCCCCC',
  1662. dashLength: 8,
  1663. splitNumber: 5,
  1664. min: -40,
  1665. max: 50,
  1666. format: (val) => {
  1667. return val.toFixed(0) + '元'
  1668. }
  1669. },
  1670. width: _self.cWidth40 * _self.pixelRatio40,
  1671. height: _self.cHeight40 * _self.pixelRatio40,
  1672. padding: [0, 0, 10, -30], //画布填充边距,顺序为上右下左,同css,但必须4位
  1673. extra: {
  1674. line: {
  1675. type: 'curve' //曲线
  1676. }
  1677. }
  1678. });
  1679. },
  1680. uChartsScrollEvent(e) {
  1681. this.scrollposition = e.detail.scrollLeft;
  1682. // let scrollposition2 = scrollposition*0.98;
  1683. },
  1684. listScrollEvent(e) {
  1685. this.scrollposition = e.detail.scrollTop;
  1686. },
  1687. uChartsScrollEvent40(e) {
  1688. this.scrollposition_uCharts = e.detail.scrollLeft;
  1689. if (e.detail.scrollLeft < 237) {
  1690. this.scrollposition_list = 0;
  1691. } else if (e.detail.scrollLeft < 487 && e.detail.scrollLeft > 237) {
  1692. this.scrollposition_list = 104;
  1693. } else if (e.detail.scrollLeft < 737 && e.detail.scrollLeft > 487) {
  1694. this.scrollposition_list = 208;
  1695. } else if (e.detail.scrollLeft < 987 && e.detail.scrollLeft > 737) {
  1696. this.scrollposition_list = 312;
  1697. } else if (e.detail.scrollLeft < 1237 && e.detail.scrollLeft > 987) {
  1698. this.scrollposition_list = 416;
  1699. } else if (e.detail.scrollLeft < 1487 && e.detail.scrollLeft > 1237) {
  1700. this.scrollposition_list = 520;
  1701. } else if (e.detail.scrollLeft < 1737 && e.detail.scrollLeft > 1487) {
  1702. this.scrollposition_list = 624;
  1703. } else if (e.detail.scrollLeft > 1737) {
  1704. this.scrollposition_list = 656;
  1705. }
  1706. },
  1707. listScrollEvent40(e) {
  1708. this.scrollposition_list = e.detail.scrollTop;
  1709. if (e.detail.scrollTop < 104) {
  1710. this.scrollposition_uCharts = 0;
  1711. } else if (e.detail.scrollTop < 208 && e.detail.scrollTop > 104) {
  1712. this.scrollposition_uCharts = 237;
  1713. } else if (e.detail.scrollTop < 312 && e.detail.scrollTop > 208) {
  1714. this.scrollposition_uCharts = 487;
  1715. } else if (e.detail.scrollTop < 416 && e.detail.scrollTop > 312) {
  1716. this.scrollposition_uCharts = 737;
  1717. } else if (e.detail.scrollTop < 520 && e.detail.scrollTop > 416) {
  1718. this.scrollposition_uCharts = 987;
  1719. } else if (e.detail.scrollTop < 624 && e.detail.scrollTop > 520) {
  1720. this.scrollposition_uCharts = 1237;
  1721. } else if (e.detail.scrollTop < 656 && e.detail.scrollTop > 624) {
  1722. this.scrollposition_uCharts = 1487;
  1723. }
  1724. },
  1725. changeTap: function(item) {
  1726. this.weatherInformation = JSON.parse(item); //vue json转object
  1727. },
  1728. weatherDaySwitch7: function() {
  1729. this.weatherSwitch7 = true;
  1730. },
  1731. weatherNightSwitch7: function() {
  1732. this.weatherSwitch7 = false;
  1733. },
  1734. closeSocket: function() {
  1735. this.socket.onclose;
  1736. },
  1737. openSocket: function() {
  1738. this.socket.onOpen;
  1739. },
  1740. weatherToday() {
  1741. this.weatherSevendaybutton = false;
  1742. this.weatherFromeighttofifteendaysbutton = false;
  1743. this.weatherFortydaysbutton = false;
  1744. this.$nextTick(function() {
  1745. this.weatherTodaybutton = true;
  1746. this.getWeatherDataToday();
  1747. });
  1748. },
  1749. weatherSevenday() {
  1750. this.weatherTodaybutton = false;
  1751. this.weatherFromeighttofifteendaysbutton = false;
  1752. this.weatherFortydaysbutton = false;
  1753. this.$nextTick(function() {
  1754. this.weatherSevendaybutton = true;
  1755. this.getWeatherData7();
  1756. })
  1757. },
  1758. weatherFromeighttofifteendays() {
  1759. this.weatherTodaybutton = false;
  1760. this.weatherSevendaybutton = false;
  1761. this.weatherFortydaysbutton = false;
  1762. this.$nextTick(function() {
  1763. this.weatherFromeighttofifteendaysbutton = true;
  1764. this.getWeatherData();
  1765. })
  1766. },
  1767. weatherFortydays() {
  1768. this.weatherTodaybutton = false;
  1769. this.weatherSevendaybutton = false;
  1770. this.weatherFromeighttofifteendaysbutton = false;
  1771. this.$nextTick(function() {
  1772. this.weatherFortydaysbutton = true;
  1773. this.getWeatherData40();
  1774. })
  1775. },
  1776. },
  1777. }
  1778. </script>
  1779. <style>
  1780. body {
  1781. font-family: '方正兰亭细黑_GBK';
  1782. font-size: 12px;
  1783. color: silver;
  1784. background: #000;
  1785. }
  1786. @font-face {
  1787. font-family: '方正兰亭细黑_GBK';
  1788. src: url(../../static/fzltxh.TTF);
  1789. }
  1790. page {
  1791. background-color: #1f1f1f;
  1792. font-family: '方正兰亭细黑_GBK';
  1793. overflow-x: hidden;
  1794. overflow-y: hidden;
  1795. }
  1796. .notice {
  1797. width: 50px;
  1798. height: 45px;
  1799. float: left;
  1800. }
  1801. .icon{
  1802. font-size: 40upx;
  1803. }
  1804. .plus {
  1805. width: 30px;
  1806. height: 45px;
  1807. float: right;
  1808. color: white;
  1809. font-size: 35px;
  1810. line-height: 45px;
  1811. text-align: right;
  1812. margin-right: 2.5%;
  1813. }
  1814. .DrawerPage {
  1815. position: fixed;
  1816. width: 100vw;
  1817. height: 100vh;
  1818. left: 0vw;
  1819. background-color: #1f1f1f;
  1820. transition: all 0.4s;
  1821. }
  1822. .DrawerPage.show {
  1823. transform: scale(0.9, 0.9);
  1824. left: 85vw;
  1825. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  1826. transform-origin: 0;
  1827. }
  1828. .DrawerWindow {
  1829. position: absolute;
  1830. width: 85vw;
  1831. height: 100vh;
  1832. left: 0;
  1833. top: 0;
  1834. transform: scale(0.9, 0.9) translateX(-100%);
  1835. opacity: 0;
  1836. pointer-events: none;
  1837. transition: all 0.4s;
  1838. padding: 100upx 0;
  1839. }
  1840. .DrawerWindow.show {
  1841. transform: scale(1, 1) translateX(0%);
  1842. opacity: 1;
  1843. pointer-events: all;
  1844. }
  1845. .DrawerClose {
  1846. position: absolute;
  1847. width: 40vw;
  1848. height: 100vh;
  1849. right: 0;
  1850. top: 0;
  1851. color: transparent;
  1852. padding-bottom: 30upx;
  1853. display: flex;
  1854. align-items: flex-end;
  1855. justify-content: center;
  1856. background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.6));
  1857. letter-spacing: 5px;
  1858. font-size: 50upx;
  1859. opacity: 0;
  1860. pointer-events: none;
  1861. transition: all 0.4s;
  1862. }
  1863. .DrawerClose.show {
  1864. opacity: 1;
  1865. pointer-events: all;
  1866. width: 15vw;
  1867. color: #fff;
  1868. }
  1869. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  1870. width: 64upx;
  1871. height: 64upx;
  1872. line-height: 64upx;
  1873. margin: 0;
  1874. display: inline-block;
  1875. }
  1876. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  1877. margin: 0;
  1878. }
  1879. .DrawerPage .nav {
  1880. flex: 1;
  1881. }
  1882. .DrawerPage .nav .cu-item.cur {
  1883. border-bottom: 0;
  1884. position: relative;
  1885. }
  1886. .DrawerPage .nav .cu-item.cur::after {
  1887. content: '';
  1888. width: 10upx;
  1889. height: 10upx;
  1890. background-color: currentColor;
  1891. position: absolute;
  1892. bottom: 10upx;
  1893. border-radius: 10upx;
  1894. left: 0;
  1895. right: 0;
  1896. margin: auto;
  1897. }
  1898. .DrawerPage .cu-bar.tabbar .action {
  1899. flex: initial;
  1900. }
  1901. .clickThedaystab {
  1902. width: 100%;
  1903. height: 40px;
  1904. background-color: #242424;
  1905. }
  1906. .weatherToday {
  1907. width: 25%;
  1908. height: 40px;
  1909. float: left;
  1910. text-align: center;
  1911. line-height: 40px;
  1912. color: #DEDFE3;
  1913. }
  1914. .weatherTodaywhite {
  1915. width: 25%;
  1916. height: 40px;
  1917. float: left;
  1918. text-align: center;
  1919. line-height: 40px;
  1920. color: white;
  1921. background-color: #3B3B3B;
  1922. }
  1923. .weatherSevenday {
  1924. width: 25%;
  1925. height: 40px;
  1926. float: left;
  1927. text-align: center;
  1928. line-height: 40px;
  1929. color: #DEDFE3;
  1930. }
  1931. .weatherSevendaywhite {
  1932. width: 25%;
  1933. height: 40px;
  1934. float: left;
  1935. text-align: center;
  1936. line-height: 40px;
  1937. color: white;
  1938. background-color: #3B3B3B;
  1939. }
  1940. .weatherFromeighttofifteendays {
  1941. width: 25%;
  1942. height: 40px;
  1943. float: left;
  1944. text-align: center;
  1945. line-height: 40px;
  1946. color: #DEDFE3;
  1947. }
  1948. .weatherFromeighttofifteendayswhite {
  1949. width: 25%;
  1950. height: 40px;
  1951. float: left;
  1952. text-align: center;
  1953. line-height: 40px;
  1954. color: white;
  1955. background-color: #3B3B3B;
  1956. }
  1957. .weatherFortydays {
  1958. width: 25%;
  1959. height: 40px;
  1960. float: left;
  1961. text-align: center;
  1962. line-height: 40px;
  1963. color: #DEDFE3;
  1964. }
  1965. .weatherFortydayswhite {
  1966. width: 25%;
  1967. height: 40px;
  1968. float: left;
  1969. text-align: center;
  1970. line-height: 40px;
  1971. color: white;
  1972. background-color: #3B3B3B;
  1973. }
  1974. .cardContenter {
  1975. border-radius: 20px;
  1976. margin-left: 20px;
  1977. width: 90%;
  1978. height: 450upx;
  1979. background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#024F93), color-stop(1.5, #cccccc), to(#437193));
  1980. background: rgba(0, 0, 0, 0.1);
  1981. }
  1982. .weather8_15 {
  1983. width: 100%;
  1984. height: 100upx;
  1985. }
  1986. .weather8_15_text {
  1987. width: 40%;
  1988. height: 100upx;
  1989. line-height: 100upx;
  1990. color: white;
  1991. margin-left: 5px;
  1992. float: left;
  1993. }
  1994. .leftInnerMatrix {
  1995. width: 100%;
  1996. height: 100%;
  1997. }
  1998. .qiun-charts {
  1999. width: 2000upx;
  2000. height: 350upx;
  2001. }
  2002. .charts {
  2003. width: 2000upx;
  2004. height: 350upx;
  2005. }
  2006. .choice {
  2007. width: calc(60% - 5px);
  2008. height: 100upx;
  2009. float: right;
  2010. }
  2011. .realFeelButtonWhite {
  2012. height: 37px;
  2013. line-height: 44px;
  2014. color: white;
  2015. font-size: 15px;
  2016. border-style: solid;
  2017. border-top-width: 0px;
  2018. border-right-width: 0px;
  2019. border-bottom-width: 3px;
  2020. border-bottom-color: #FFEE35;
  2021. border-left-width: 0px;
  2022. font-family: "microsoft yahei";
  2023. float: right;
  2024. }
  2025. .realFeelButtonBlack {
  2026. height: 37px;
  2027. line-height: 44px;
  2028. color: #DEDEDE;
  2029. font-size: 15px;
  2030. font-family: "microsoft yahei";
  2031. float: right;
  2032. }
  2033. .temperatureButtonWhite {
  2034. height: 37px;
  2035. line-height: 44px;
  2036. margin-left: 20px;
  2037. color: white;
  2038. font-size: 15px;
  2039. border-style: solid;
  2040. border-top-width: 0px;
  2041. border-right-width: 0px;
  2042. border-bottom-width: 3px;
  2043. border-bottom-color: #FFEE35;
  2044. border-left-width: 0px;
  2045. font-family: "microsoft yahei";
  2046. float: right;
  2047. }
  2048. .temperatureButtonBlack {
  2049. height: 37px;
  2050. line-height: 44px;
  2051. margin-left: 20px;
  2052. color: #DEDEDE;
  2053. font-size: 15px;
  2054. font-family: "microsoft yahei";
  2055. float: right;
  2056. }
  2057. .speedButtonWhite {
  2058. height: 37px;
  2059. line-height: 44px;
  2060. margin-left: 20px;
  2061. margin-right: 20px;
  2062. color: white;
  2063. font-size: 15px;
  2064. border-style: solid;
  2065. border-top-width: 0px;
  2066. border-right-width: 0px;
  2067. border-bottom-width: 3px;
  2068. border-bottom-color: #FFEE35;
  2069. border-left-width: 0px;
  2070. font-family: "microsoft yahei";
  2071. float: right;
  2072. }
  2073. .speedButtonBlack {
  2074. height: 37px;
  2075. line-height: 44px;
  2076. margin-left: 20px;
  2077. margin-right: 20px;
  2078. color: #DEDEDE;
  2079. font-size: 15px;
  2080. font-family: "microsoft yahei";
  2081. float: right;
  2082. }
  2083. .scrollUcharts {
  2084. white-space: nowrap;
  2085. }
  2086. .scrollList {
  2087. height: 380px;
  2088. }
  2089. .cardContenter40 {
  2090. border-radius: 20px;
  2091. margin-left: 20px;
  2092. width: 90%;
  2093. height: 450upx;
  2094. background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#024F93), color-stop(1.5, #cccccc), to(#437193));
  2095. background: rgba(0, 0, 0, 0.1);
  2096. }
  2097. .dateAndChoice {
  2098. width: 100%;
  2099. height: 100upx;
  2100. }
  2101. .date {
  2102. width: 40%;
  2103. height: 100upx;
  2104. line-height: 100upx;
  2105. color: white;
  2106. margin-left: 5px;
  2107. float: left;
  2108. }
  2109. .choice40 {
  2110. width: calc(60% - 5px);
  2111. height: 100upx;
  2112. float: right;
  2113. }
  2114. .realFeelButtonWhite40 {
  2115. height: 37px;
  2116. line-height: 44px;
  2117. color: white;
  2118. font-size: 15px;
  2119. border-style: solid;
  2120. border-top-width: 0px;
  2121. border-right-width: 0px;
  2122. border-bottom-width: 3px;
  2123. border-bottom-color: #FFEE35;
  2124. border-left-width: 0px;
  2125. font-family: "microsoft yahei";
  2126. float: right;
  2127. }
  2128. .realFeelButtonBlack40 {
  2129. height: 37px;
  2130. // margin-top: 3px;
  2131. line-height: 44px;
  2132. /* margin-left: 20px; */
  2133. color: #DEDEDE;
  2134. font-size: 15px;
  2135. font-family: "microsoft yahei";
  2136. float: right;
  2137. }
  2138. .temperatureButtonWhite40 {
  2139. height: 37px;
  2140. // margin-top: 3px;
  2141. line-height: 44px;
  2142. margin-left: 20px;
  2143. color: white;
  2144. font-size: 15px;
  2145. border-style: solid;
  2146. border-top-width: 0px;
  2147. border-right-width: 0px;
  2148. border-bottom-width: 3px;
  2149. border-bottom-color: #FFEE35;
  2150. border-left-width: 0px;
  2151. font-family: "microsoft yahei";
  2152. float: right;
  2153. }
  2154. .temperatureButtonBlack40 {
  2155. height: 37px;
  2156. line-height: 44px;
  2157. margin-left: 20px;
  2158. color: #DEDEDE;
  2159. font-size: 15px;
  2160. font-family: "microsoft yahei";
  2161. float: right;
  2162. }
  2163. .speedButtonWhite40 {
  2164. height: 37px;
  2165. line-height: 44px;
  2166. margin-left: 20px;
  2167. margin-right: 20px;
  2168. color: white;
  2169. font-size: 15px;
  2170. border-style: solid;
  2171. border-top-width: 0px;
  2172. border-right-width: 0px;
  2173. border-bottom-width: 3px;
  2174. border-bottom-color: #FFEE35;
  2175. border-left-width: 0px;
  2176. font-family: "microsoft yahei";
  2177. float: right;
  2178. }
  2179. .speedButtonBlack40 {
  2180. height: 37px;
  2181. line-height: 44px;
  2182. margin-left: 20px;
  2183. margin-right: 20px;
  2184. color: #DEDEDE;
  2185. font-size: 15px;
  2186. font-family: "microsoft yahei";
  2187. float: right;
  2188. }
  2189. .scrollUcharts40 {
  2190. white-space: nowrap;
  2191. }
  2192. .scrollList40 {
  2193. height: 330px;
  2194. }
  2195. .qiun-charts40 {
  2196. width: 5000upx;
  2197. height: 350upx;
  2198. float: left;
  2199. }
  2200. .charts40 {
  2201. width: 5000upx;
  2202. height: 350upx;
  2203. }
  2204. .windStationNameAndChoice {
  2205. clear: both;
  2206. width: 100%;
  2207. height: 30px;
  2208. margin-top: 1%;
  2209. color: silver;
  2210. /* border: 1px solid red; */
  2211. }
  2212. .windStationName {
  2213. width: 50%;
  2214. height: 100%;
  2215. float: left;
  2216. line-height: 30px;
  2217. font-size: 14px;
  2218. margin-left: 9.5%;
  2219. }
  2220. .windStationChoice {
  2221. width: 20%;
  2222. height: 100%;
  2223. float: right;
  2224. text-align: right;
  2225. line-height: 30px;
  2226. font-size: 14px;
  2227. margin-right: 5%;
  2228. }
  2229. .s-popup-wrapper {
  2230. width: 500rpx;
  2231. background-color: #f0f0f0;
  2232. }
  2233. .s-popup-title {
  2234. width: 100%;
  2235. height: 50px;
  2236. background-color: #211E21;
  2237. }
  2238. .s-popup-word {
  2239. width: calc(100% - 65px);
  2240. height: 50px;
  2241. font-size: 14px;
  2242. color: white;
  2243. line-height: 50px;
  2244. float: left;
  2245. margin-left: 25px;
  2246. }
  2247. .s-popup-cha {
  2248. width: 40px;
  2249. height: 50px;
  2250. text-align: center;
  2251. line-height: 50px;
  2252. float: right;
  2253. font-size: 24px;
  2254. }
  2255. .windStationItemContainer {
  2256. width: 100%;
  2257. }
  2258. .windStationItemContainerBlack {
  2259. width: 100%;
  2260. background-color: grey;
  2261. color: white;
  2262. }
  2263. .windStationItem {
  2264. width: 80%;
  2265. height: 50px;
  2266. border-bottom: 1px solid #c8c8c8;
  2267. text-align: left;
  2268. line-height: 50px;
  2269. margin-left: 10%;
  2270. color: #333333;
  2271. }
  2272. .weatherDetails {
  2273. margin-top: 0%;
  2274. width: 100%;
  2275. height: 25px;
  2276. float: left;
  2277. }
  2278. .weatherText {
  2279. width: 20%;
  2280. height: 25px;
  2281. float: left;
  2282. font-size: 14px;
  2283. color: white;
  2284. margin-left: 9.5%;
  2285. }
  2286. .detailsText {
  2287. width: 20%;
  2288. height: 25px;
  2289. float: right;
  2290. font-size: 14px;
  2291. color: white;
  2292. margin-right: 5.5%;
  2293. text-align: right;
  2294. }
  2295. .ThermometerCard {
  2296. margin-top: -10%;
  2297. height: 308px;
  2298. width: 100%;
  2299. }
  2300. .border-left {
  2301. border-style: solid;
  2302. border-top-width: 0px;
  2303. border-right-width: 1px;
  2304. border-bottom-width: 0px;
  2305. border-left-width: 0px;
  2306. border-right-color: white;
  2307. }
  2308. .border-right {
  2309. border-style: solid;
  2310. border-top-width: 0px;
  2311. border-right-width: 0px;
  2312. border-bottom-width: 0px;
  2313. border-left-width: 0px;
  2314. border-right-color: #19B5BC;
  2315. }
  2316. .scrollList {
  2317. // height:20%;
  2318. height: 130px;
  2319. width: 95%;
  2320. margin: 0px auto;
  2321. }
  2322. .dayButtonWhite {
  2323. height: 25px;
  2324. margin-top: -4px;
  2325. margin-left: 20px;
  2326. color: white;
  2327. font-size: 18px;
  2328. border-style: solid;
  2329. border-top-width: 0px;
  2330. border-right-width: 0px;
  2331. border-bottom-width: 3px;
  2332. border-bottom-color: #FFEE35;
  2333. border-left-width: 0px;
  2334. font-family: "microsoft yahei";
  2335. float: left;
  2336. }
  2337. .dayButtonBlack {
  2338. height: 25px;
  2339. margin-top: -4px;
  2340. margin-left: 20px;
  2341. color: #DEDEDE;
  2342. font-size: 18px;
  2343. font-family: "microsoft yahei";
  2344. float: left;
  2345. }
  2346. .nightButtonWhite {
  2347. height: 25px;
  2348. margin-top: -4px;
  2349. border-style: solid;
  2350. border-top-width: 0px;
  2351. border-right-width: 0px;
  2352. border-bottom-width: 3px;
  2353. border-left-width: 0px;
  2354. border-bottom-color: #FFEE35;
  2355. color: white;
  2356. margin-left: 50rpx;
  2357. font-size: 18px;
  2358. font-family: "microsoft yahei";
  2359. float: left;
  2360. }
  2361. .nightButtonBlack {
  2362. height: 25px;
  2363. margin-top: -4px;
  2364. color: #DEDEDE;
  2365. margin-left: 50rpx;
  2366. font-size: 18px;
  2367. font-family: "microsoft yahei";
  2368. float: left;
  2369. }
  2370. .cuIcon {
  2371. border-right: 1px solid white;
  2372. height: 80px;
  2373. }
  2374. .icon7 {
  2375. font-size: 50upx;
  2376. }
  2377. .cu-listAll {
  2378. // width: 100%;
  2379. height: 100px;
  2380. display: -webkit-flex;
  2381. display: flex;
  2382. justify-content: space-around;
  2383. margin-top: -20px;
  2384. float: left;
  2385. }
  2386. .cu-listAllTwo {
  2387. height: 100px;
  2388. display: -webkit-flex;
  2389. display: flex;
  2390. justify-content: space-around;
  2391. margin-top: 0%;
  2392. }
  2393. .cu-listAllTThree {
  2394. height: 100px;
  2395. display: -webkit-flex;
  2396. display: flex;
  2397. justify-content: space-around;
  2398. margin-top: 10px;
  2399. }
  2400. .cu-listAllTFour {
  2401. height: 100px;
  2402. display: -webkit-flex;
  2403. display: flex;
  2404. justify-content: space-around;
  2405. margin-top: 10px;
  2406. }
  2407. .wenZhi {
  2408. color: white;
  2409. }
  2410. .cuIcon1 {
  2411. margin-top: 20px;
  2412. }
  2413. .cu-item {
  2414. width: 100%;
  2415. margin-left: -15px;
  2416. }
  2417. .weatherDayAndNightButton7 {
  2418. margin-left: 20px;
  2419. width: 120px;
  2420. height: 20px;
  2421. }
  2422. .border-left {
  2423. border-style: solid;
  2424. border-top-width: 0px;
  2425. border-right-width: 1px;
  2426. border-bottom-width: 0px;
  2427. border-left-width: 0px;
  2428. border-right-color: white;
  2429. }
  2430. .border-right {
  2431. border-style: solid;
  2432. border-top-width: 0px;
  2433. border-right-width: 0px;
  2434. border-bottom-width: 0px;
  2435. border-left-width: 0px;
  2436. border-right-color: #19B5BC;
  2437. }
  2438. .scrollList7 {
  2439. float: left;
  2440. height: 130px;
  2441. width: 95%;
  2442. margin-left: 2.5%;
  2443. }
  2444. .dayButtonWhite7 {
  2445. height: 25px;
  2446. margin-top: -9%;
  2447. margin-left: 20px;
  2448. color: white;
  2449. font-size: 15px;
  2450. border-style: solid;
  2451. border-top-width: 0px;
  2452. border-right-width: 0px;
  2453. border-bottom-width: 3px;
  2454. border-bottom-color: #FFEE35;
  2455. border-left-width: 0px;
  2456. font-family: "microsoft yahei";
  2457. float: left;
  2458. }
  2459. .dayButtonBlack7 {
  2460. height: 25px;
  2461. margin-top: -9%;
  2462. margin-left: 20px;
  2463. color: #DEDEDE;
  2464. font-size: 15px;
  2465. font-family: "microsoft yahei";
  2466. float: left;
  2467. }
  2468. .nightButtonWhite7 {
  2469. height: 25px;
  2470. margin-top: -9%;
  2471. border-style: solid;
  2472. border-top-width: 0px;
  2473. border-right-width: 0px;
  2474. border-bottom-width: 3px;
  2475. border-left-width: 0px;
  2476. border-bottom-color: #FFEE35;
  2477. color: white;
  2478. margin-left: 50rpx;
  2479. font-size: 15px;
  2480. font-family: "microsoft yahei";
  2481. float: left;
  2482. }
  2483. .nightButtonBlack7 {
  2484. height: 25px;
  2485. margin-top: -9%;
  2486. color: #DEDEDE;
  2487. margin-left: 50rpx;
  2488. font-size: 15px;
  2489. font-family: "microsoft yahei";
  2490. float: left;
  2491. }
  2492. .cuIcon7 {
  2493. border-right: 1px solid white;
  2494. height: 92px;
  2495. }
  2496. .icon1 {
  2497. font-size: 50upx;
  2498. }
  2499. .cu-listAll7 {
  2500. height: 100px;
  2501. display: -webkit-flex;
  2502. display: flex;
  2503. justify-content: space-around;
  2504. margin-top: -20px;
  2505. float: left;
  2506. }
  2507. .cu-listAllTwo7 {
  2508. height: 100px;
  2509. display: -webkit-flex;
  2510. display: flex;
  2511. justify-content: space-around;
  2512. margin-top: 0%;
  2513. }
  2514. .cu-listAllTThree7 {
  2515. height: 100px;
  2516. display: -webkit-flex;
  2517. display: flex;
  2518. justify-content: space-around;
  2519. margin-top: 10px;
  2520. }
  2521. .cu-listAllTFour7 {
  2522. height: 100px;
  2523. display: -webkit-flex;
  2524. display: flex;
  2525. justify-content: space-around;
  2526. margin-top: 10px;
  2527. }
  2528. .wenZhi7 {
  2529. color: white;
  2530. }
  2531. .cuIcon1 {
  2532. margin-top: 20px;
  2533. }
  2534. .cu-item {
  2535. width: 100%;
  2536. margin-left: -15px;
  2537. }
  2538. </style>