Analysis.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="threeLine" @tap="openDrawer">
  5. <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-top: 10px;margin-left: 10px;"></image>
  6. </view>
  7. <view class="text">
  8. <view class="notice">
  9. <view class="icon cuIcon-notice text-white" v-if="badge != 0">
  10. <view class="cu-tag looknumber">
  11. <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
  12. </view>
  13. </view>
  14. </view>
  15. 宁夏新能源公司
  16. </view>
  17. <view class="plus">+</view>
  18. </view>
  19. <!-- 抽屉组件 -->
  20. <div>
  21. <drawer ref="drawer"></drawer>
  22. </div>
  23. </view>
  24. </template>
  25. <script>
  26. import drawer from '../../components/drawer/threeLineDrawer.vue'
  27. export default {
  28. components: {
  29. "drawer": drawer
  30. },
  31. data:function(){
  32. return{
  33. badge: 22,
  34. drawerList:["状态监视","矩阵监视","风场监视","人员监视"],
  35. inconList:["form","favor","question","edit"]
  36. }
  37. },
  38. methods:{
  39. openDrawer:function(){
  40. this.$refs.drawer.openDrawer(250,this.drawerList,this.inconList);
  41. },
  42. closeDrawer:function(){
  43. this.drawerIsShow=false;
  44. }
  45. }
  46. };
  47. </script>
  48. <style>
  49. page {
  50. }
  51. .top {
  52. width: 100%;
  53. height: 95upx;
  54. padding-top: 5upx;
  55. background-color: #E93131;
  56. }
  57. .threeLine {
  58. width: 50px;
  59. height: 45px;
  60. float: left;
  61. }
  62. .text {
  63. width: calc(100% - 100px);
  64. height: 45px;
  65. float: left;
  66. color: white;
  67. line-height: 45px;
  68. text-align: center;
  69. font-size: 18px;
  70. }
  71. .notice{
  72. width: 50px;
  73. height: 45px;
  74. float: left;
  75. }
  76. .plus {
  77. width: 50px;
  78. height: 45px;
  79. float: right;
  80. color: white;
  81. font-size: 35px;
  82. line-height: 45px;
  83. text-align: center;
  84. }
  85. </style>