123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <template>
- <view class="content">
- <view class="top">
- <view class="threeLine" @tap="openDrawer">
- <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-top: 8px;margin-left: 10px;"></image>
- </view>
- <view class="text">
- <view class="notice">
- <view class="icon cuIcon-notice text-white" v-if="badge != 0">
- <view class="cu-tag looknumber">
- <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
- </view>
- </view>
- </view>
- 宁夏新能源公司
- </view>
- <view class="plus">+</view>
- </view>
- <!-- 抽屉组件 -->
- <div>
- <drawer ref="drawer"></drawer>
- </div>
- <!--时间组件-->
- <view class="time">
- <view class="timeText">推荐时间</view>
- <view class="timeIcon">
-
- </view>
- </view>
- <!--电量卡片-->
- <view class="electricityCard">
- <view class="allDayLong">安全天数:</view>
- <view class="installedCapacity">装机容量:</view>
- <view class="preissue">预测发电量:</view>
- <view class="dayHair">日发电量:</view>
- <view class="internet">上网电量:</view>
- </view>
- <!--风速卡片-->
- <view class="speedPower">
- <view class="averageSpeed">
- <view class="averageSpeedText">平均风速</view>
- <view class="averageSpeedmaxmin">
- <view class="averageSpeedmin">min</view>
- <view class="averageSpeedmax">max</view>
- </view>
- </view>
- <view class="forecastSpeed">
- <view class="forecastSpeedText">预测风速</view>
- <view class="forecastSpeedmaxmin">
- <view class="forecastSpeedmin">min</view>
- <view class="forecastSpeedmax">max</view>
- </view>
- </view>
- <view class="actualPower">
- <view class="actualPowerText">实际功率</view>
- <view class="actualPowermaxmin">
- <view class="actualPowermin">min</view>
- <view class="actualPowermax">max</view>
- </view>
- </view>
- <view class="theoreticalPower">
- <view class="theoreticalPowerText">理论功率</view>
- <view class="theoreticalPowermaxmin">
- <view class="theoreticalPowermin">min</view>
- <view class="theoreticalPowermax">max</view>
- </view>
- </view>
- </view>
- <!-- <view class="details">
- <view class="detailsText" @tap="common.navTo('/components/detail/Detail')"> 详情 〉</view>
- </view> -->
- </view>
- </template>
- <script>
- import drawer from '../../components/drawer/threeLineDrawer.vue'
- export default {
- components: {
- "drawer": drawer
- },
- data:function(){
- return{
- badge: 22,
- drawerList:["状态监视","矩阵监视","风场监视","人员监视"],
- inconList:["form","favor","question","edit"],
- minaverageSpeed:'12',
- maxaverageSpeed:'25'
- }
- },
- methods:{
- openDrawer:function(){
- this.$refs.drawer.openDrawer(250,this.drawerList,this.inconList);
- },
- closeDrawer:function(){
- this.drawerIsShow=false;
- }
- }
- };
- </script>
- <style>
- page {
- }
- .top {
- width: 100%;
- height: 95upx;
- padding-top: 5upx;
- background-color: #E93131;
- }
- .threeLine {
- width: 50px;
- height: 45px;
- float: left;
- }
- .text {
- width: calc(100% - 100px);
- height: 45px;
- float: left;
- color: white;
- line-height: 45px;
- text-align: center;
- font-size: 18px;
- }
- .notice{
- width: 50px;
- height: 45px;
- float: left;
- }
- .plus {
- width: 50px;
- height: 45px;
- float: right;
- color: white;
- font-size: 35px;
- line-height: 45px;
- text-align: center;
- }
- .time{
- margin-top: 10px;
- width: 100%;
- height: 50px;
- float: left;
- background-color: white;
- }
- .timeText{
- width: 70%;
- height: 50px;
- float: left;
- line-height: 50px;
- text-align: center;
- font-size: 15px;
- margin-left: 7px;
- }
- .timeIcon{
- width: 25%;
- height: 50px;
- float: left;
- margin-left: 5px;
- }
- .electricityCard{
- width: 100%;
- height: 90px;
- background-color: white;
- float: left;
- margin-top: 20rpx;
- }
- .allDayLong{
- width: 47%;
- height: 35px;
- margin: 5px;
- background-color: white;
- line-height: 35px;
- float: left;
- font-size: 13px;
- }
- .installedCapacity{
- width: 47%;
- height: 35px;
- margin: 5px;
- background-color: white;
- line-height: 35px;
- float: left;
- font-size: 13px;
- }
- .preissue{
- width: 35%;
- height: 35px;
- margin: 5px;
- background-color: white;
- line-height: 35px;
- float: left;
- font-size: 13px;
- }
- .dayHair{
- width: 28%;
- height: 35px;
- margin: 5px;
- background-color: white;
- line-height: 35px;
- float: left;
- font-size: 13px;
- }
- .internet{
- width: 28%;
- height: 35px;
- margin: 5px;
- background-color: white;
- line-height: 35px;
- float: left;
- font-size: 13px;
- }
- .speedPower{
- margin-top: 10px;
- width: 100%;
- height: 90px;
- float: left;
- }
- .averageSpeed{
- margin-left: 3px;
- width: 24%;
- height: 90px;
- float: left;
- background: -webkit-gradient(linear, 0% 200%, 0% 0%, from(#71BE5A), color-stop(0.85, #FFFFFF), to(#ffffff));
- box-shadow: 2px 2px 2px #bbb;
- border-radius: 3px;
- text-align: left;
- }
- .forecastSpeed{
- margin-left: 3px;
- width: 24%;
- height: 90px;
- float: left;
- background: -webkit-gradient(linear, 0% 200%, 0% 0%, from(#71BE5A), color-stop(0.85, #FFFFFF), to(#ffffff));
- box-shadow: 2px 2px 2px #bbb;
- border-radius: 3px;
- text-align: left;
- }
- .actualPower{
- margin-left: 3px;
- width: 24%;
- height: 90px;
- float: left;
- background: -webkit-gradient(linear, 0% 200%, 0% 0%, from(#71BE5A), color-stop(0.85, #FFFFFF), to(#ffffff));
- box-shadow: 2px 2px 2px #bbb;
- border-radius: 3px;
- text-align: left;
- }
- .theoreticalPower{
- margin-left: 3px;
- width: 24%;
- height: 90px;
- float: left;
- background: -webkit-gradient(linear, 0% 200%, 0% 0%, from(#71BE5A), color-stop(0.85, #FFFFFF), to(#ffffff));
- box-shadow: 2px 2px 2px #bbb;
- border-radius: 3px;
- text-align: left;
- }
- .averageSpeedText{
- width: 100%;
- height: 50px;
- text-align: center;
- line-height: 50px;
- }
- .forecastSpeedText{
- width: 100%;
- height: 50px;
- text-align: center;
- line-height: 50px;
- }
- .actualPowerText{
- width: 100%;
- height: 50px;
- text-align: center;
- line-height: 50px;
- }
- .theoreticalPowerText{
- width: 100%;
- height: 50px;
- text-align: center;
- line-height: 50px;
- }
- .averageSpeedmin{
- width: 50%;
- height: 30px;
- float: left;
- line-height: 30px;
- text-align: center;
- }
- .averageSpeedmax{
- width: 50%;
- height: 30px;
- float: left;
- line-height: 30px;
- text-align: center;
- }
- .forecastSpeedmin{
- width: 50%;
- height: 30px;
- float: left;
- line-height: 30px;
- text-align: center;
- }
- .forecastSpeedmax{
- width: 50%;
- height: 30px;
- float: left;
- line-height: 30px;
- text-align: center;
- }
- .actualPowermin{
- width: 50%;
- height: 30px;
- float: left;
- line-height: 30px;
- text-align: center;
- }
- .actualPowermax{
- width: 50%;
- height: 30px;
- float: left;
- line-height: 30px;
- text-align: center;
- }
- .theoreticalPowermin{
- width: 50%;
- height: 30px;
- float: left;
- line-height: 30px;
- text-align: center;
- }
- .theoreticalPowermax{
- width: 50%;
- height: 30px;
- float: left;
- line-height: 30px;
- text-align: center;
- }
- </style>
|