forked from angelo/web-retail-h5
fix(bonus): navList为空时占位问题修复
This commit is contained in:
parent
aa18b0f15a
commit
1a7dd1b626
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue