123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <template>
- <view class="workbench-page">
- <!-- <view class="section white-wrap" @click="handleGoNext('custome')">
- <image src="../../static/icon-1.png" mode="aspectFill" class="icon"></image>
- <view class="label">客户审批</view>
- </view>
- <view class="section white-wrap" @click="handleGoNext('contract')">
- <image src="../../static/icon-2.png" mode="aspectFill" class="icon"></image>
- <view class="label">合同审批</view>
- </view>
- <view class="section white-wrap" @click="handleGoNext('seal')">
- <image src="../../static/icon-3.png" mode="aspectFill" class="icon"></image>
- <view class="label">用印审批</view>
- </view>
- <view class="section white-wrap" @click="handleGoNext('activity')">
- <image src="../../static/icon-4.png" mode="aspectFill" class="icon"></image>
- <view class="label">活动审批</view>
- </view> -->
- <view class="section white-wrap" v-for="item in tabs" :key="item.label">
- <view class="tab-title">{{item.label}}</view>
- <view class="tab-ul">
- <view class="tab-item" @click="handleGoNext(tab.url)" v-for="tab in item.child" :key="tab.label">
- <image :src="tab.img" mode="aspectFill" class="icon"/>
- <view class="label">{{tab.label}}</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {shareData} from '@/utils/config.js'
- export default{
- data() {
- return {
- tabs: [
- {
- label: '审批',
- child: [
- {
- label: '客户审批',
- url: '/pages-approve/custome/list',
- img: require('@/static/icon-1.png')
- },
- {
- label: '合同审批',
- url: '/pages-approve/contract/list',
- img: require('@/static/icon-2.png')
- },
- {
- label: '用印审批',
- url: '/pages-approve/seal/list',
- img: require('@/static/icon-3.png')
- },
- // {
- // label: '活动审批',
- // url: '/pages-approve/activity/list',
- // img: require('@/static/icon-4.png')
- // },
- ]
- },
- {
- label: '路演管理',
- child: [
- {
- label: '研究员日历',
- url: '/pages-roadshow/researcherCalendar/index',
- img: require('@/static/icon-5.png')
- },
- {
- label: '我的日历',
- url: '/pages-roadshow/myCalendar/index',
- img: require('@/static/icon-6.png')
- }
- ]
- }
- ]
- }
- },
- onShareAppMessage() {
- return shareData
- },
- methods: {
- handleGoNext(url) {
-
- uni.navigateTo({
- url
- })
- }
- },
- }
- </script>
- <style lang="scss">
- .workbench-page{
- padding: 20rpx;
- display: flex;
- flex-wrap: wrap;
- }
- .section{
- width: 100%;
- padding: 30rpx;
- box-shadow: 0px 3px 12px rgba(175, 175, 175, 0.16);
- font-size: 12px;
- font-weight: 400;
- color: #666;
- margin-bottom: 30rpx;
- .tab-title {
- font-size: 32rpx;
- font-weight: bold;
- color: #222;
- }
- .tab-ul {
- margin-top: 40rpx;
- display: flex;
- align-items: center;
- .tab-item {
- margin-right: 60rpx;
- text-align: center;
- .icon{
- width: 78rpx;
- height: 78rpx;
- margin: 0 auto 10rpx;
- }
- }
- }
- }
- </style>
|