From d34b70df1f9eb49715348183b8516b7a0375edba Mon Sep 17 00:00:00 2001 From: devil_gong Date: Thu, 10 Jan 2019 14:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E4=BA=8C=E7=BA=A7=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/view/default/navigation/index.html | 12 ++++++------ application/service/NavigationService.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/application/admin/view/default/navigation/index.html b/application/admin/view/default/navigation/index.html index 8f1e001d0..c338009b6 100755 --- a/application/admin/view/default/navigation/index.html +++ b/application/admin/view/default/navigation/index.html @@ -37,15 +37,15 @@ {{:lang('common_nav_type_list')[$v['data_type']]}} - + - + - {{if !empty($data_list)}} - {{foreach $v.item as $vs}} + {{if !empty($v['items'])}} + {{foreach $v.items as $vs}} {{$vs.name}} @@ -54,11 +54,11 @@ {{:lang('common_nav_type_list')[$vs['data_type']]}} - + - + {{/foreach}} diff --git a/application/service/NavigationService.php b/application/service/NavigationService.php index 9c456443e..7007929ca 100755 --- a/application/service/NavigationService.php +++ b/application/service/NavigationService.php @@ -127,7 +127,7 @@ class NavigationService { foreach($data as &$v) { - $v['item'] = self::NavDataDealWith(Db::name('Navigation')->field($field)->where(['nav_type'=>$params['nav_type'], 'pid'=>$v['id']])->order('sort')->select()); + $v['items'] = self::NavDataDealWith(Db::name('Navigation')->field($field)->where(['nav_type'=>$params['nav_type'], 'pid'=>$v['id']])->order('sort')->select()); } } return $data;