WeatherProphethomepage.vue 82 KB

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