index.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <view class="container">
  3. <image class="bg" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/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="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/xl.png"></image>
  15. <text>XL任务</text>
  16. </view>
  17. <view class="item" @click="navTo('/pages_speaker/index')">
  18. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/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="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/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. // 分享给朋友
  53. onShareAppMessage(res) {
  54. return {
  55. title: '研究型互联网医院',
  56. path: '/pages/home/index',
  57. imageUrl: '/static/image/logo.png'
  58. }
  59. },
  60. // 分享朋友圈
  61. onShareTimeline() {
  62. return {
  63. title: '研究型互联网医院',
  64. query: '',
  65. imageUrl: '/static/image/logo.png'
  66. }
  67. },
  68. methods: {
  69. navTo(url) {
  70. uni.navigateTo({
  71. url: url
  72. })
  73. }
  74. }
  75. }
  76. </script>
  77. <style lang="scss" scoped>
  78. .container {
  79. min-height: 100vh;
  80. display: flex;
  81. flex-direction: column;
  82. position: relative;
  83. .bg {
  84. width: 100%;
  85. position: absolute;
  86. top: 0;
  87. left: 0;
  88. }
  89. .content {
  90. width: 100%;
  91. height: 100%;
  92. position: relative;
  93. z-index: 2;
  94. .title {
  95. font-weight: 600;
  96. font-size: 36rpx;
  97. color: #333333;
  98. height: 88rpx;
  99. text-align: center;
  100. line-height: 88rpx;
  101. }
  102. .summary-section {
  103. padding: 32rpx 24rpx;
  104. display: flex;
  105. flex-direction: column;
  106. .summary-header {
  107. display: flex;
  108. align-items: center;
  109. margin-bottom: 24rpx;
  110. .summary-indicator {
  111. width: 6rpx;
  112. height: 32rpx;
  113. background: #388BFF;
  114. border-radius: 40rpx;
  115. margin-right: 16rpx;
  116. }
  117. .summary-title {
  118. font-size: 36rpx;
  119. font-weight: bold;
  120. color: #333;
  121. }
  122. }
  123. }
  124. .list {
  125. display: flex;
  126. align-items: center;
  127. margin-bottom: 40rpx;
  128. .item {
  129. display: flex;
  130. flex-direction: column;
  131. justify-content: center;
  132. align-items: center;
  133. width: 170rpx;
  134. height: 184rpx;
  135. border-radius: 20rpx 20rpx 20rpx 20rpx;
  136. font-size: 28rpx;
  137. color: #333333;
  138. .icon {
  139. width: 88rpx;
  140. height: 88rpx;
  141. margin-bottom: 16rpx;
  142. }
  143. }
  144. }
  145. }
  146. }
  147. </style>