index.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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>任务申请</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 class="item" @click="navTo('/pages_task/approvalCenter')">
  22. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/approval.png"></image>
  23. <text>审批中心</text>
  24. </view>
  25. </view>
  26. <!-- <view class="summary-header">
  27. <view class="summary-indicator"></view>
  28. <text class="summary-title">行政管理</text>
  29. </view> -->
  30. <!-- <view class="list">
  31. <view class="item" @click="navTo('/pages_task/approvalCenter')">
  32. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/approval.png"></image>
  33. <text>审批中心</text>
  34. </view>
  35. </view> -->
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. // 状态栏的高度
  45. // statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  46. statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px',
  47. }
  48. },
  49. computed: {
  50. },
  51. watch: {
  52. },
  53. onLoad() {
  54. },
  55. onReachBottom() {},
  56. // 分享给朋友
  57. onShareAppMessage(res) {
  58. return {
  59. title: '研究型互联网医院',
  60. path: '/pages/home/index',
  61. imageUrl: '/static/image/logo.png'
  62. }
  63. },
  64. // 分享朋友圈
  65. onShareTimeline() {
  66. return {
  67. title: '研究型互联网医院',
  68. query: '',
  69. imageUrl: '/static/image/logo.png'
  70. }
  71. },
  72. methods: {
  73. navTo(url) {
  74. uni.navigateTo({
  75. url: url
  76. })
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .container {
  83. min-height: 100vh;
  84. display: flex;
  85. flex-direction: column;
  86. position: relative;
  87. .bg {
  88. width: 100%;
  89. position: absolute;
  90. top: 0;
  91. left: 0;
  92. }
  93. .content {
  94. width: 100%;
  95. height: 100%;
  96. position: relative;
  97. z-index: 2;
  98. .title {
  99. font-weight: 600;
  100. font-size: 36rpx;
  101. color: #333333;
  102. height: 88rpx;
  103. text-align: center;
  104. line-height: 88rpx;
  105. }
  106. .summary-section {
  107. padding: 32rpx 24rpx;
  108. display: flex;
  109. flex-direction: column;
  110. .summary-header {
  111. display: flex;
  112. align-items: center;
  113. margin-bottom: 24rpx;
  114. .summary-indicator {
  115. width: 6rpx;
  116. height: 32rpx;
  117. background: #388BFF;
  118. border-radius: 40rpx;
  119. margin-right: 16rpx;
  120. }
  121. .summary-title {
  122. font-size: 36rpx;
  123. font-weight: bold;
  124. color: #333;
  125. }
  126. }
  127. }
  128. .list {
  129. display: flex;
  130. align-items: center;
  131. margin-bottom: 40rpx;
  132. .item {
  133. display: flex;
  134. flex-direction: column;
  135. justify-content: center;
  136. align-items: center;
  137. width: 170rpx;
  138. height: 184rpx;
  139. border-radius: 20rpx 20rpx 20rpx 20rpx;
  140. font-size: 28rpx;
  141. color: #333333;
  142. .icon {
  143. width: 88rpx;
  144. height: 88rpx;
  145. margin-bottom: 16rpx;
  146. }
  147. }
  148. }
  149. }
  150. }
  151. </style>