WeatherProphethomepage.vue 80 KB

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