.
This commit is contained in:
parent
48f248c3fb
commit
8934eae67f
107
pages/index.vue
107
pages/index.vue
@ -28,32 +28,37 @@
|
|||||||
</u-row>
|
</u-row>
|
||||||
</view>
|
</view>
|
||||||
<view class="content-section">
|
<view class="content-section">
|
||||||
<view class="grey-box" style="border-radius: 15px 15px 0 0 ; padding-bottom: 0;"
|
<view v-if="isSticky" class="grey-box ceiling"
|
||||||
:style="[isSticky ? 'position: sticky;':'','z-index: 10','top: -20px']">
|
:style="[isSticky ? 'position: sticky;':'','z-index: 10','top: 50px']">
|
||||||
<u-grid v-if="isSticky" :border="false" col="4"
|
<u-grid :border="false" col="4">
|
||||||
style="background: #f3f3f3; margin-bottom: 0; box-shadow: 0 1px 9px rgba(209, 209, 209, 0.5);padding-bottom: 5px;">
|
<u-grid-item class="click">
|
||||||
<u-grid-item class="click" style="box-shadow: none;">
|
<view class="flex">
|
||||||
<text class="text">总设备</text>
|
<view class="iconfont icon-threshold"></view>
|
||||||
<view class="iconfont icon-threshold"></view>
|
<u-badge numberType="overflow" type="success" max="999" value="155"></u-badge>
|
||||||
<u-badge numberType="overflow" type="success" max="999" value="155"></u-badge>
|
</view>
|
||||||
</u-grid-item>
|
</u-grid-item>
|
||||||
<u-grid-item style="box-shadow: none;">
|
<u-grid-item>
|
||||||
<text class="text">总设备</text>
|
<view class="flex">
|
||||||
<view class="iconfont icon-jizhan"></view>
|
<view class="iconfont icon-jizhan"></view>
|
||||||
<u-badge numberType="overflow" type="success" max="999" value="15"></u-badge>
|
<u-badge numberType="overflow" type="success" max="999" value="15"></u-badge>
|
||||||
|
</view>
|
||||||
</u-grid-item>
|
</u-grid-item>
|
||||||
<u-grid-item style="box-shadow: none;">
|
<u-grid-item>
|
||||||
<text class="text">总设备</text>
|
<view class="flex">
|
||||||
<view class="iconfont icon-lixian"></view>
|
<view class="iconfont icon-lixian"></view>
|
||||||
<u-badge numberType="overflow" type="success" max="999" value="15"></u-badge>
|
<u-badge numberType="overflow" type="success" max="999" value="15"></u-badge>
|
||||||
|
</view>
|
||||||
</u-grid-item>
|
</u-grid-item>
|
||||||
<u-grid-item style="box-shadow: none;">
|
<u-grid-item>
|
||||||
<text class="text">总设备</text>
|
<view class="flex">
|
||||||
<view class="iconfont icon-shangqing"></view>
|
<view class="iconfont icon-shangqing"></view>
|
||||||
<u-badge numberType="overflow" type="success" max="999" value="15"></u-badge>
|
<u-badge numberType="overflow" type="success" max="999" value="15"></u-badge>
|
||||||
|
</view>
|
||||||
</u-grid-item>
|
</u-grid-item>
|
||||||
</u-grid>
|
</u-grid>
|
||||||
<u-grid v-else :border="false" col="4" style=" margin-bottom: 0;">
|
</view>
|
||||||
|
<view v-else class="grey-box normal">
|
||||||
|
<u-grid :border="false" col="4">
|
||||||
<u-grid-item class="click">
|
<u-grid-item class="click">
|
||||||
<view class="iconfont icon-threshold"></view>
|
<view class="iconfont icon-threshold"></view>
|
||||||
<u-badge numberType="overflow" type="success" max="999" value="155"></u-badge>
|
<u-badge numberType="overflow" type="success" max="999" value="155"></u-badge>
|
||||||
@ -237,9 +242,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-line-progress height="8" :showText="false" :percentage="60"
|
<u-line-progress height="8" :showText="false" :percentage="60"
|
||||||
style="width: 100%;">
|
inactiveColor="#c7c7c7" style="width: 75px;margin-top: 5px;">
|
||||||
</u-line-progress>
|
</u-line-progress>
|
||||||
|
|
||||||
</u-col>
|
</u-col>
|
||||||
<u-col span="6">
|
<u-col span="6">
|
||||||
<view class="valve">
|
<view class="valve">
|
||||||
@ -277,6 +281,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-col>
|
</u-col>
|
||||||
</u-row>
|
</u-row>
|
||||||
|
<view class="font-red">
|
||||||
|
<view class="iconfont icon-guzhang icon"></view>角度4故障
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="card-grey">
|
<view class="card-grey">
|
||||||
@ -483,6 +490,60 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
top: -92px;
|
top: -92px;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.grey-box.normal {
|
||||||
|
border-radius: 15px 15px 0 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
|
||||||
|
.u-grid {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.grey-box.ceiling {
|
||||||
|
border-radius: 0;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
margin: 0;
|
||||||
|
box-shadow: 0 1px 9px rgba(209, 209, 209, 0.5);
|
||||||
|
|
||||||
|
.u-grid {
|
||||||
|
padding-bottom: 10px;
|
||||||
|
|
||||||
|
.u-grid-item {
|
||||||
|
padding-bottom: 5px;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
.flex {
|
||||||
|
&>view {
|
||||||
|
margin: -2px 5px 0 0;
|
||||||
|
color: #39ac4f;
|
||||||
|
font-size: 50rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep.u-badge {
|
||||||
|
position: relative;
|
||||||
|
right: auto;
|
||||||
|
top: auto;
|
||||||
|
height: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.click {
|
||||||
|
|
||||||
|
.flex {
|
||||||
|
&>view {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.grey-box {
|
.grey-box {
|
||||||
background-color: #f3f3f3;
|
background-color: #f3f3f3;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
|
Loading…
Reference in New Issue
Block a user