forked from angelo/web-retail-h5
fix(bonus): navList为空时占位问题修复
This commit is contained in:
parent
aa18b0f15a
commit
1a7dd1b626
|
@ -7,7 +7,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<scroll-view class="left_scrol_style" scroll-x="false" scroll-y="true">
|
<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"
|
<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)">
|
:class="navIndex == item.path ? 'styles' : ''" class="nav-view" @click="clickHref(item.path)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<view class="sum-val">
|
<view class="sum-val">
|
||||||
{{'昨日实发合计'}}: <span>{{toSum | toThousandthAndKeepDecimal}}</span>
|
昨日实发合计: <span>{{toSum | toThousandthAndKeepDecimal}}</span>
|
||||||
</view>
|
</view>
|
||||||
<template>
|
<template>
|
||||||
<sgsy v-if="navIndex==0" ref="sgsyData" :checkRule="marketList[0].isShow" :num="page.pageNum" />
|
<sgsy v-if="navIndex==0" ref="sgsyData" :checkRule="marketList[0].isShow" :num="page.pageNum" />
|
||||||
|
@ -88,12 +88,12 @@
|
||||||
value: "repurchaseTicket",
|
value: "repurchaseTicket",
|
||||||
menuKey: ''
|
menuKey: ''
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: '创客空间收益',
|
// name: '创客空间收益',
|
||||||
path: 6,
|
// path: 6,
|
||||||
value: "markerSpaceEarnings",
|
// value: "markerSpaceEarnings",
|
||||||
menuKey: ''
|
// menuKey: ''
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
navIndex: 0,
|
navIndex: 0,
|
||||||
page: {
|
page: {
|
||||||
|
@ -131,6 +131,7 @@
|
||||||
},
|
},
|
||||||
getMenuLists() {
|
getMenuLists() {
|
||||||
api.menuList().then((res) => {
|
api.menuList().then((res) => {
|
||||||
|
console.log(res, '....resmenu')
|
||||||
res.data.forEach((item) => {
|
res.data.forEach((item) => {
|
||||||
this.navList.forEach((items) => {
|
this.navList.forEach((items) => {
|
||||||
if (item.menuKey == items.value) {
|
if (item.menuKey == items.value) {
|
||||||
|
|
Loading…
Reference in New Issue