index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view class="workbench-page">
  3. <!-- <view class="section white-wrap" @click="handleGoNext('custome')">
  4. <image src="../../static/icon-1.png" mode="aspectFill" class="icon"></image>
  5. <view class="label">客户审批</view>
  6. </view>
  7. <view class="section white-wrap" @click="handleGoNext('contract')">
  8. <image src="../../static/icon-2.png" mode="aspectFill" class="icon"></image>
  9. <view class="label">合同审批</view>
  10. </view>
  11. <view class="section white-wrap" @click="handleGoNext('seal')">
  12. <image src="../../static/icon-3.png" mode="aspectFill" class="icon"></image>
  13. <view class="label">用印审批</view>
  14. </view>
  15. <view class="section white-wrap" @click="handleGoNext('activity')">
  16. <image src="../../static/icon-4.png" mode="aspectFill" class="icon"></image>
  17. <view class="label">活动审批</view>
  18. </view> -->
  19. <view class="section white-wrap" v-for="item in tabs" :key="item.label">
  20. <view class="tab-title">{{item.label}}</view>
  21. <view class="tab-ul">
  22. <view class="tab-item" @click="handleGoNext(tab.url)" v-for="tab in item.child" :key="tab.label">
  23. <image :src="tab.img" mode="aspectFill" class="icon"/>
  24. <view class="label">{{tab.label}}</view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import {shareData} from '@/utils/config.js'
  32. export default{
  33. data() {
  34. return {
  35. tabs: [
  36. {
  37. label: '审批',
  38. child: [
  39. {
  40. label: '客户审批',
  41. url: '/pages-approve/custome/list',
  42. img: require('@/static/icon-1.png')
  43. },
  44. {
  45. label: '合同审批',
  46. url: '/pages-approve/contract/list',
  47. img: require('@/static/icon-2.png')
  48. },
  49. {
  50. label: '用印审批',
  51. url: '/pages-approve/seal/list',
  52. img: require('@/static/icon-3.png')
  53. },
  54. // {
  55. // label: '活动审批',
  56. // url: '/pages-approve/activity/list',
  57. // img: require('@/static/icon-4.png')
  58. // },
  59. ]
  60. },
  61. {
  62. label: '路演管理',
  63. child: [
  64. {
  65. label: '研究员日历',
  66. url: '/pages-roadshow/researcherCalendar/index',
  67. img: require('@/static/icon-5.png')
  68. },
  69. {
  70. label: '我的日历',
  71. url: '/pages-roadshow/myCalendar/index',
  72. img: require('@/static/icon-6.png')
  73. }
  74. ]
  75. }
  76. ]
  77. }
  78. },
  79. onShareAppMessage() {
  80. return shareData
  81. },
  82. methods: {
  83. handleGoNext(url) {
  84. uni.navigateTo({
  85. url
  86. })
  87. }
  88. },
  89. }
  90. </script>
  91. <style lang="scss">
  92. .workbench-page{
  93. padding: 20rpx;
  94. display: flex;
  95. flex-wrap: wrap;
  96. }
  97. .section{
  98. width: 100%;
  99. padding: 30rpx;
  100. box-shadow: 0px 3px 12px rgba(175, 175, 175, 0.16);
  101. font-size: 12px;
  102. font-weight: 400;
  103. color: #666;
  104. margin-bottom: 30rpx;
  105. .tab-title {
  106. font-size: 32rpx;
  107. font-weight: bold;
  108. color: #222;
  109. }
  110. .tab-ul {
  111. margin-top: 40rpx;
  112. display: flex;
  113. align-items: center;
  114. .tab-item {
  115. margin-right: 60rpx;
  116. text-align: center;
  117. .icon{
  118. width: 78rpx;
  119. height: 78rpx;
  120. margin: 0 auto 10rpx;
  121. }
  122. }
  123. }
  124. }
  125. </style>