fix(bonus): navList为空时占位问题修复

This commit is contained in:
ywk 2025-04-10 09:51:18 +08:00
parent aa18b0f15a
commit 1a7dd1b626
1 changed files with 9 additions and 8 deletions

View File

@ -7,7 +7,7 @@
<template>
<view class="main">
<scroll-view class="left_scrol_style" scroll-x="false" scroll-y="true">
<view class="top-lists">
<view class="top-lists" v-if="navList.length > 0">
<view v-for="(item, index) in navList" v-show="item.menuKey!=''" :key="index"
:class="navIndex == item.path ? 'styles' : ''" class="nav-view" @click="clickHref(item.path)">
{{ item.name }}
@ -15,7 +15,7 @@
</view>
</scroll-view>
<view class="sum-val">
{{'昨日实发合计'}}: <span>{{toSum | toThousandthAndKeepDecimal}}</span>
昨日实发合计: <span>{{toSum | toThousandthAndKeepDecimal}}</span>
</view>
<template>
<sgsy v-if="navIndex==0" ref="sgsyData" :checkRule="marketList[0].isShow" :num="page.pageNum" />
@ -88,12 +88,12 @@
value: "repurchaseTicket",
menuKey: ''
},
{
name: '创客空间收益',
path: 6,
value: "markerSpaceEarnings",
menuKey: ''
},
// {
// name: '',
// path: 6,
// value: "markerSpaceEarnings",
// menuKey: ''
// },
],
navIndex: 0,
page: {
@ -131,6 +131,7 @@
},
getMenuLists() {
api.menuList().then((res) => {
console.log(res, '....resmenu')
res.data.forEach((item) => {
this.navList.forEach((items) => {
if (item.menuKey == items.value) {