WeatherProphethomepage.vue 81 KB

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