This commit is contained in:
2025-06-11 16:28:21 +08:00
parent b3c4799855
commit 03b76dec55
44 changed files with 17 additions and 7002 deletions

View File

@@ -14,13 +14,13 @@
</view>
</view>
</view>
<view class="zd-row relative jcflexstart tabs_wrap">
<!-- <view class="zd-row relative jcflexstart tabs_wrap">
<view class="zd-col-6 tab_active" :style="{'left': (menuList1.length > 0 && menuList2.length > 0 && tab === 2) ? '25%' : '0'}">
<view class="tab_line_active"></view>
</view>
<view v-if="menuList1.length > 0" class="zd-col-6 tab_item" :class="{'tab_item_active': tab === 1}" @tap="changeTab(1)">一期</view>
<view v-if="menuList2.length > 0" class="zd-col-6 tab_item" :class="{'tab_item_active': tab === 2}" @tap="changeTab(2)">二期</view>
</view>
</view> -->
<view class="zd_home_wrapper">
<view class="menu-wrap">
<view class="menu-item" v-for="(e, i) in menuList" :key="i" @tap="toPage1(e)">
@@ -72,21 +72,7 @@
// let res = await authority()
let res = await allAuthority()
if (res.code === '1') {
if (res.result.hasOwnProperty('rf_menu0')) {
this.menuList1 = [...res.result.rf_menu0.sonTree]
} else {
this.tab = 2
}
if (res.result.hasOwnProperty('rf_menu1')) {
this.menuList2 = [...res.result.rf_menu1.sonTree]
} else {
this.tab = 1
}
if (this.tab === 2) {
this.menuList = [...this.menuList2]
} else {
this.menuList = [...this.menuList1]
}
this.menuList = [...res.result.rf_menu1.sonTree]
} else {
uni.showToast({
title: res.desc,