index.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view class="container">
  3. <image class="bg" src="/static/image/bg_bench.png" mode="widthFix"></image>
  4. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  5. <view class="content">
  6. <view class="title">工作台</view>
  7. <view class="summary-section ">
  8. <view class="summary-header">
  9. <view class="summary-indicator"></view>
  10. <text class="summary-title">互联网</text>
  11. </view>
  12. <view class="list">
  13. <view class="item" @click="navTo('/pages_task/xlTask')">
  14. <image class="icon" src="/static/image/xl.png"></image>
  15. <text>XL任务</text>
  16. </view>
  17. <view class="item" @click="navTo('/pages_speaker/index')">
  18. <image class="icon" src="/static/image/speaker.png" ></image>
  19. <text>讲者管理</text>
  20. </view>
  21. </view>
  22. <view class="summary-header">
  23. <view class="summary-indicator"></view>
  24. <text class="summary-title">行政管理</text>
  25. </view>
  26. <view class="list">
  27. <view class="item" @click="navTo('/pages_task/approvalCenter')">
  28. <image class="icon" src="/static/image/approval.png"></image>
  29. <text>审批中心</text>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. // 状态栏的高度
  41. // statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  42. statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px',
  43. }
  44. },
  45. computed: {
  46. },
  47. watch: {
  48. },
  49. onLoad() {
  50. },
  51. onReachBottom() {},
  52. methods: {
  53. navTo(url) {
  54. uni.navigateTo({
  55. url: url
  56. })
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .container {
  63. min-height: 100vh;
  64. display: flex;
  65. flex-direction: column;
  66. position: relative;
  67. .bg {
  68. width: 100%;
  69. position: absolute;
  70. top: 0;
  71. left: 0;
  72. }
  73. .content {
  74. width: 100%;
  75. height: 100%;
  76. position: relative;
  77. z-index: 2;
  78. .title {
  79. font-weight: 600;
  80. font-size: 36rpx;
  81. color: #333333;
  82. height: 88rpx;
  83. text-align: center;
  84. line-height: 88rpx;
  85. }
  86. .summary-section {
  87. padding: 32rpx 24rpx;
  88. display: flex;
  89. flex-direction: column;
  90. .summary-header {
  91. display: flex;
  92. align-items: center;
  93. margin-bottom: 24rpx;
  94. .summary-indicator {
  95. width: 6rpx;
  96. height: 32rpx;
  97. background: #388BFF;
  98. border-radius: 40rpx;
  99. margin-right: 16rpx;
  100. }
  101. .summary-title {
  102. font-size: 36rpx;
  103. font-weight: bold;
  104. color: #333;
  105. }
  106. }
  107. }
  108. .list {
  109. display: flex;
  110. align-items: center;
  111. margin-bottom: 40rpx;
  112. .item {
  113. display: flex;
  114. flex-direction: column;
  115. justify-content: center;
  116. align-items: center;
  117. width: 170rpx;
  118. height: 184rpx;
  119. border-radius: 20rpx 20rpx 20rpx 20rpx;
  120. font-size: 28rpx;
  121. color: #333333;
  122. .icon {
  123. width: 88rpx;
  124. height: 88rpx;
  125. margin-bottom: 16rpx;
  126. }
  127. }
  128. }
  129. }
  130. }
  131. </style>