mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 21:29:31 +08:00
feat 首页是否显示快捷导航
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 金刚区 :v-if="navList.filter(x=>x.show).length>=4" -->
|
<!-- 金刚区 :v-if="navList.filter(x=>x.show).length>=4" -->
|
||||||
<view :v-if="navList.filter(x=>x.show).length>=4" class="nav-box mt-16 mb-24 pl-24 pr-24 uh-py-12">
|
<view v-if="calcIsShowQuickNavigationEnabled && !!navList.filter(x=>x.show).length" class="nav-box mt-16 mb-24 pl-24 pr-24 uh-py-12">
|
||||||
<view class="page-item_title text-weight-b ">快捷导航</view>
|
<view class="page-item_title text-weight-b ">快捷导航</view>
|
||||||
<view class="nav-list flex uh-mt-12">
|
<view class="nav-list flex uh-mt-12">
|
||||||
<template v-for="(item,index) in navList">
|
<template v-for="(item,index) in navList">
|
||||||
@@ -180,6 +180,10 @@
|
|||||||
calcAuditModeEnabled() {
|
calcAuditModeEnabled() {
|
||||||
return this.haloConfigs.auditConfig.auditModeEnabled
|
return this.haloConfigs.auditConfig.auditModeEnabled
|
||||||
},
|
},
|
||||||
|
calcIsShowQuickNavigationEnabled() {
|
||||||
|
console.log('this.haloConfigs?.pageConfig?.homeConfig', this.haloConfigs?.pageConfig?.homeConfig, !!this.haloConfigs?.pageConfig?.homeConfig?.useQuickNavigation)
|
||||||
|
return !!this.haloConfigs?.pageConfig?.homeConfig?.useQuickNavigation
|
||||||
|
},
|
||||||
calcIsShowCategory() {
|
calcIsShowCategory() {
|
||||||
if (this.calcAuditModeEnabled && this.categoryList.length !== 0) {
|
if (this.calcAuditModeEnabled && this.categoryList.length !== 0) {
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user