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.
37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
<?php
|
|
$route = CommonTool::escapeParams($_GET, ['route'])['route'];
|
|
$loading = false;
|
|
$loadingRouteMap = array (
|
|
'goods/batch/task_goods',
|
|
'goods/detect/similar_goods',
|
|
'goods/watermark/watermark_list',
|
|
'goods/goods/manage',
|
|
'goods/detect/attr_task_list',
|
|
'detect/ban_words/index',
|
|
'goods/watermark/search_allow_add_goods',
|
|
'goods/watermark/manage_goods',
|
|
'move/sync/plan_detail',
|
|
'move/sync/search_goods',
|
|
RouteConst::goodsWatermarkSearchAllowAddGoods,
|
|
RouteConst::goodsWatermarkTaskDetail,
|
|
RouteConst::goodsWatermarkSearchWatermarkGoods,
|
|
RouteConst::goodsWatermarkSystemMaterialList,
|
|
|
|
);
|
|
foreach ($loadingRouteMap as $load) {
|
|
if (strpos($route, $load) !== false) {
|
|
$loading = true;
|
|
break;
|
|
}
|
|
}
|
|
?>
|
|
|
|
<div class="loading-container J_loadingContainer <?php echo !$loading ? ' loading-inactive' : ''; ?>">
|
|
<div class="loading-progress text-center">
|
|
<i class="fa fa-spinner fa-spin fa-3x fa-fw m-t"></i>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
var loadingRtMap = <?php echo json_encode($loadingRouteMap);?>;
|
|
</script>
|