WeatherProphethomepage.vue 80 KB

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