index.vue 3.4 KB

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