123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586 |
- <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);
- _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.getWindPowerStationNameById(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: 380px;
- }
- .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>
|