lin
2024-05-07 3e75d99e8ecd9d54a24d4742dfa8dc2d97323ccc
校园安全菜单调整
2 files modified
56 ■■■■■ changed files
pages/home/index.vue 53 ●●●●● patch | view | raw | blame | history
pages/user/center.vue 3 ●●●●● patch | view | raw | blame | history
pages/home/index.vue
@@ -171,6 +171,39 @@
                    </view>
                </view>
                <view class="" v-if="roleType == 4 &&  curSelectSite.addressType == 2">
                    <view class="tabs flex">
                        <view class="tabs-item" :class="k == tabIndex?'tabs-active':''" v-for="(i,k) in tabs4"
                            @click="changeTabs(k)">
                            {{i.name}}
                        </view>
                    </view>
                    <view class="nav bgc-ff">
                        <u-grid :border="false" col="4">
                            <u-grid-item @click="navigatorPage(i.path)" v-for="(i,k) in tabs4[tabIndex].list" :key="k">
                                <view class="nav-item flex f-d-c a-i-c">
                                    <u-icon :name="i.icon" width="80rpx" height="80rpx"></u-icon>
                                    <text class="nav-item-text f-26  mt-10">{{i.text}}</text>
                                </view>
                            </u-grid-item>
                            <u-grid-item v-if="roleName == 'xyzt'"
                                @click="navigatorPage('/subPackage/school/troubleTaskList')">
                                <view class="nav-item flex f-d-c a-i-c">
                                    <u-icon name="/static/icon/nav-29.png" width="80rpx" height="80rpx"></u-icon>
                                    <text class="nav-item-text f-26  mt-10">校园任务</text>
                                </view>
                            </u-grid-item>
                            <u-grid-item @click="navToSchoolClockIn()" v-if="roleName == 'xyty'">
                                <view class="nav-item flex f-d-c a-i-c">
                                    <u-icon name="/static/icon/nav-29.png" width="80rpx" height="80rpx"></u-icon>
                                    <text class="nav-item-text f-26  mt-10">护学打卡</text>
                                </view>
                            </u-grid-item>
                        </u-grid>
                    </view>
                </view>
                <view v-if="roleType == 2 && curSelectSite.addressType == 2">
                    <view class="tabs flex">
                        <view class="tabs-item" :class="k == tabIndex?'tabs-active':''" v-for="(i,k) in tabs2"
@@ -694,6 +727,22 @@
                    }
                ],
                tabs4: [{
                    name: '校园服务',
                    list: [{
                            text: "安全隐患",
                            icon: "/static/icon/nav-29.png",
                            path: "/subPackage/school/trouble?type=1"
                        },
                        {
                            icon: "/static/icon/nav-29.png",
                            text: "纠纷矛盾排查",
                            path: "/subPackage/school/trouble?type=2"
                        }
                    ]
                }],
                tabIndex: 0,
                isBailer: false, //是否取保候审人员
                sectionList: [],
@@ -1009,6 +1058,10 @@
                    this.$set(this.background, "top", "#0D3C9B");
                    this.$set(this.background, "banner",
                        "linear-gradient( 180deg, #0A3A9A 70%,#0940A3 30%,  rgba(1,97,203,0) 99%)");
                } else if (roleName == '校园主体' || roleName == '校园通用') {
                    this.tabList = getTabbarList(1);
                    this.roleType = 4
                    this.roleTypeName = "校园"
                } else {
                    this.tabList = getTabbarList(1);
                }
pages/user/center.vue
@@ -157,6 +157,9 @@
                this.color = "#017BFC";
                // this.tabbarIndex = 2;
                this.tabbarIndex = 3;
            } else if (role.roleName == '校园主体' || role.roleName == '校园通用') {
                this.tabbarList = getTabbarList(1);
                this.roleType = 4
            } else {
                this.tabbarList = getTabbarList(1)
                this.roleType = 1