1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596 |
- <template>
- <view class="content">
- <cu-custom bgColor="bg-blacks" :isBack="false">
- <block slot="right">
- <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-left: 2%;" @tap="openDrawer"></image>
- </block>
- <block slot="right">
- <view class="icon cuIcon-notice text-white" v-if="badge != 0" style="margin-left: -70%;">
- <view class="cu-tag looknumber" style="margin-top: -2%;">
- <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
- </view>
- </view>
- </block>
- <block slot="right">
-
- </block>
- <block slot="content">{{address}}</block>
- <block slot="right">
- <view class="plus" @tap="showModal" data-target="viewModal">+</view>
- </block>
- </cu-custom>
- <!-- 抽屉组件 -->
- <div>
- <drawer ref="drawer"></drawer>
- </div>
- <div class="plusDrawer" @tap="hideModal">
- <plusDrawer ref="plusDrawer"></plusDrawer>
- </div>
- <scroll-view scroll-y class="DrawerPage" :class="modalName == 'viewModal' ? 'show' : ''">
- <!--点击天数选项卡-->
- <view class="clickThedaystab">
- <view :class="[weatherTodaybutton?'weatherTodaywhite':'weatherToday']" @click="weatherToday()">今天</view>
- <view :class="[weatherSevendaybutton?'weatherSevendaywhite':'weatherSevenday']" @click="weatherSevenday()">7天</view>
- <view :class="[weatherFromeighttofifteendaysbutton?'weatherFromeighttofifteendayswhite':'weatherFromeighttofifteendays']"
- @click="weatherFromeighttofifteendays()">8~15天</view>
- <view :class="[weatherFortydaysbutton?'weatherFortydayswhite':'weatherFortydays']" @click="weatherFortydays()">40天</view>
- </view>
-
- <!--风场选项卡-->
- <view class="windStationNameAndChoice">
- <view class="windStationName">{{ windStationName }}</view>
- <view class="windStationChoice"><a @click="showCenterVisible = true">其他ㅤ〉</a></view>
- </view>
- <s-popup custom-class="center-popup" position="center" v-model="showCenterVisible">
- <view class="s-popup-wrapper" :style="{'height': spopupWrapperHeight}">
- <view class="s-popup-title">
- <view class="s-popup-word">选择您想查看的风场</view>
- <view class="s-popup-cha"><a @tap="showCenterVisible = false">×</a></view>
- </view>
- <view class="windStationList" :style="{ 'height': windStationListHeight}">
- <view class="windStationItemContainer" v-for="(item,index) in windStation" :key="index" :class="[choiceIndex==index?'windStationItemContainerBlack':'windStationItemContainer']">
- <view class="windStationItem" @tap="choiceWindStation(item,index)">{{item}}</view>
- </view>
- </view>
- </view>
- </s-popup>
- <!-- 今天气象卡片 -->
- <view v-if="weatherTodaybutton">
- <div class="ThermometerCard">
- <ThermometerCard ref="thermometerCard" @listenEven="weatherDayNightSwitch"></ThermometerCard>
- </div>
- <div class="weatherDetails">
- <div class="weatherText"><strong>气象指标</strong></div>
- <div class="detailsText" @tap="common.navTo('../../components/weatherProphethomepage/weatherDetail/Detail')">详情ㅤ〉</div>
- </div>
- <view v-if="weatherSwitch==true">
- <scroll-view scroll-y scroll-with-animation class="scrollList" :style="{'height':heightToday}">
- <view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']" style="background-color: #242424;">
- <view class="cu-item">
- <div class="cu-listAll" :style="{'width':widthToday}">
- <div class="cuIcon" :style="{'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[6].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">白气象</br>{{weatherProphetData_1[0].weather1}}</a>
- </div>
- <div class="cuIcon" :style="{'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[7].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">白气温</br>{{weatherProphetData_1[0].temperature1}}℃</a>
- </div>
- <div class="cuIcon" :style="{'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[8].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">白体感</br>{{weatherProphetData_1[0].realfeel1}}℃</a>
- </div>
- <div class="cuIcon4">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[9].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">白降水</br>{{weatherProphetData_1[0].precipitation1}}m/s</a>
- </div>
- </div>
- <div class="cu-listAllTwo" :style="{'width':widthToday,'margin-top':margintop}">
- <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[10].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">白风向</br>{{weatherProphetData_1[0].winddirection1}}</a>
- </div>
- <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[11].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">白风速</br>{{weatherProphetData_1[0].speed1}}km/h</a>
- </div>
- <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[12].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">白阵风速</br>{{weatherProphetData_1[0].gust1}}km/h</a>
- </div>
- <div class="cuIcon4" :style="{'margin-top':margintop}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[0].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">天气</br>{{weatherProphetData_1[0].weather}}</a>
- </div>
- </div>
- <div class="cu-listAllTThree" :style="{'width':widthToday,'margin-top':margintopThree}">
- <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[1].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">最高温度</br>{{weatherProphetData_1[0].maximumtem}}℃</a>
- </div>
- <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[2].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">最低温度</br>{{weatherProphetData_1[0].minimumtem}}℃</a>
- </div>
- <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[3].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">日出</br>{{weatherProphetData_1[0].sunrise}}</a>
- </div>
- <div class="cuIcon4" :style="{'margin-top':margintopThree}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[4].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">日落</br>{{weatherProphetData_1[0].sunset}}</a>
- </div>
- </div>
- <div class="cu-listAllTFour" :style="{'width':widthToday,'margin-top':margintopThree}">
- <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[5].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">持续时间</br>{{weatherProphetData_1[0].sunduration}}</a>
- </div>
- <div class="cuIcon2">
- </div>
- <div class="cuIcon2">
- </div>
- <div class="cuIcon2">
- </div>
- </div>
- </view>
- </view>
- </scroll-view>
- </view>
- <view v-if="weatherSwitch==false">
- <scroll-view scroll-y scroll-with-animation class="scrollList" :style="{'height':heightToday}">
- <view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']" style="background-color: #242424;">
- <view class="cu-item">
- <div class="cu-listAll" :style="{'width':widthToday}">
- <div class="cuIcon" :style="{'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[6].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">夜气象</br>{{weatherProphetData_1[0].weather2}}</a>
- </div>
- <div class="cuIcon" :style="{'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[7].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">夜气温</br>{{weatherProphetData_1[0].temperature2}}℃</a>
- </div>
- <div class="cuIcon" :style="{'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[8].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">夜体感</br>{{weatherProphetData_1[0].realfeel2}}℃</a>
- </div>
- <div class="cuIcon4">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[9].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">夜降水</br>{{weatherProphetData_1[0].precipitation2}}m/s</a>
- </div>
- </div>
- <div class="cu-listAllTwo" :style="{'width':widthToday,'margin-top':margintop}">
- <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[10].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">夜风向</br>{{weatherProphetData_1[0].winddirection2}}</a>
- </div>
- <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[11].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">夜风速</br>{{weatherProphetData_1[0].speed2}}km/h</a>
- </div>
- <div class="cuIcon" :style="{'margin-top':margintop,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[12].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">夜阵风速</br>{{weatherProphetData_1[0].gust2}}km/h</a>
- </div>
- <div class="cuIcon4" :style="{'margin-top':margintop}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[0].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">天气</br>{{weatherProphetData_1[0].weather}}</a>
- </div>
- </div>
- <div class="cu-listAllTThree" :style="{'width':widthToday,'margin-top':margintopThree}">
- <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[1].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">最高温度</br>{{weatherProphetData_1[0].maximumtem}}℃</a>
- </div>
- <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[2].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">最低温度</br>{{weatherProphetData_1[0].minimumtem}}℃</a>
- </div>
- <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[3].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">日出</br>{{weatherProphetData_1[0].sunrise}}</a>
- </div>
- <div class="cuIcon4" :style="{'margin-top':margintopThree}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[4].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">日落</br>{{weatherProphetData_1[0].sunset}}</a>
- </div>
- </div>
- <div class="cu-listAllTFour" :style="{'width':widthToday,'margin-top':margintopThree}">
- <div class="cuIcon" :style="{'margin-top':margintopThree,'height':xianHeight}">
- <view class="icon1 iconfont" :class="['icon-' + cuIconList[5].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize}">持续时间</br>{{weatherProphetData_1[0].sunduration}}</a>
- </div>
- <div class="cuIcon2">
- </div>
- <div class="cuIcon2">
- </div>
- <div class="cuIcon2">
- </div>
- </div>
- </view>
- </view>
- </scroll-view>
- </view>
- </view>
- <!-- 7天气象卡片 -->
- <view v-if="weatherSevendaybutton">
- <div>
- <WeatherTemperatureWindSpeedCard_7 ref='WeatherTemperatureWindSpeedCard_7' @listenEven="changeTap"></WeatherTemperatureWindSpeedCard_7>
- </div>
- <div class="weatherDayAndNightButton7">
- <div :class="[weatherSwitch7==true?'dayButtonWhite7':'dayButtonBlack7']" @click="weatherDaySwitch7()">白天</div>
- <div :class="[weatherSwitch7==false?'nightButtonWhite7':'nightButtonBlack7']" :style="{'margin-left':nightmarginleft7}"
- @click="weatherNightSwitch7()">夜间</div>
- </div>
- <div v-if="weatherSwitch7">
- <scroll-view scroll-y scroll-with-animation class="scrollList7" :style="{'height':height7}">
- <view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']" style="background-color: rgba(0, 0, 0, 0);">
- <view class="cu-item">
- <div class="cu-listAll7" :style="{'width':width7}">
- <div class="cuIcon7" :style="{'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[6].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">白气象</br>{{weatherInformation.weather1}}</a>
- </div>
- <div class="cuIcon7" :style="{'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[7].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">白气温</br>{{weatherInformation.temperature1}}℃</a>
- </div>
- <div class="cuIcon7" :style="{'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[8].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">白体感</br>{{weatherInformation.realfeel1}}℃</a>
- </div>
- <div class="cuIcon4">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[9].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">白降水</br>{{weatherInformation.precipitation1}}m/s</a>
- </div>
- </div>
- <div class="cu-listAllTwo7" :style="{'width':width7,'margin-top':margintop7}">
- <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[10].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">白风向</br>{{weatherInformation.winddirection1}}</a>
- </div>
- <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList[11].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">白风速</br>{{weatherInformation.speed1}}km/h</a>
- </div>
- <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[12].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">白阵风速</br>{{weatherInformation.gust1}}km/h</a>
- </div>
- <div class="cuIcon4" :style="{'margin-top':margintop7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList[0].cuIcon,'text-'+ cuIconList[0].color]"></view><a
- class="wenZhi" :style="{'font-size':fontSize7}">天气</br>{{weatherInformation.weather}}</a>
- </div>
- </div>
- <div class="cu-listAllTThree7" :style="{'width':width7,'margin-top':margintopThree7}">
- <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[1].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">最高温度</br>{{weatherInformation.maximumtem}}℃</a>
- </div>
- <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[2].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">最低温度</br>{{weatherInformation.minimumtem}}℃</a>
- </div>
- <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[3].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">日出</br>{{weatherInformation.sunrise}}</a>
- </div>
- <div class="cuIcon4" :style="{'margin-top':margintopThree7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[4].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">日落</br>{{weatherInformation.sunset}}</a>
- </div>
- </div>
- <div class="cu-listAllTFour7" :style="{'width':width7,'margin-top':margintopThree7}">
- <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[5].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">持续时间</br>{{weatherInformation.sunduration}}</a>
- </div>
- <div class="cuIcon2">
- </div>
- <div class="cuIcon2">
- </div>
- <div class="cuIcon2">
- </div>
- </div>
- </view>
- </view>
- </scroll-view>
- </div>
- <view v-if="weatherSwitch7==false">
- <scroll-view scroll-y scroll-with-animation class="scrollList7" :style="{'height':height7}">
- <view class="cu-list grid" :class="['col-' + gridCol,gridBorder?'':'no-border']" style="background-color: rgba(0, 0, 0, 0);">
- <view class="cu-item">
- <div class="cu-listAll7" :style="{'width':width7}">
- <div class="cuIcon7" :style="{'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[6].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">夜气象</br>{{weatherInformation.weather2}}</a>
- </div>
- <div class="cuIcon7" :style="{'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[7].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">夜气温</br>{{weatherInformation.temperature2}}℃</a>
- </div>
- <div class="cuIcon7" :style="{'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[8].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">夜体感</br>{{weatherInformation.realfeel2}}℃</a>
- </div>
- <div class="cuIcon4">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[9].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">夜降水</br>{{weatherInformation.precipitation2}}m/s</a>
- </div>
- </div>
- <div class="cu-listAllTwo7" :style="{'width':width7,'margin-top':margintop7}">
- <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[10].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">夜风向</br>{{weatherInformation.winddirection2}}</a>
- </div>
- <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[11].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">夜风速</br>{{weatherInformation.speed2}}km/h</a>
- </div>
- <div class="cuIcon7" :style="{'margin-top':margintop7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[12].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">夜阵风速</br>{{weatherInformation.gust2}}km/h</a>
- </div>
- <div class="cuIcon4" :style="{'margin-top':margintop7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[0].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">天气</br>{{weatherInformation.weather}}</a>
- </div>
- </div>
- <div class="cu-listAllTThree7" :style="{'width':width7,'margin-top':margintopThree7}">
- <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[1].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">最高温度</br>{{weatherInformation.maximumtem}}℃</a>
- </div>
- <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[2].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">最低温度</br>{{weatherInformation.minimumtem}}℃</a>
- </div>
- <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[3].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">日出</br>{{weatherInformation.sunrise}}</a>
- </div>
- <div class="cuIcon4" :style="{'margin-top':margintopThree7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[4].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">日落</br>{{weatherInformation.sunset}}</a>
- </div>
- </div>
- <div class="cu-listAllTFour7" :style="{'width':width7,'margin-top':margintopThree7}">
- <div class="cuIcon7" :style="{'margin-top':margintopThree7,'height':xianHeight7}">
- <view class="icon7 iconfont" :class="['icon-' + cuIconList7[5].cuIcon,'text-'+ cuIconList7[0].color]"></view><a
- class="wenZhi7" :style="{'font-size':fontSize7}">持续时间</br>{{weatherInformation.sunduration}}</a>
- </div>
- <div class="cuIcon2">
- </div>
- <div class="cuIcon2">
- </div>
- <div class="cuIcon2">
- </div>
- </div>
- </view>
- </view>
- </scroll-view>
- </view>
- </view>
- <!-- 8~15天气象卡片 -->
- <view v-if="weatherFromeighttofifteendaysbutton">
- <view class="cu-card case" :class="isCard?'no-card':''">
- <view class="cardContenter">
- <view class="weather8_15">
- <view class="weather8_15_text">{{startDate}}~{{endDate}}</view>
- <view class="choice">
- <div :class="[speedFlag==true?'speedButtonWhite':'speedButtonBlack']" :style="{'font-size':choiceFontSize,'margin-top':choiceMarginTop}"
- @click="speedSwitch()">风速</div>
- <div :class="[temperatureFlag==true?'temperatureButtonWhite':'temperatureButtonBlack']" :style="{'font-size':choiceFontSize,'margin-top':choiceMarginTop}"
- @click="temperatureSwitch()">温度</div>
- <div :class="[realFeelFlag==true?'realFeelButtonWhite':'realFeelButtonBlack']" :style="{'font-size':choiceFontSize,'margin-top':choiceMarginTop}"
- @click="realFeelSwitch()">体感温度</div>
- </view>
- </view>
- <scroll-view scroll-x scroll-with-animation :scroll-left=scrollposition class="scrollUcharts" @scroll="uChartsScrollEvent"
- :scroll-into-view="'uCharts-'+mainCur">
- <view class="qiun-charts">
- <canvas canvas-id="canvasLineA" id="canvasLineA" class="charts"></canvas>
- </view>
- </scroll-view>
- </view>
- </view>
- <div>
- <scroll-view scroll-y scroll-with-animation :scroll-top=scrollposition class="scrollList" :style="{'height': scrollHeight }"
- @scroll="listScrollEvent">
- <weatherCalendarCardList8_15 ref="weatherCalendarCardList8_15"></weatherCalendarCardList8_15>
- </scroll-view>
- </div>
- </view>
- <!-- 40天气象卡片 -->
- <view v-if="weatherFortydaysbutton">
- <view class="cu-card case" :class="isCard40?'no-card':''">
- <view class="cardContenter40">
- <view class="dateAndChoice">
- <view class="date">
- {{startDate40}}~{{endDate40}}
- </view>
- <view class="choice40">
- <div :class="[speedFlag40==true?'speedButtonWhite40':'speedButtonBlack40']" :style="{'font-size':choiceFontSize40,'margin-top':choiceMarginTop40}"
- @click="speedSwitch40()">风速</div>
- <div :class="[temperatureFlag40==true?'temperatureButtonWhite40':'temperatureButtonBlack40']" :style="{'font-size':choiceFontSize40,'margin-top':choiceMarginTop40}"
- @click="temperatureSwitch40()">温度</div>
- <div :class="[realFeelFlag40==true?'realFeelButtonWhite40':'realFeelButtonBlack40']" :style="{'font-size':choiceFontSize40,'margin-top':choiceMarginTop40}"
- @click="realFeelSwitch40()">体感温度</div>
- </view>
- </view>
- <scroll-view scroll-x scroll-with-animation :scroll-left=scrollposition_uCharts class="scrollUcharts40" @scroll="uChartsScrollEvent40"
- :scroll-into-view="'uCharts-'+mainCur40">
- <view class="qiun-charts40">
- <canvas canvas-id="canvasLineA40" id="canvasLineA40" class="charts40"></canvas>
- </view>
- </scroll-view>
- </view>
- </view>
- <scroll-view scroll-y scroll-with-animation :scroll-top=scrollposition_list class="scrollList40" :style="{'height': scrollListHeight40 }"
- @scroll="listScrollEvent40">
- <weatherCalendarCardList40 ref="weatherCalendarCardList40"></weatherCalendarCardList40>
- </scroll-view>
- </view>
- </scroll-view>
- <view class="DrawerClose" :class="modalName == 'viewModal' ? 'show' : ''" @tap="hideModal"><text class="cuIcon-pullright"></text></view>
- </view>
- </template>
- <script>
- import uCharts from '../../components/tools/u-charts/u-charts.js';
- import utils from '../../components/tools/shoyu-date/utils.filter.js';
- import res from '../../common/data.json';
- import drawer from '../../components/drawer/threeLineDrawer.vue';
- import plusDrawer from '../../components/drawer/plusDrawer.vue';
- import ThermometerCard from '../../components/weatherProphethomepage/weathercomponents/thermometerCard/ThermometerCard.vue';
- import WeatherTemperatureWindSpeedCard_7 from '../../components/weatherProphethomepage/weathercomponents/weatherTemperatureWindSpeedCard_7/WeatherTemperatureWindSpeedCard_7.vue';
- import weatherCalendarCardList8_15 from '../../components/weatherProphethomepage/weathercomponents/weatherCalendarCardList8_15/weatherCalendarCardList8_15.vue';
- import weatherCalendarCardList40 from '../../components/weatherProphethomepage/weathercomponents/weatherCalendarCardList40/weatherCalendarCardList40.vue';
- import sPopup from '@/s-popup';
- export default {
- components: {
- drawer: drawer,
- plusDrawer: plusDrawer,
- weatherCalendarCardList8_15: weatherCalendarCardList8_15,
- weatherCalendarCardList40: weatherCalendarCardList40,
- sPopup: sPopup,
- ThermometerCard: ThermometerCard,
- WeatherTemperatureWindSpeedCard_7: WeatherTemperatureWindSpeedCard_7
- },
- data() {
- return {
- userid:'',
- name:[],
- windId:[],
- socketTaskHourId:'',
- outThreeLineDrawerIsShow:false,
- badge: 22,
- modalName: null,
- inconList: ["form", "favor", "question", "edit"],
- address: '',
- weatherTodaybutton: true,
- weatherSevendaybutton: false,
- weatherFromeighttofifteendaysbutton: false,
- weatherFortydaysbutton: false,
- windStationName: '',
- showCenterVisible: false,
- windStation: [],
- choiceIndex: -1,
- clickFlag: 'jieRu',
- cardCur: 0,
- spopupWrapperHeight: "",
- windStationListHeight: '',
- drawerList: [],
- leftNavigationtitle:'预测功能分组',
- plusDrawerList: [],
- utils: utils,
- margintop: '',
- margintopThree: '',
- messageTop: '',
- // 直接使用需要进行声明
- // 直接使用需要进行声明 End
- date: '2020/03/27 08:00:00',
- timestamp: "",
- option: '',
- cuIconList: [{
- cuIcon: 'weather',
- color: 'white',
- name: '天气',
- }, {
- cuIcon: 'maxTemperature',
- color: 'white',
- name: '最高温度',
- }, {
- cuIcon: 'minTemperature',
- color: 'white',
- name: '最低温度',
- }, {
- cuIcon: 'sunRise',
- color: 'white',
- name: '日出',
- }, {
- cuIcon: 'sunSet',
- color: 'white',
- name: '日落',
- }, {
- cuIcon: 'sunDuration',
- color: 'white',
- name: '持续时间',
- }, {
- cuIcon: 'dayWeather',
- color: 'white',
- name: '白气象',
- }, {
- cuIcon: 'dayTemperature',
- color: 'white',
- name: '白气温',
- }, {
- cuIcon: 'dayRealFeel',
- color: 'white',
- name: '白体感',
- }, {
- cuIcon: 'dayPrecipitation',
- color: 'white',
- name: '白降水',
- }, {
- cuIcon: 'dayWindDirection',
- color: 'white',
- name: '白风向',
- }, {
- cuIcon: 'dayWindSpeed',
- color: 'white',
- name: '白风速',
- }, {
- cuIcon: 'dayGust',
- color: 'white',
- name: '白阵风速',
- }, {
- cuIcon: 'nightWeather',
- color: 'white',
- name: '夜气象',
- }, {
- cuIcon: 'nightTemperature',
- color: 'white',
- name: '夜温度',
- }, {
- cuIcon: 'nightRealFeel',
- color: 'white',
- name: '夜体感',
- }, {
- cuIcon: 'nightPrecipitation',
- color: 'white',
- name: '夜降水',
- }, {
- cuIcon: 'nightWindDirection',
- color: 'white',
- name: '夜风向',
- }, {
- cuIcon: 'nightWindSpeed',
- color: 'white',
- name: '夜风速',
- }, {
- cuIcon: 'nightGust',
- color: 'white',
- name: '夜阵风速',
- }],
- gridCol: 4,
- gridBorder: false,
- weatherProphetDataAll_17Hour: [],
- weatherProphetData_17Hour: [{
- date: '',
- id: '',
- realfeel: '',
- region: '',
- speed: '',
- temperature: '',
- weather: '',
- winddirection: '',
- windpowerstationid: ''
- }],
- weatherProphetDataAll_1: [],
- weatherProphetData_1: [{
- weather1: '',
- gust1: '',
- gust2: '',
- id: '',
- maximumtem: '',
- minimumtem: '',
- precipitation1: "",
- precipitation2: '',
- realfeel1: '',
- realfeel1: '',
- recodedata: '',
- region: '',
- speed1: '',
- speed2: '',
- sunduration: "",
- sunrise: '',
- sunset: '',
- temperature1: '',
- temperature2: '',
- weather: '',
- weather1: '',
- weather2: "",
- winddirection1: '',
- winddirection2: '',
- windpowerstationid: '',
- }],
- weatherSwitch: true,
- FDC: "MHS_FDC",
- windPowerStations: [],
- widthToday: '',
- heightToday: '',
- width: '',
- height: '',
- windowWidth: "",
- windowHeight: "",
- windowWidth7: "",
- windowHeight7:"",
- windowWidth8_15: "",
- windowHeight8_15:"",
- windowWidth40: "",
- windowHeight40:"",
- ziHeight: '',
- fontSize: '',
- xianHeight: '',
- marginleftBiao: '',
- scrollHeight: '',
- choiceFontSize: "",
- choiceMarginTop: "",
- xAxisFontSize: "",
- seriesTextSize: "",
- cardWidth: "",
- cardHeight: "",
- isToday: false,
- scrollposition: 0,
- weatherProphetDataAll_8_15: [],
- weatherProphetData_8_15: [],
- socket: "",
- startDate: "",
- isCard: false,
- endDate: "",
- cWidth: '',
- cHeight: '',
- cWidth40: '',
- cHeight40: '',
- pixelRatio: 1,
- pixelRatio40: 1,
- realFeelFlag: true,
- temperatureFlag: false,
- speedFlag: false,
- tabCur: 0,
- mainCur: 0,
- scrollposition_uCharts: 0,
- scrollposition_list: 0,
- isCard40: false,
- weatherProphetData_40: [],
- weatherProphetDataAll_40: [],
- startDate40: "",
- endDate40: "",
- realFeelFlag40: true,
- temperatureFlag40: false,
- speedFlag40: false,
- tabCur40: 0,
- mainCur40: 0,
- choiceFontSize40: "",
- choiceMarginTop40: "",
- xAxisFontSize40: "",
- seriesTextSize40: "",
- cardWidth40: "",
- cardHeight40: "",
- scrollListHeight40: "",
- socketTask8_15: '',
- socketTask40: '',
- socketTask: '',
- weatherInformation: {},
- cuIconList7: [{
- cuIcon: 'weather',
- color: 'white',
- name: '天气',
- }, {
- cuIcon: 'maxTemperature',
- color: 'white',
- name: '最高温度',
- }, {
- cuIcon: 'minTemperature',
- color: 'white',
- name: '最低温度',
- }, {
- cuIcon: 'sunRise',
- color: 'white',
- name: '日出',
- }, {
- cuIcon: 'sunSet',
- color: 'white',
- name: '日落',
- }, {
- cuIcon: 'sunDuration',
- color: 'white',
- name: '持续时间',
- }, {
- cuIcon: 'dayWeather',
- color: 'white',
- name: '白气象',
- }, {
- cuIcon: 'dayTemperature',
- color: 'white',
- name: '白气温',
- }, {
- cuIcon: 'dayRealFeel',
- color: 'white',
- name: '白体感',
- }, {
- cuIcon: 'dayPrecipitation',
- color: 'white',
- name: '白降水',
- }, {
- cuIcon: 'dayWindDirection',
- color: 'white',
- name: '白风向',
- }, {
- cuIcon: 'dayWindSpeed',
- color: 'white',
- name: '白风速',
- }, {
- cuIcon: 'dayGust',
- color: 'white',
- name: '白阵风速',
- }, {
- cuIcon: 'nightWeather',
- color: 'white',
- name: '夜气象',
- }, {
- cuIcon: 'nightTemperature',
- color: 'white',
- name: '夜温度',
- }, {
- cuIcon: 'nightRealFeel',
- color: 'white',
- name: '夜体感',
- }, {
- cuIcon: 'nightPrecipitation',
- color: 'white',
- name: '夜降水',
- }, {
- cuIcon: 'nightWindDirection',
- color: 'white',
- name: '夜风向',
- }, {
- cuIcon: 'nightWindSpeed',
- color: 'white',
- name: '夜风速',
- }, {
- cuIcon: 'nightGust',
- color: 'white',
- name: '夜阵风速',
- }],
- assemblyWidth7: '',
- assemblyHeight7: '',
- weatherSwitch7: true,
- weatherProphetDataAll_7: [],
- weatherProphetData_7: [],
- weatherIconsDay7: [],
- weatherIconsNight7: [],
- classNameDay7: [],
- classNameNight7: [],
- height7: "",
- width7: "",
- ziHeight7: '',
- fontSize7: '',
- xianHeight7: '',
- nightmarginleft7: '',
- socketTask7: '',
- userCanviewthewindfarm:[],
- permissionsInformation:[]
- }
- },
- created: function() {
- // this.pushWindPowerStationNameToSessionStorage("麻黄山");
- this.viewUserid();
- this.monitoringAuthority();
-
- this.address = this.dataprocessing.getWindPowerStationName();
- this.FDC=this.dataprocessing.getWindPowerStationId();
- this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
-
- this.$nextTick(function() {
- this.getWeatherDataToday();
- this.getWeatherData7();
- });
- this.cWidth = uni.upx2px(2000);
- this.cHeight = uni.upx2px(350);
- this.cWidth40 = uni.upx2px(5000);
- this.cHeight40 = uni.upx2px(350);
-
- this.windStation =this.dataprocessing.getWindPowerStationNameByNames(this.address);
- this.windStationName = this.windStation[0].replace('风电场', '');
-
- this.windStationListHeight = this.windStation.length * 50 + 40 + 'px';
- this.spopupWrapperHeight = this.windStation.length * 50 + 90 + 'px';
- this.windowWidth = uni.getSystemInfoSync().windowWidth;
- this.windowHeight = uni.getSystemInfoSync().windowHeight;
- if (this.windowWidth >= 768) {
- this.margintop="60px";
- this.margintopThree="80px";
- this.messageTop="10px";
- this.fontSize="18px";
- this.xianHeight="168px";
- this.marginleftBiao="50px";
- } else {
- this.margintop="3.5%";
- this.margintopThree="3.5%";
- this.fontSize="14px";
- this.xianHeight="85%";
- this.marginleftBiao="26px";
- }
- this.heightToday = parseInt(uni.getSystemInfoSync().windowHeight - 440) + "px";
- this.widthToday = parseInt(uni.getSystemInfoSync().windowWidth) + "px";
-
- this.windowWidth7 = uni.getSystemInfoSync().windowWidth;
- this.windowHeight7 = uni.getSystemInfoSync().windowHeight;
- if(this.windowWidth7>=768){
- this.margintop7="60px";
- this.margintopThree7="80px";
- this.messageTop7="10px";
- this.fontSize7="18px";
- this.xianHeight7="168px";
- this.nightmarginleft7="20px";
- }else{
- this.margintop7="3.5%";
- this.margintopThree7="3.5%";
- this.fontSize7="14px";
- this.xianHeight7="85%";
- this.nightmarginleft7="20px";
- }
- this.height7 = parseInt(uni.getSystemInfoSync().windowHeight - 440) + "px";
- this.width7 = parseInt(uni.getSystemInfoSync().windowWidth) + "px";
-
- this.windowWidth8_15 = uni.getSystemInfoSync().windowWidth;
- this.windowHeight8_15 = uni.getSystemInfoSync().windowHeight;
- if(this.windowWidth8_15>=768){
- this.width="99";
- this.choiceFontSize="22px";
- this.choiceMarginTop="27.5px";
- this.xAxisFontSize=18;
- this.seriesTextSize=18;
- this.cardWidth=100;
- this.cardHeight=130;
- this.scrollHeight=(this.windowHeight8_15-550)+"px";
- }
- else{
- this.width="100";
- this.choiceFontSize="15px";
- this.choiceMarginTop="0";
- this.xAxisFontSize=12;
- this.seriesTextSize=12;
- this.cardWidth=100;
- this.cardHeight=100;
- this.scrollHeight=(this.windowHeight8_15-360)+"px";
- }
- this.windowWidth40 = uni.getSystemInfoSync().windowWidth;
- this.windowHeight40 = uni.getSystemInfoSync().windowHeight;
- if(this.windowWidth40>=768){
- this.choiceFontSize40="22px";
- this.choiceMarginTop40="27.5px";
- this.xAxisFontSize40=18;
- this.seriesTextSize40=18;
- this.cardWidth40=100;
- this.cardHeight40=130;
- this.scrollListHeight40=(this.windowHeight40-550)+"px";
- }else{
- this.choiceFontSize40="15px";
- this.choiceMarginTop40="0";
- this.xAxisFontSize40=12;
- this.seriesTextSize40=12;
- this.cardWidth40=100;
- this.cardHeight40=100;
- this.scrollListHeight40=(this.windowHeight40-360)+"px";
- }
- },
- onShow() {
-
- this.address = this.dataprocessing.getWindPowerStationName();
- this.FDC=this.dataprocessing.getWindPowerStationId();
- this.windPowerStationId =this.dataprocessing.getWindPowerStationId();
-
- this.getWeatherData();
- this.getWeatherDataToday();
- this.getWeatherData7();
- },
- onLoad: function() {
- this.address = this.getWindPowerStationNameToSessionStorage();
- this.cWidth = uni.upx2px(2000);
- this.cHeight = uni.upx2px(350);
- this.getServerData();
- this.cWidth40 = uni.upx2px(5000);
- this.cHeight40 = uni.upx2px(350);
- this.getServerData40();
- },
- onHide() {
- debugger
- //this.$refs.drawer.closeDrawer();
- this.hideModal();
- },
- computed: {
- backStageIp: function() {
- return this.$store.state.wholeSituationBackStageIp;
- },
- backStagePort: function() {
- return this.$store.state.wholeSituationBackStagePort;
- },
- windpowerstationNameToId: function() {
- return this.$store.state.windpowerstationNameToId;
- }
- },
- methods: {
- viewUserid:function(){
- let _this = this;
- _this.userid =uni.getStorageSync('userid')
- //_this.userid = sessionStorage.getItem('userid');
- uni.request({
- url: 'http://' + this.backStageIp + ':' + this.backStagePort + '/GyeeorganController/GyeeOrganList?userid=' + _this.userid,
- data: {},
- method: 'GET',
- success: function(res) {
- for(let i=0;i<res.data.data.length;i++){
- // _this.name.push(res.data.data[i].describes);
- // _this.windId.push(res.data.data[i].name);
- }
- for(let j=0;j<res.data.data.length;j++){
- var a = {};
- _this.$set(a,"name",res.data.data[j].describes);
-
- if (res.data.data[j].describes == '宁夏新能源公司') {
- _this.$set(a,"windId",'MHS_FDC');
- }else if(res.data.data[j].describes == '河北能源集团')
- {
- _this.$set(a,"windId",'CL_FDC');
- }else{
- _this.$set(a,"windId",res.data.data[j].name);
- }
-
- _this.plusDrawerList.push(a);
- }
- },
- })
- },
- monitoringAuthority:function(){
- let _this = this;
- uni.request({
- url: 'http://' + this.backStageIp + ':' + this.backStagePort +
- '/GyeepermissionController/GyeePermissionList?userid=' + _this.userid,
- data: {},
- method: 'GET',
- success: function(res) {
- console.log(res);
- for (let i = 0; i < res.data.data.length; i++) {
- if (res.data.data[i].describes == "预测") {
- var b = {};
- _this.$set(b, "gyeePermissionList", res.data.data[i].gyeePermissionList);
- _this.permissionsInformation.push(b);
- console.log(_this.permissionsInformation);
- for (let k = 0; k < _this.permissionsInformation[0].gyeePermissionList.length; k++) {
- if (_this.permissionsInformation[0].gyeePermissionList[k].parent == 3) {
- var c = {};
- var d = {};
- _this.$set(c, "name", _this.permissionsInformation[0].gyeePermissionList[k].permisssionname);
- _this.$set(c, "remark1",_this.permissionsInformation[0].gyeePermissionList[k].remark1);
- _this.drawerList.push(c);
- }
- }
- console.log(_this.drawerList)
- }
- }
- }
- })
- },
- openDrawer: function() {
- this.outThreeLineDrawerIsShow=true;
- this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
- },
- closeDrawer: function() {
- this.drawerIsShow = false;
- },
- showModal(e) {
- this.modalName = e.currentTarget.dataset.target;
- this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
- },
- hideModal() {
- this.modalName = null;
- this.$refs.plusDrawer.hideModal(this.modalName);
- this.choiceIndex = -1;
- },
- onHide() {
- debugger
- //this.$refs.drawer.closeDrawer();
- this.hideModal();
- },
- choiceWindStation: function(item, index) {
- this.choiceIndex = index;
- this.windStationName = item.replace('风电场', '');
- this.modalWindStationName = item.replace('风电场', '');
- this.address = item;
- this.pushWindPowerStationNameToSessionStorage(item);
- let _this = this;
- setTimeout(function() {
- // _this.hideModal();
- _this.showCenterVisible = false;
- _this.choiceIndex = -1;
- _this.cardCur = index;
- }, 1000);
-
- this.FDC =this.dataprocessing.getWindPowerStationNameByWeatherId(item);
- this.dataprocessing.putWindPowerStationId(this.FDC);
- //uni.setStorageSync('windPowerStationId',this.FDC);
- if (this.weatherTodaybutton == true) {
- this.getWeatherDataToday();
- }
- if (this.weatherSevendaybutton == true) {
- this.getWeatherData7();
- }
- if (this.weatherFromeighttofifteendaysbutton == true) {
- this.getWeatherData();
- }
- if (this.weatherFortydaysbutton == true) {
- this.getWeatherData40();
- }
- },
- cardSwiper(e) {
- let _this = this;
- this.cardCur = e.detail.current;
- for (let i = 0; i < this.windStation.length; i++) {
- if (this.cardCur == i) {
- // if (this.address == '宁夏新能源公司' || this.address == '河北能源集团' ) {
- // this.windStationName = this.windStation[i].replace('风电场', '');
- // this.modalWindStationName = this.windStation[i].replace('风电场', '');
- // }
- if (this.address.search('风电场') != -1) {
- if (this.windStation[i].search('风电场') != -1) {
- this.windStationName = this.windStation[i].replace('风电场', '');
- } else {
- this.windStationName = this.windStation[i];
- }
- this.modalWindStationName = this.windStation[i];
- }
- this.windMotorMatrixDetailAll = this.windMotorMatrixDetailMaHuagShan;
- this.getWindMotorStatusCard();
- this.clickWindMotorStatusCard(this.clickFlag);
- this.getBackgroundColor();
- this.showCardModal('Modal');
- setTimeout(function() {
- _this.hideCardModal();
- }, 1000);
- }
- }
- },
- pushWindPowerStationNameToSessionStorage(windpowerstationName) {
- uni.setStorageSync('windpowerstationName', windpowerstationName);
- //sessionStorage.setItem('windpowerstationName', windpowerstationName);
- //alert("v"+ sessionStorage.getItem("windpowerstationName"));
- //this.common.goback('/pages/index/Index');
- },
- getWindPowerStationNameToSessionStorage() {
- uni.getStorageSync('windpowerstationName');
- return uni.getStorageSync('windpowerstationName');
- },
- getWeatherDataToday: function() {
- //得到数据
- let _this = this;
- // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
- // 按小时数据
- this.socketTaskHour = uni.connectSocket({
- // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
- url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_3/functionNumber_2',
- success(data) {
- console.log("websocket连接成功");
- },
- });
- // 今天数据
- this.socketTaskToday = uni.connectSocket({
- // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
- url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_2/functionNumber_1',
- success(data) {
- console.log("websocket连接成功");
- },
- });
- this.socketTaskToday.onOpen((res) => {
- console.log("WebSocket连接正常打开中...!");
- this.is_open_socket = true;
- // 注:只有连接正常打开中 ,才能正常收到消息
- this.socketTaskToday.onMessage((res) => {
- //console.log("收到服务器内容:" + res.data);
- _this.weatherProphetDataAll_1 = res.data;
- _this.weatherProphetDataAll_1 = JSON.parse(res.data);
- _this.weatherProphetData_1 = [];
- //判断风场id 40天
- //debugger
- for (let i = 0; i < _this.weatherProphetDataAll_1.length; i++) {
- if (_this.weatherProphetDataAll_1[i].windpowerstationid == _this.FDC) {
- //debugger
- _this.weatherProphetData_1.push(_this.weatherProphetDataAll_1[i]);
- }
- }
- _this.$nextTick(function() {
- if (_this.$refs.thermometerCard == undefined) {
- } else {
- _this.$refs.thermometerCard.getHourWeatherData("90", "260", _this.weatherProphetData_17Hour, _this.weatherProphetData_1);
- }
- })
- });
- })
- // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
- this.socketTaskHour.onOpen((res) => {
- console.log("WebSocket连接正常打开中...!");
- this.is_open_socket = true;
- // 注:只有连接正常打开中 ,才能正常收到消息
- this.socketTaskHour.onMessage((res) => {
- //console.log("收到服务器内容:" + res.data);
- _this.weatherProphetDataAll_17Hour = res.data;
- _this.weatherProphetDataAll_17Hour = JSON.parse(res.data);
-
- if(_this.weatherProphetDataAll_17Hour.length!=0)
- {
- _this.weatherProphetData_17Hour = [];
- //判断风场id 40天
- for (let i1 = 0; i1 < _this.weatherProphetDataAll_17Hour.length; i1++) {
- if (_this.weatherProphetDataAll_17Hour[i1].windpowerstationid == _this.FDC) {
- //debugger
- _this.weatherProphetData_17Hour.push(_this.weatherProphetDataAll_17Hour[i1]);
- }
- }
- // console.log(_this.weatherProphetData_17Hour)
- _this.$nextTick(function() {
- if (_this.$refs.thermometerCard == undefined) {
-
- } else {
- _this.$refs.thermometerCard.getHourWeatherData("90", "260", _this.weatherProphetData_17Hour, _this.weatherProphetData_1);
- }
- })
- }
- });
- })
- // 这里仅是事件监听【如果socket关闭了会执行】
- this.socketTaskHour.onClose(() => {
- console.log("已经被关闭了")
- })
- this.socketTaskToday.onClose(() => {
- console.log("已经被关闭了")
- })
- },
- getWeatherData7: function() {
- let _this = this;
- // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
- this.socketTask7 = uni.connectSocket({
- // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
- url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_3/functionNumber_1',
- success(data) {
- console.log("websocket连接成功");
- },
- });
- // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
- this.socketTask7.onOpen((res) => {
- console.log("WebSocket连接正常打开中...!");
- this.is_open_socket = true;
- // 注:只有连接正常打开中 ,才能正常收到消息
- this.socketTask7.onMessage((res) => {
- //console.log("收到服务器内容:" + res.data);
- _this.weatherProphetDataAll_7 = res.data;
- _this.weatherProphetDataAll_7 = JSON.parse(res.data);
- _this.weatherProphetData_7 = [];
- //判断风场id 40天
- for (let i = 0; i < _this.weatherProphetDataAll_7.length; i++) {
- if (_this.weatherProphetDataAll_7[i].windpowerstationid == _this.FDC) {
- _this.weatherProphetData_7.push(_this.weatherProphetDataAll_7[i]);
- }
- }
- // console.log(_this.weatherProphetData_7);
- if (_this.$refs.WeatherTemperatureWindSpeedCard_7 == undefined) {
- } else {
- _this.$refs.WeatherTemperatureWindSpeedCard_7.weatherInformationCard('110', '80', _this.classNameDay7,
- _this
- .classNameNight7,
- _this.weatherProphetData_7);
- }
- });
- })
- // 这里仅是事件监听【如果socket关闭了会执行】
- this.socketTask7.onClose(() => {
- console.log("已经被关闭了")
- })
- },
- weatherDayNightSwitch: function(flag) {
- if (flag == "day") {
- this.weatherSwitch = true;
- } else if (flag == "night") {
- this.weatherSwitch = false;
- }
- },
- getWeatherData: function() {
- let _this = this;
- this.socketTask8_15 = uni.connectSocket({
- // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
- url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_4/functionNumber_1',
- success(data) {
- console.log("websocket连接成功");
- },
- });
- this.socketTask8_15.onOpen((res) => {
- console.log("WebSocket连接正常打开中...!");
- this.is_open_socket = true;
- // 注:只有连接正常打开中 ,才能正常收到消息
- this.socketTask8_15.onMessage((res) => {
- _this.weatherProphetDataAll_8_15 = JSON.parse(res.data);
- _this.weatherProphetData_8_15 = [];
- //判断风场id 8~15天
- for (let i = 0; i < _this.weatherProphetDataAll_8_15.length; i++) {
- if (_this.weatherProphetDataAll_8_15[i].windpowerstationid == _this.FDC) {
- _this.weatherProphetData_8_15.push(_this.weatherProphetDataAll_8_15[i]);
- }
- }
- if (_this.$refs.weatherCalendarCardList8_15 == undefined) {
- } else {
- _this.$refs.weatherCalendarCardList8_15.getWeatherData(_this.width, "400", _this.weatherProphetData_8_15);
- }
- _this.getWeatherDataUchart();
- })
- })
- this.socketTask8_15.onClose(() => {
- console.log("已经被关闭了")
- })
- },
- getWeatherDataUchart: function() {
- let startMonth = new Date(this.weatherProphetData_8_15[0].recodedata).getMonth() + 1;
- let startDay = new Date(this.weatherProphetData_8_15[0].recodedata).getDate();
- this.startDate = startMonth + "月" + startDay + "日";
- let endMonth = new Date(this.weatherProphetData_8_15[this.weatherProphetData_8_15.length - 1].recodedata).getMonth() +
- 1;
- let endDay = new Date(this.weatherProphetData_8_15[this.weatherProphetData_8_15.length - 1].recodedata).getDate();
- this.endDate = endMonth + "月" + endDay + "日";
- this.getServerData();
- },
- getWeatherData40: function() {
- let _this = this;
- // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
- this.socketTask40 = uni.connectSocket({
- // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
- url: 'ws://' + this.backStageIp + ':' + this.backStagePort + '/websocket/pageNumber_5/functionNumber_1',
- success(data) {
- console.log("websocket连接成功");
- },
- });
- // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
- this.socketTask40.onOpen((res) => {
- console.log("WebSocket连接正常打开中...!");
- this.is_open_socket = true;
- // 注:只有连接正常打开中 ,才能正常收到消息
- this.socketTask40.onMessage((res) => {
- //console.log("收到服务器内容:" + res.data);
- _this.weatherProphetDataAll_40 = res.data;
- _this.weatherProphetDataAll_40 = JSON.parse(res.data);
- _this.weatherProphetData_40 = [];
- //判断风场id 40天
- for (let i = 0; i < _this.weatherProphetDataAll_40.length; i++) {
- if (_this.weatherProphetDataAll_40[i].windpowerstationid == _this.FDC) {
- _this.weatherProphetData_40.push(_this.weatherProphetDataAll_40[i]);
- }
- }
- //console.log(_this.weatherProphetData_40);
- let startMonth40 = new Date(_this.weatherProphetData_40[0].recodedata).getMonth() + 1;
- let startDay40 = new Date(_this.weatherProphetData_40[0].recodedata).getDate();
- _this.startDate40 = startMonth40 + "月" + startDay40 + "日";
- let endMonth40 = new Date(_this.weatherProphetData_40[_this.weatherProphetData_40.length - 1].recodedata).getMonth() +
- 1;
- let endDay40 = new Date(_this.weatherProphetData_40[_this.weatherProphetData_40.length - 1].recodedata).getDate();
- _this.endDate40 = endMonth40 + "月" + endDay40 + "日";
- if (_this.$refs.weatherCalendarCardList40 == undefined) {
- } else {
- _this.$refs.weatherCalendarCardList40.getWeatherData40(this.cardWidth40, this.cardHeight40, _this.weatherProphetData_40);
- }
- _this.getServerData40();
- });
- })
- // 这里仅是事件监听【如果socket关闭了会执行】
- this.socketTask40.onClose(() => {
- console.log("已经被关闭了")
- })
- },
- realFeelSwitch() {
- this.realFeelFlag = true;
- this.temperatureFlag = false;
- this.speedFlag = false;
- this.getServerData();
- },
- temperatureSwitch() {
- this.realFeelFlag = false;
- this.temperatureFlag = true;
- this.speedFlag = false;
- this.getServerData();
- },
- speedSwitch() {
- this.realFeelFlag = false;
- this.temperatureFlag = false;
- this.speedFlag = true;
- this.getServerData();
- },
- realFeelSwitch40() {
- this.realFeelFlag40 = true;
- this.temperatureFlag40 = false;
- this.speedFlag40 = false;
- this.getServerData40();
- },
- temperatureSwitch40() {
- this.realFeelFlag40 = false;
- this.temperatureFlag40 = true;
- this.speedFlag40 = false;
- this.getServerData40();
- },
- speedSwitch40() {
- this.realFeelFlag40 = false;
- this.temperatureFlag40 = false;
- this.speedFlag40 = true;
- this.getServerData40();
- },
- getServerData() {
- let LineA = {
- categories: ['02/21', '02/22', '02/23', '02/24', '02/25', '02/26', '02/27'],
- series: [{
- name: '体感温度',
- data: [12, 13, 12, 11, 16, 14, 12],
- color: '#F3F3F3',
- textColor: '#FFFFFF',
- textSize: this.seriesTextSize,
- format: (val) => {
- return val + '℃'
- }
- }, {
- name: '温度',
- data: [70, 40, 65, 100, 44, 68],
- color: '#FFFFFF',
- textColor: "#FFFFFF",
- textSize: this.seriesTextSize,
- format: (val) => {
- return val + '℃'
- }
- }, {
- name: '风速',
- data: [100, 80, 95, 150, 112, 132],
- color: '#FFFFFF',
- textColor: "#FFFFFF",
- textSize: this.seriesTextSize,
- format: (val) => {
- return val + 'km/h'
- }
- }]
- };
- LineA.categories = [];
- LineA.series[0].data = [];
- LineA.series[1].data = [];
- LineA.series[2].data = [];
- if (this.realFeelFlag) {
- for (let i = 0; i < this.weatherProphetData_8_15.length; i++) {
- let xAxisMonth = new Date(this.weatherProphetData_8_15[i].recodedata).getMonth() + 1;
- let xAxisData = new Date(this.weatherProphetData_8_15[i].recodedata).getDate();
- if (xAxisMonth < 10) {
- xAxisMonth = "0" + xAxisMonth;
- }
- if (xAxisData < 10) {
- xAxisData = "0" + xAxisData;
- }
- LineA.categories.push(xAxisMonth + '/' + xAxisData);
- LineA.series[0].data.push(this.weatherProphetData_8_15[i].realfeel1);
- }
- } else if (this.temperatureFlag) {
- for (let i = 0; i < this.weatherProphetData_8_15.length; i++) {
- let xAxisMonth = new Date(this.weatherProphetData_8_15[i].recodedata).getMonth() + 1;
- let xAxisData = new Date(this.weatherProphetData_8_15[i].recodedata).getDate();
- if (xAxisMonth < 10) {
- xAxisMonth = "0" + xAxisMonth;
- }
- if (xAxisData < 10) {
- xAxisData = "0" + xAxisData;
- }
- LineA.categories.push(xAxisMonth + '/' + xAxisData);
- LineA.series[1].data.push(this.weatherProphetData_8_15[i].temperature1);
- }
- } else if (this.speedFlag) {
- for (let i = 0; i < this.weatherProphetData_8_15.length; i++) {
- let xAxisMonth = new Date(this.weatherProphetData_8_15[i].recodedata).getMonth() + 1;
- let xAxisData = new Date(this.weatherProphetData_8_15[i].recodedata).getDate();
- if (xAxisMonth < 10) {
- xAxisMonth = "0" + xAxisMonth;
- }
- if (xAxisData < 10) {
- xAxisData = "0" + xAxisData;
- }
- LineA.categories.push(xAxisMonth + '/' + xAxisData);
- LineA.series[2].data.push(this.weatherProphetData_8_15[i].speed1);
- }
- }
- //LineA.categories=res.data.data.LineA.categories;
- // LineA.series=res.data.data.LineA.series;
- this.showLineA("canvasLineA", LineA);
- },
- showLineA(canvasId, chartData) {
- var _self = this;
- var canvaLineA = new uCharts({
- $this: _self,
- canvasId: canvasId,
- type: 'line',
- fontSize: 11,
- legend: {
- show: false
- },
- dataLabel: true,
- dataPointShape: true,
- background: '#FFFFFF',
- pixelRatio: _self.pixelRatio,
- categories: chartData.categories,
- series: chartData.series,
- animation: true,
- xAxis: {
- disableGrid: true,
- type: 'grid',
- fontColor: '#FFFFFF',
- gridColor: '#FFFFFF',
- gridType: 'dash',
- dashLength: 1,
- fontSize: _self.xAxisFontSize
- },
- yAxis: {
- disableGrid: true,
- gridType: 'dash',
- gridColor: '#CCCCCC',
- dashLength: 1,
- disabled: true,
- splitNumber: 5,
- min: -40,
- max: 50,
- },
- width: _self.cWidth * _self.pixelRatio,
- height: _self.cHeight * _self.pixelRatio,
- extra: {
- line: {
- type: 'straight'
- }
- }
- });
- },
- getServerData40() {
- let LineA40 = {
- categories: ['2012', '2013', '2014', '2015', '2016', '2017'],
- series: [{
- name: '体感温度',
- data: [35, 20, 25, 37, 4, 20],
- color: '#FFFFFF',
- textColor: "#FFFFFF",
- textSize: this.seriesTextSize40,
- format: (val) => {
- return val + '℃'
- }
- }, {
- name: '温度',
- data: [70, 40, 65, 100, 44, 68],
- color: '#FFFFFF',
- textColor: "#FFFFFF",
- textSize: this.seriesTextSize40,
- format: (val) => {
- return val + '℃'
- }
- }, {
- name: '风速',
- data: [100, 80, 95, 150, 112, 132],
- color: '#FFFFFF',
- textColor: "#FFFFFF",
- textSize: this.seriesTextSize40,
- format: (val) => {
- return val + 'km/h'
- }
- }]
- };
- LineA40.categories = [];
- LineA40.series[0].data = [];
- LineA40.series[1].data = [];
- LineA40.series[2].data = [];
- if (this.realFeelFlag40) {
- for (let i = 0; i < this.weatherProphetData_40.length; i++) {
- let xAxisMonth40 = new Date(this.weatherProphetData_40[i].recodedata).getMonth() + 1;
- let xAxisData40 = new Date(this.weatherProphetData_40[i].recodedata).getDate();
- if (xAxisMonth40 < 10) {
- xAxisMonth40 = "0" + xAxisMonth40;
- }
- if (xAxisData40 < 10) {
- xAxisData40 = "0" + xAxisData40;
- }
- LineA40.categories.push(xAxisMonth40 + '/' + xAxisData40);
- LineA40.series[0].data.push(this.weatherProphetData_40[i].realfeel1);
- }
- } else if (this.temperatureFlag40) {
- for (let i = 0; i < this.weatherProphetData_40.length; i++) {
- let xAxisMonth40 = new Date(this.weatherProphetData_40[i].recodedata).getMonth() + 1;
- let xAxisData40 = new Date(this.weatherProphetData_40[i].recodedata).getDate();
- if (xAxisMonth40 < 10) {
- xAxisMonth40 = "0" + xAxisMonth40;
- }
- if (xAxisData40 < 10) {
- xAxisData40 = "0" + xAxisData40;
- }
- LineA40.categories.push(xAxisMonth40 + '/' + xAxisData40);
- LineA40.series[1].data.push(this.weatherProphetData_40[i].temperature1);
- }
- } else if (this.speedFlag40) {
- for (let i = 0; i < this.weatherProphetData_40.length; i++) {
- let xAxisMonth40 = new Date(this.weatherProphetData_40[i].recodedata).getMonth() + 1;
- let xAxisData40 = new Date(this.weatherProphetData_40[i].recodedata).getDate();
- if (xAxisMonth40 < 10) {
- xAxisMonth40 = "0" + xAxisMonth40;
- }
- if (xAxisData40 < 10) {
- xAxisData40 = "0" + xAxisData40;
- }
- LineA40.categories.push(xAxisMonth40 + '/' + xAxisData40);
- LineA40.series[2].data.push(this.weatherProphetData_40[i].speed1);
- }
- }
- this.showLineA40("canvasLineA40", LineA40);
- },
- showLineA40(canvasId, chartData) {
- var _self = this;
- var canvaLineA40 = new uCharts({
- $this: _self,
- canvasId: canvasId,
- type: 'line',
- fontSize: 11,
- legend: {
- show: false
- }, //图例
- dataLabel: true, //数据点标签
- dataPointShape: true,
- background: '#FFFFFF',
- pixelRatio: _self.pixelRatio40,
- categories: chartData.categories,
- series: chartData.series,
- animation: true,
- xAxis: {
- type: 'grid',
- gridColor: '#CCCCCC',
- gridType: 'dash',
- dashLength: 8,
- disableGrid: true, //网格线
- axisLine: true, //x轴轴线
- fontColor: "#FFFFFF",
- fontSize: _self.xAxisFontSize40
- },
- yAxis: {
- data: {
- disabled: false //y轴轴线
- },
- disableGrid: true, //网格线
- gridType: 'dash',
- gridColor: '#CCCCCC',
- dashLength: 8,
- splitNumber: 5,
- min: -40,
- max: 50,
- format: (val) => {
- return val.toFixed(0) + '元'
- }
- },
- width: _self.cWidth40 * _self.pixelRatio40,
- height: _self.cHeight40 * _self.pixelRatio40,
- padding: [0, 0, 10, -30], //画布填充边距,顺序为上右下左,同css,但必须4位
- extra: {
- line: {
- type: 'curve' //曲线
- }
- }
- });
- },
- uChartsScrollEvent(e) {
- this.scrollposition = e.detail.scrollLeft;
- // let scrollposition2 = scrollposition*0.98;
- },
- listScrollEvent(e) {
- this.scrollposition = e.detail.scrollTop;
- },
- uChartsScrollEvent40(e) {
- this.scrollposition_uCharts = e.detail.scrollLeft;
- if (e.detail.scrollLeft < 237) {
- this.scrollposition_list = 0;
- } else if (e.detail.scrollLeft < 487 && e.detail.scrollLeft > 237) {
- this.scrollposition_list = 104;
- } else if (e.detail.scrollLeft < 737 && e.detail.scrollLeft > 487) {
- this.scrollposition_list = 208;
- } else if (e.detail.scrollLeft < 987 && e.detail.scrollLeft > 737) {
- this.scrollposition_list = 312;
- } else if (e.detail.scrollLeft < 1237 && e.detail.scrollLeft > 987) {
- this.scrollposition_list = 416;
- } else if (e.detail.scrollLeft < 1487 && e.detail.scrollLeft > 1237) {
- this.scrollposition_list = 520;
- } else if (e.detail.scrollLeft < 1737 && e.detail.scrollLeft > 1487) {
- this.scrollposition_list = 624;
- } else if (e.detail.scrollLeft > 1737) {
- this.scrollposition_list = 656;
- }
- },
- listScrollEvent40(e) {
- this.scrollposition_list = e.detail.scrollTop;
- if (e.detail.scrollTop < 104) {
- this.scrollposition_uCharts = 0;
- } else if (e.detail.scrollTop < 208 && e.detail.scrollTop > 104) {
- this.scrollposition_uCharts = 237;
- } else if (e.detail.scrollTop < 312 && e.detail.scrollTop > 208) {
- this.scrollposition_uCharts = 487;
- } else if (e.detail.scrollTop < 416 && e.detail.scrollTop > 312) {
- this.scrollposition_uCharts = 737;
- } else if (e.detail.scrollTop < 520 && e.detail.scrollTop > 416) {
- this.scrollposition_uCharts = 987;
- } else if (e.detail.scrollTop < 624 && e.detail.scrollTop > 520) {
- this.scrollposition_uCharts = 1237;
- } else if (e.detail.scrollTop < 656 && e.detail.scrollTop > 624) {
- this.scrollposition_uCharts = 1487;
- }
- },
- changeTap: function(item) {
- this.weatherInformation = JSON.parse(item); //vue json转object
- },
- weatherDaySwitch7: function() {
- this.weatherSwitch7 = true;
- },
- weatherNightSwitch7: function() {
- this.weatherSwitch7 = false;
- },
- closeSocket: function() {
- this.socket.onclose;
- },
- openSocket: function() {
- this.socket.onOpen;
- },
- weatherToday() {
- this.weatherSevendaybutton = false;
- this.weatherFromeighttofifteendaysbutton = false;
- this.weatherFortydaysbutton = false;
- this.$nextTick(function() {
- this.weatherTodaybutton = true;
- this.getWeatherDataToday();
- });
- },
- weatherSevenday() {
- this.weatherTodaybutton = false;
- this.weatherFromeighttofifteendaysbutton = false;
- this.weatherFortydaysbutton = false;
- this.$nextTick(function() {
- this.weatherSevendaybutton = true;
- this.getWeatherData7();
- })
- },
- weatherFromeighttofifteendays() {
- this.weatherTodaybutton = false;
- this.weatherSevendaybutton = false;
- this.weatherFortydaysbutton = false;
- this.$nextTick(function() {
- this.weatherFromeighttofifteendaysbutton = true;
- this.getWeatherData();
- })
- },
- weatherFortydays() {
- this.weatherTodaybutton = false;
- this.weatherSevendaybutton = false;
- this.weatherFromeighttofifteendaysbutton = false;
- this.$nextTick(function() {
- this.weatherFortydaysbutton = true;
- this.getWeatherData40();
- })
- },
- },
- }
- </script>
- <style>
- body {
- font-family: '方正兰亭细黑_GBK';
- font-size: 12px;
- color: silver;
- background: #000;
- }
- @font-face {
- font-family: '方正兰亭细黑_GBK';
- src: url(../../static/fzltxh.TTF);
- }
- page {
- background-color: #1f1f1f;
- font-family: '方正兰亭细黑_GBK';
- overflow-x: hidden;
- overflow-y: hidden;
- }
- .notice {
- width: 50px;
- height: 45px;
- float: left;
- }
- .icon{
- font-size: 40upx;
- }
- .plus {
- width: 30px;
- height: 45px;
- float: right;
- color: white;
- font-size: 35px;
- line-height: 45px;
- text-align: right;
- margin-right: 2.5%;
- }
-
- .DrawerPage {
- position: fixed;
- width: 100vw;
- height: 100vh;
- left: 0vw;
- background-color: #1f1f1f;
- transition: all 0.4s;
- }
-
- .DrawerPage.show {
- transform: scale(0.9, 0.9);
- left: 85vw;
- box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
- transform-origin: 0;
- }
-
- .DrawerWindow {
- position: absolute;
- width: 85vw;
- height: 100vh;
- left: 0;
- top: 0;
- transform: scale(0.9, 0.9) translateX(-100%);
- opacity: 0;
- pointer-events: none;
- transition: all 0.4s;
- padding: 100upx 0;
- }
-
- .DrawerWindow.show {
- transform: scale(1, 1) translateX(0%);
- opacity: 1;
- pointer-events: all;
- }
-
- .DrawerClose {
- position: absolute;
- width: 40vw;
- height: 100vh;
- right: 0;
- top: 0;
- color: transparent;
- padding-bottom: 30upx;
- display: flex;
- align-items: flex-end;
- justify-content: center;
- background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.6));
- letter-spacing: 5px;
- font-size: 50upx;
- opacity: 0;
- pointer-events: none;
- transition: all 0.4s;
- }
-
- .DrawerClose.show {
- opacity: 1;
- pointer-events: all;
- width: 15vw;
- color: #fff;
- }
-
- .DrawerPage .cu-bar.tabbar .action button.cuIcon {
- width: 64upx;
- height: 64upx;
- line-height: 64upx;
- margin: 0;
- display: inline-block;
- }
-
- .DrawerPage .cu-bar.tabbar .action .cu-avatar {
- margin: 0;
- }
-
- .DrawerPage .nav {
- flex: 1;
- }
-
- .DrawerPage .nav .cu-item.cur {
- border-bottom: 0;
- position: relative;
- }
-
- .DrawerPage .nav .cu-item.cur::after {
- content: '';
- width: 10upx;
- height: 10upx;
- background-color: currentColor;
- position: absolute;
- bottom: 10upx;
- border-radius: 10upx;
- left: 0;
- right: 0;
- margin: auto;
- }
-
- .DrawerPage .cu-bar.tabbar .action {
- flex: initial;
- }
- .clickThedaystab {
- width: 100%;
- height: 40px;
- background-color: #242424;
- }
- .weatherToday {
- width: 25%;
- height: 40px;
- float: left;
- text-align: center;
- line-height: 40px;
- color: #DEDFE3;
- }
- .weatherTodaywhite {
- width: 25%;
- height: 40px;
- float: left;
- text-align: center;
- line-height: 40px;
- color: white;
- background-color: #3B3B3B;
- }
- .weatherSevenday {
- width: 25%;
- height: 40px;
- float: left;
- text-align: center;
- line-height: 40px;
- color: #DEDFE3;
- }
- .weatherSevendaywhite {
- width: 25%;
- height: 40px;
- float: left;
- text-align: center;
- line-height: 40px;
- color: white;
- background-color: #3B3B3B;
- }
- .weatherFromeighttofifteendays {
- width: 25%;
- height: 40px;
- float: left;
- text-align: center;
- line-height: 40px;
- color: #DEDFE3;
- }
- .weatherFromeighttofifteendayswhite {
- width: 25%;
- height: 40px;
- float: left;
- text-align: center;
- line-height: 40px;
- color: white;
- background-color: #3B3B3B;
- }
- .weatherFortydays {
- width: 25%;
- height: 40px;
- float: left;
- text-align: center;
- line-height: 40px;
- color: #DEDFE3;
- }
- .weatherFortydayswhite {
- width: 25%;
- height: 40px;
- float: left;
- text-align: center;
- line-height: 40px;
- color: white;
- background-color: #3B3B3B;
- }
- .cardContenter {
- border-radius: 20px;
- margin-left: 20px;
- width: 90%;
- height: 450upx;
- background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#024F93), color-stop(1.5, #cccccc), to(#437193));
- background: rgba(0, 0, 0, 0.1);
- }
- .weather8_15 {
- width: 100%;
- height: 100upx;
- }
- .weather8_15_text {
- width: 40%;
- height: 100upx;
- line-height: 100upx;
- color: white;
- margin-left: 5px;
- float: left;
- }
- .leftInnerMatrix {
- width: 100%;
- height: 100%;
- }
- .qiun-charts {
- width: 2000upx;
- height: 350upx;
- }
- .charts {
- width: 2000upx;
- height: 350upx;
- }
- .choice {
- width: calc(60% - 5px);
- height: 100upx;
- float: right;
- }
- .realFeelButtonWhite {
- height: 37px;
- line-height: 44px;
- color: white;
- font-size: 15px;
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 3px;
- border-bottom-color: #FFEE35;
- border-left-width: 0px;
- font-family: "microsoft yahei";
- float: right;
- }
- .realFeelButtonBlack {
- height: 37px;
- line-height: 44px;
- color: #DEDEDE;
- font-size: 15px;
- font-family: "microsoft yahei";
- float: right;
- }
- .temperatureButtonWhite {
- height: 37px;
- line-height: 44px;
- margin-left: 20px;
- color: white;
- font-size: 15px;
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 3px;
- border-bottom-color: #FFEE35;
- border-left-width: 0px;
- font-family: "microsoft yahei";
- float: right;
- }
- .temperatureButtonBlack {
- height: 37px;
- line-height: 44px;
- margin-left: 20px;
- color: #DEDEDE;
- font-size: 15px;
- font-family: "microsoft yahei";
- float: right;
- }
- .speedButtonWhite {
- height: 37px;
- line-height: 44px;
- margin-left: 20px;
- margin-right: 20px;
- color: white;
- font-size: 15px;
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 3px;
- border-bottom-color: #FFEE35;
- border-left-width: 0px;
- font-family: "microsoft yahei";
- float: right;
- }
- .speedButtonBlack {
- height: 37px;
- line-height: 44px;
- margin-left: 20px;
- margin-right: 20px;
- color: #DEDEDE;
- font-size: 15px;
- font-family: "microsoft yahei";
- float: right;
- }
- .scrollUcharts {
- white-space: nowrap;
- }
- .scrollList {
- height: 750upx;
- margin-top: 40upx ;
- }
- .cardContenter40 {
- border-radius: 20px;
- margin-left: 20px;
- width: 90%;
- height: 450upx;
- background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#024F93), color-stop(1.5, #cccccc), to(#437193));
- background: rgba(0, 0, 0, 0.1);
- }
- .dateAndChoice {
- width: 100%;
- height: 100upx;
- }
- .date {
- width: 40%;
- height: 100upx;
- line-height: 100upx;
- color: white;
- margin-left: 5px;
- float: left;
- }
- .choice40 {
- width: calc(60% - 5px);
- height: 100upx;
- float: right;
- }
- .realFeelButtonWhite40 {
- height: 37px;
- line-height: 44px;
- color: white;
- font-size: 15px;
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 3px;
- border-bottom-color: #FFEE35;
- border-left-width: 0px;
- font-family: "microsoft yahei";
- float: right;
- }
- .realFeelButtonBlack40 {
- height: 37px;
- // margin-top: 3px;
- line-height: 44px;
- /* margin-left: 20px; */
- color: #DEDEDE;
- font-size: 15px;
- font-family: "microsoft yahei";
- float: right;
- }
- .temperatureButtonWhite40 {
- height: 37px;
- // margin-top: 3px;
- line-height: 44px;
- margin-left: 20px;
- color: white;
- font-size: 15px;
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 3px;
- border-bottom-color: #FFEE35;
- border-left-width: 0px;
- font-family: "microsoft yahei";
- float: right;
- }
- .temperatureButtonBlack40 {
- height: 37px;
- line-height: 44px;
- margin-left: 20px;
- color: #DEDEDE;
- font-size: 15px;
- font-family: "microsoft yahei";
- float: right;
- }
- .speedButtonWhite40 {
- height: 37px;
- line-height: 44px;
- margin-left: 20px;
- margin-right: 20px;
- color: white;
- font-size: 15px;
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 3px;
- border-bottom-color: #FFEE35;
- border-left-width: 0px;
- font-family: "microsoft yahei";
- float: right;
- }
- .speedButtonBlack40 {
- height: 37px;
- line-height: 44px;
- margin-left: 20px;
- margin-right: 20px;
- color: #DEDEDE;
- font-size: 15px;
- font-family: "microsoft yahei";
- float: right;
- }
- .scrollUcharts40 {
- white-space: nowrap;
- }
- .scrollList40 {
- height: 330px;
- }
- .qiun-charts40 {
- width: 5000upx;
- height: 350upx;
- float: left;
- }
- .charts40 {
- width: 5000upx;
- height: 350upx;
- }
- .windStationNameAndChoice {
- clear: both;
- width: 100%;
- height: 30px;
- margin-top: 1%;
- color: silver;
- /* border: 1px solid red; */
- }
- .windStationName {
- width: 50%;
- height: 100%;
- float: left;
- line-height: 30px;
- font-size: 14px;
- margin-left: 9.5%;
- }
- .windStationChoice {
- width: 20%;
- height: 100%;
- float: right;
- text-align: right;
- line-height: 30px;
- font-size: 14px;
- margin-right: 5%;
- }
- .s-popup-wrapper {
- width: 500rpx;
- background-color: #f0f0f0;
- }
- .s-popup-title {
- width: 100%;
- height: 50px;
- background-color: #211E21;
- }
- .s-popup-word {
- width: calc(100% - 65px);
- height: 50px;
- font-size: 14px;
- color: white;
- line-height: 50px;
- float: left;
- margin-left: 25px;
- }
- .s-popup-cha {
- width: 40px;
- height: 50px;
- text-align: center;
- line-height: 50px;
- float: right;
- font-size: 24px;
- }
- .windStationItemContainer {
- width: 100%;
- }
- .windStationItemContainerBlack {
- width: 100%;
- background-color: grey;
- color: white;
- }
- .windStationItem {
- width: 80%;
- height: 50px;
- border-bottom: 1px solid #c8c8c8;
- text-align: left;
- line-height: 50px;
- margin-left: 10%;
- color: #333333;
- }
-
- .weatherDetails {
- margin-top: 0%;
- width: 100%;
- height: 25px;
- float: left;
- }
- .weatherText {
- width: 20%;
- height: 25px;
- float: left;
- font-size: 14px;
- color: white;
- margin-left: 9.5%;
- }
- .detailsText {
- width: 20%;
- height: 25px;
- float: right;
- font-size: 14px;
- color: white;
- margin-right: 5.5%;
- text-align: right;
- }
- .ThermometerCard {
- margin-top: -10%;
- height: 308px;
- width: 100%;
- }
- .border-left {
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 1px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- border-right-color: white;
- }
- .border-right {
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- border-right-color: #19B5BC;
- }
- /* .scrollList {
- // height:20%;
- height: 130px;
- width: 95%;
- margin: 0px auto;
- } */
- .dayButtonWhite {
- height: 25px;
- margin-top: -4px;
- margin-left: 20px;
- color: white;
- font-size: 18px;
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 3px;
- border-bottom-color: #FFEE35;
- border-left-width: 0px;
- font-family: "microsoft yahei";
- float: left;
- }
- .dayButtonBlack {
- height: 25px;
- margin-top: -4px;
- margin-left: 20px;
- color: #DEDEDE;
- font-size: 18px;
- font-family: "microsoft yahei";
- float: left;
- }
- .nightButtonWhite {
- height: 25px;
- margin-top: -4px;
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 3px;
- border-left-width: 0px;
- border-bottom-color: #FFEE35;
- color: white;
- margin-left: 50rpx;
- font-size: 18px;
- font-family: "microsoft yahei";
- float: left;
- }
- .nightButtonBlack {
- height: 25px;
- margin-top: -4px;
- color: #DEDEDE;
- margin-left: 50rpx;
- font-size: 18px;
- font-family: "microsoft yahei";
- float: left;
- }
- .cuIcon {
- border-right: 1px solid white;
- height: 80px;
- }
- .icon7 {
- font-size: 50upx;
- }
- .cu-listAll {
- // width: 100%;
- height: 100px;
- display: -webkit-flex;
- display: flex;
- justify-content: space-around;
- margin-top: -20px;
- float: left;
- }
- .cu-listAllTwo {
- height: 100px;
- display: -webkit-flex;
- display: flex;
- justify-content: space-around;
- margin-top: 0%;
- }
- .cu-listAllTThree {
- height: 100px;
- display: -webkit-flex;
- display: flex;
- justify-content: space-around;
- margin-top: 10px;
- }
- .cu-listAllTFour {
- height: 100px;
- display: -webkit-flex;
- display: flex;
- justify-content: space-around;
- margin-top: 10px;
- }
- .wenZhi {
- color: white;
- }
- .cuIcon1 {
- margin-top: 20px;
- }
- .cu-item {
- width: 100%;
- margin-left: -15px;
- }
- .weatherDayAndNightButton7 {
- margin-left: 20px;
- width: 120px;
- height: 20px;
- }
- .border-left {
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 1px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- border-right-color: white;
- }
- .border-right {
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- border-right-color: #19B5BC;
- }
- .scrollList7 {
- float: left;
- height: 130px;
- width: 95%;
- margin-left: 2.5%;
- }
- .dayButtonWhite7 {
- height: 25px;
- margin-top: -9%;
- margin-left: 20px;
- color: white;
- font-size: 15px;
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 3px;
- border-bottom-color: #FFEE35;
- border-left-width: 0px;
- font-family: "microsoft yahei";
- float: left;
- }
- .dayButtonBlack7 {
- height: 25px;
- margin-top: -9%;
- margin-left: 20px;
- color: #DEDEDE;
- font-size: 15px;
- font-family: "microsoft yahei";
- float: left;
- }
- .nightButtonWhite7 {
- height: 25px;
- margin-top: -9%;
- border-style: solid;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 3px;
- border-left-width: 0px;
- border-bottom-color: #FFEE35;
- color: white;
- margin-left: 50rpx;
- font-size: 15px;
- font-family: "microsoft yahei";
- float: left;
- }
- .nightButtonBlack7 {
- height: 25px;
- margin-top: -9%;
- color: #DEDEDE;
- margin-left: 50rpx;
- font-size: 15px;
- font-family: "microsoft yahei";
- float: left;
- }
- .cuIcon7 {
- border-right: 1px solid white;
- height: 92px;
- }
- .icon1 {
- font-size: 50upx;
- }
- .cu-listAll7 {
- height: 100px;
- display: -webkit-flex;
- display: flex;
- justify-content: space-around;
- margin-top: -20px;
- float: left;
- }
- .cu-listAllTwo7 {
- height: 100px;
- display: -webkit-flex;
- display: flex;
- justify-content: space-around;
- margin-top: 0%;
- }
- .cu-listAllTThree7 {
- height: 100px;
- display: -webkit-flex;
- display: flex;
- justify-content: space-around;
- margin-top: 10px;
- }
- .cu-listAllTFour7 {
- height: 100px;
- display: -webkit-flex;
- display: flex;
- justify-content: space-around;
- margin-top: 10px;
- }
- .wenZhi7 {
- color: white;
- }
- .cuIcon1 {
- margin-top: 20px;
- }
- .cu-item {
- width: 100%;
- margin-left: -15px;
- }
- </style>
|