You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
358 lines
12 KiB
PHP
358 lines
12 KiB
PHP
<?php
|
|
$rt = CommonTool::escapeParams($_GET, ['route'])['route'];
|
|
$menuMap = array (
|
|
array (
|
|
'groupName' => '商品复制',
|
|
'icon' => 'fa-clipboard',
|
|
'url' => Zc::url(RouteConst::moveBatchTarget),
|
|
'open' => false,
|
|
'childs' => array (
|
|
array (
|
|
'name' => '商品复制',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::moveBatchTarget),
|
|
'icon' => 'fa-clipboard',
|
|
'selectedRoute' => array (
|
|
RouteConst::moveBatchTarget,
|
|
RouteConst::moveBatchFinish,
|
|
RouteConst::moveBatchShopCopy,
|
|
)
|
|
),
|
|
array (
|
|
'name' => '商品复制历史',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::moveBatchHistory),
|
|
'icon' => 'fa-history',
|
|
'selectedRoute' => array (
|
|
RouteConst::moveBatchHistory
|
|
)
|
|
)
|
|
)
|
|
),
|
|
array (
|
|
'groupName' => '批量修改',
|
|
'url' => Zc::url(RouteConst::goodsBatchIndex),
|
|
'icon' => 'fa-pencil-square',
|
|
'open' => false,
|
|
'childs' => array (
|
|
array (
|
|
'name' => '批量修改',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::goodsBatchIndex),
|
|
'icon' => 'fa-pencil-square',
|
|
'selectedRoute' => array (
|
|
RouteConst::goodsBatchIndex
|
|
)
|
|
),
|
|
array (
|
|
'name' => '批量修改历史',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::goodsBatchTask),
|
|
'icon' => 'fa-history',
|
|
'selectedRoute' => array (
|
|
RouteConst::goodsBatchTask,
|
|
RouteConst::goodsBatchTaskGoods
|
|
)
|
|
)
|
|
)
|
|
),
|
|
|
|
array (
|
|
'groupName' => '批量水印',
|
|
'icon' => 'fa-picture-o',
|
|
'url' => Zc::url(RouteConst::goodsWatermarkList, array (
|
|
'watermarkImageType' => WatermarkConst::watermarkImageTypeGoods
|
|
)),
|
|
'open' => false,
|
|
'childs' => array (
|
|
array (
|
|
'name' => '批量主图水印',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::goodsWatermarkList, array (
|
|
'watermarkImageType' => WatermarkConst::watermarkImageTypeGoods
|
|
)),
|
|
'icon' => 'fa-file-image-o',
|
|
'selectedRoute' => array (
|
|
RouteConst::goodsWatermarkList,
|
|
RouteConst::goodsWatermarkSearchAllowAddGoods,
|
|
RouteConst::goodsWatermarkTaskDetail,
|
|
RouteConst::goodsWatermarkSearchWatermarkGoods,
|
|
RouteConst::goodsWatermarkSystemMaterialList,
|
|
RouteConst::goodsWatermarkTaskThrow,
|
|
)
|
|
)
|
|
|
|
)
|
|
),
|
|
|
|
array (
|
|
'groupName' => '商品源同步',
|
|
'url' => Zc::url(RouteConst::moveSourceSyncIndex),
|
|
'icon' => 'fa-exchange',
|
|
'open' => false,
|
|
'childs' => array(
|
|
array (
|
|
'name' => '创建源同步计划',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::moveSourceSyncIndex),
|
|
'selectedRoute' => array (
|
|
RouteConst::moveSourceSyncIndex
|
|
),
|
|
),
|
|
array (
|
|
'name' => '同步记录',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::moveSourceSyncPlanList),
|
|
'selectedRoute' => array (
|
|
RouteConst::moveSourceSyncPlanList,
|
|
RouteConst::moveSourceSyncTaskSuccessGoodsList,
|
|
RouteConst::moveSourceSyncTaskFailGoodsList,
|
|
),
|
|
)
|
|
)
|
|
),
|
|
|
|
array (
|
|
'groupName' => '违禁词检测',
|
|
'url' => Zc::url(RouteConst::detectBanWordsIndex),
|
|
'icon' => 'fa-stethoscope',
|
|
'open' => false,
|
|
'childs' => array(
|
|
array (
|
|
'name' => '违禁词扫描中心',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::detectBanWordsIndex),
|
|
'selectedRoute' => array (
|
|
RouteConst::detectBanWordsIndex
|
|
),
|
|
'extKey' => 'tab',
|
|
'extValue' => 'scanCenter'
|
|
),
|
|
array (
|
|
'name' => '违禁词扫描历史',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::detectBanWordsIndex, array('tab' => 'scanHistory')),
|
|
'selectedRoute' => array (
|
|
RouteConst::detectBanWordsIndex
|
|
),
|
|
'extKey' => 'tab',
|
|
'extValue' => 'scanHistory'
|
|
),
|
|
|
|
array (
|
|
'name' => '违禁词管理',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::detectBanWordsEditBanWord),
|
|
'icon' => 'fa-stethoscope',
|
|
'selectedRoute' => array (
|
|
RouteConst::detectBanWordsEditBanWord
|
|
)
|
|
),
|
|
array (
|
|
'name' => '图片黑名单',
|
|
'url' => Zc::url(RouteConst::moveImageBlackImg),
|
|
'icon' => 'fa-stethoscope',
|
|
'selectedRoute' => array (
|
|
RouteConst::moveImageBlackImg
|
|
)
|
|
)
|
|
|
|
)
|
|
),
|
|
|
|
array (
|
|
'groupName' => '商品快速编辑',
|
|
'url' => Zc::url(RouteConst::goodsGoodsManage),
|
|
'icon' => 'fa-gear',
|
|
'selectedRoute' => array(
|
|
RouteConst::goodsGoodsManage,
|
|
)
|
|
),
|
|
|
|
array (
|
|
'groupName' => '重复铺货检测',
|
|
'url' => Zc::url(RouteConst::detectSimilarGoodsIndex),
|
|
'icon' => 'fa-clone',
|
|
'selectedRoute' => array (
|
|
RouteConst::detectSimilarGoodsIndex
|
|
)
|
|
),
|
|
|
|
array (
|
|
'groupName' => '全店商品导出',
|
|
'url' => Zc::url(RouteConst::goodsExportIndex),
|
|
'icon' => 'fa-cloud-download',
|
|
'selectedRoute' => array (
|
|
RouteConst::goodsExportIndex,
|
|
RouteConst::goodsExportShowExportTaskList,
|
|
)
|
|
),
|
|
|
|
/* array (
|
|
'groupName' => '多客服聊天',
|
|
'url' => Zc::url(RouteConst::chatChatShowAuthMallList),
|
|
'icon' => 'fa-bullhorn',
|
|
'open' => false,
|
|
'selectedRoute' => array (
|
|
RouteConst::chatChatShowAuthMallList,
|
|
)
|
|
),
|
|
|
|
array (
|
|
'groupName' => '开团监控',
|
|
'url' => Zc::url(RouteConst::monitorUnGroupOrderIndex),
|
|
'id' => 'J_monitorUnGroupOrderMenu',
|
|
'icon' => 'fa-random',
|
|
'open' => false,
|
|
'selectedRoute' => array (
|
|
RouteConst::monitorUnGroupOrderIndex,
|
|
)
|
|
), */
|
|
array(
|
|
'groupName' => '推荐有奖',
|
|
'url' => Zc::url(RouteConst::userRechargFreePlan),
|
|
'icon' => 'fa-random',
|
|
'open' => false,
|
|
'hot' => true,
|
|
'selectedRoute' => array(
|
|
RouteConst::userRechargFreePlan,
|
|
),
|
|
|
|
),
|
|
array (
|
|
'groupName' => '用户',
|
|
'url' => Zc::url(RouteConst::userPaymentIndex),
|
|
'icon' => 'fa-user',
|
|
'open' => false,
|
|
'childs' => array(
|
|
array (
|
|
'name' => '搬家充值',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::userPaymentIndex),
|
|
'selectedRoute' => array (
|
|
RouteConst::userRechargeMoveRecharge,
|
|
RouteConst::userPaymentIndex
|
|
),
|
|
),
|
|
array (
|
|
'name' => '搬家极速版充值记录',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::userPaymentAppOrderList),
|
|
'selectedRoute' => array (
|
|
RouteConst::userPaymentAppOrderList
|
|
),
|
|
),
|
|
array (
|
|
'name' => '搬家提速包充值记录',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::userPaymentMoveSpeedRechargeList),
|
|
'selectedRoute' => array (
|
|
RouteConst::userPaymentMoveSpeedRechargeList
|
|
),
|
|
),
|
|
array (
|
|
'name' => '搬家数量充值记录',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::userRechargeMoveRechargeList),
|
|
'selectedRoute' => array (
|
|
RouteConst::userRechargeMoveRechargeList
|
|
),
|
|
),
|
|
array (
|
|
'name' => '团购极速版充值记录',
|
|
'allowPlatform' => array (
|
|
SessionConst::platformPc,
|
|
SessionConst::platformWeb
|
|
),
|
|
'url' => Zc::url(RouteConst::userPaymentAppGroupOrderList),
|
|
'selectedRoute' => array (
|
|
RouteConst::userPaymentAppGroupOrderList
|
|
),
|
|
),
|
|
)
|
|
)
|
|
);
|
|
?>
|
|
<div class="sidebar-menu-box pos-a">
|
|
<ul class="nav sidebar-menu sidebar-lg">
|
|
<?php foreach ($menuMap as $menuGroup){?>
|
|
<?php
|
|
$active = false;
|
|
foreach ($menuGroup['childs'] as $m){
|
|
if(in_array($rt, $m['selectedRoute'])){
|
|
$active = true;
|
|
break;
|
|
}
|
|
}
|
|
|
|
$active = $active || in_array($rt, $menuGroup['selectedRoute']) || $menuGroup['open'];
|
|
?>
|
|
<?php if($menuGroup['childs']){?>
|
|
<li class="<?php echo $active ? 'open' : '';?>" <?php echo $menuGroup['id'] ? ' id="' . $menuGroup['id'] . '"' : '';?>>
|
|
<a href="<?php echo $menuGroup['url'];?>" class="menu-dropdown"><i class="fa <?php echo $menuGroup['icon']?> menu-icon"></i><span class="menu-text"><?php echo $menuGroup['groupName']?> </span><i class="menu-expand"></i></a>
|
|
<ul class="submenu">
|
|
<?php foreach ($menuGroup['childs'] as $menu){?>
|
|
<?php $ext = empty($menu['extKey']) || ($_GET[$menu['extKey']] === $menu['extValue']);?>
|
|
<li class="<?php echo (in_array($rt, $menu['selectedRoute']) && $ext) ? 'active' : '';?>"><a href="<?php echo $menu['url'];?>"><span class="menu-text"><?php echo $menu['name']?></span></a>
|
|
<?php if($menu['hot']){?>
|
|
<span style="position:absolute;right:10px; top:5px;"><img src="<?php echo HtmlTool::getStaticFile('hot.gif');?>" style="width:28px;"></span>
|
|
<?php }?>
|
|
</li>
|
|
<?php }?>
|
|
</ul>
|
|
</li>
|
|
<?php } else {?>
|
|
<li class="<?php echo $active ? 'active' : '';?>" <?php echo $menuGroup['id'] ? ' id="' . $menuGroup['id'] . '"' : '';?>>
|
|
<a href="<?php echo $menuGroup['url'];?>"><i class="fa <?php echo $menuGroup['icon']?> menu-icon"></i><span class="menu-text"><?php echo $menuGroup['groupName']?> </span>
|
|
<?php if ($menuGroup['hot']) { ?>
|
|
<img src="<?php echo HtmlTool::getStaticFile('hot.gif'); ?>" />
|
|
<?php } ?>
|
|
</a>
|
|
|
|
</li>
|
|
<?php }?>
|
|
<?php }?>
|
|
</ul>
|
|
</div>
|