123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <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: 10px;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="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"]
-
- }
- },
- methods:{
- openDrawer:function(){
- this.$refs.drawer.openDrawer(250,this.drawerList,this.inconList);
- },
- closeDrawer:function(){
- this.drawerIsShow=false;
- }
- }
- };
- </script>
- <style>
- page {
- }
- .top {
- width: 100%;
- height: 105upx;
- padding-top: 5upx;
- background-color: #3D6C8A;
- }
- .threeLine {
- width: 50px;
- height: 50px;
- float: left;
- }
- .text {
- width: calc(100% - 100px);
- height: 50px;
- float: left;
- color: white;
- line-height: 50px;
- text-align: center;
- font-size: 18px;
- }
- .notice{
- width: 50px;
- height: 50px;
- float: left;
- }
- .plus {
- width: 50px;
- height: 50px;
- float: right;
- color: white;
- font-size: 35px;
- line-height: 50px;
- text-align: center;
- }
- .details{
- width: 100%;
- height: 50px;
- background-color: #0081FF;
- float: left;
- }
- .detailsText{
- line-height: 50px;
- float: right;
- margin-right: 20px;
- font-size: 18px;
- color: white;
- }
- </style>
|