WeatherProphethomepage.vue 84 KB

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