WeatherProphethomepage.vue 81 KB

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