WeatherProphethomepage.vue 80 KB

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