WeatherProphethomepage.vue 80 KB

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