* index: fix visionTip not show at right position.
This commit is contained in:
@@ -8,13 +8,6 @@ include 'chosen.html.php';
|
||||
<?php $this->app->loadConfig('sso');?>
|
||||
<?php if(!empty($config->sso->redirect)) js::set('ssoRedirect', $config->sso->redirect);?>
|
||||
<?php if($config->showMainMenu):?>
|
||||
<style>
|
||||
#visionTips {width: 280px; height: 0; position: absolute; top:64px; right: 48px; z-index: 200;}
|
||||
#visionTips .inner {width: 270px; height: 58px; position: relative; bottom: 0; left: 0; border-radius: 8px; display: flex; justify-content: space-around; align-items: center;}
|
||||
#visionTips .line {width: 2px; height: 31px; position: absolute; top: -31px; left: 224px;}
|
||||
#visionTips .circle {width: 10px; height: 10px; border-radius: 50%; border-width: 3px; border-style: solid; position: relative; left: -4px; background-color: white;}
|
||||
#visionTips .inner > button {border-color: white;}
|
||||
</style>
|
||||
<header id='header'>
|
||||
<div id='mainHeader'>
|
||||
<div class='container'>
|
||||
@@ -32,17 +25,6 @@ include 'chosen.html.php';
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(count(explode(',', $this->app->user->visions)) > 1 && empty($config->global->hideVisionTips)):?>
|
||||
<div id="visionTips">
|
||||
<div class="inner bg-primary">
|
||||
<span><?php echo $lang->visionTips;?></span>
|
||||
<button type="button" class="btn btn-primary" onclick="hideVisionTips()"><?php echo $lang->IKnow;?></button>
|
||||
<div class="line bg-primary pannel-primary">
|
||||
<div class="circle alert-primary-inverse"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(isset($lang->{$app->tab}->menu->$activeMenu) and is_array($lang->{$app->tab}->menu->$activeMenu) and isset($lang->{$app->tab}->menu->{$activeMenu}['subMenu'])):?>
|
||||
@@ -82,13 +64,6 @@ if(window.navigator.userAgent.indexOf('xuanxuan') > 0)
|
||||
$('#subHeader').parent().parent().children('#main').css('top', '100px');
|
||||
});
|
||||
}
|
||||
|
||||
function hideVisionTips()
|
||||
{
|
||||
$('#visionTips').hide();
|
||||
var link = createLink('custom', 'ajaxSaveCustomFields', 'module=common§ion=global&key=hideVisionTips');
|
||||
$.post(link, {fields: 1});
|
||||
}
|
||||
</script>
|
||||
<main id='main' <?php if(!empty($config->sso->redirect)) echo "class='ranzhiFixedTfootAction'";?> >
|
||||
<div class='container'>
|
||||
|
||||
@@ -156,6 +156,32 @@ js::set('showFeatures', $showFeatures);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(count(explode(',', $this->app->user->visions)) > 1 && empty($config->global->hideVisionTips)):?>
|
||||
<style>
|
||||
#visionTips {width: 280px; height: 0; position: absolute; bottom: 120px; left: 0; z-index: 200;}
|
||||
#visionTips .inner {width: 270px; height: 58px; position: relative; bottom: 0; left: 0; border-radius: 8px; display: flex; justify-content: space-around; align-items: center;}
|
||||
#visionTips .line {width: 2px; height: 31px; position: absolute; bottom: -31px; left: 64px;}
|
||||
#visionTips .circle {width: 10px; height: 10px; border-radius: 50%; border-width: 3px; border-style: solid; position: relative; left: -4px; top: 31px; background-color: white;}
|
||||
#visionTips .inner > button {border-color: white;}
|
||||
</style>
|
||||
<div id="visionTips">
|
||||
<div class="inner bg-primary">
|
||||
<span><?php echo $lang->visionTips;?></span>
|
||||
<button type="button" class="btn btn-primary" onclick="hideVisionTips()"><?php echo $lang->IKnow;?></button>
|
||||
<div class="line bg-primary pannel-primary">
|
||||
<div class="circle alert-primary-inverse"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function hideVisionTips()
|
||||
{
|
||||
$('#visionTips').fadeOut();
|
||||
var link = createLink('custom', 'ajaxSaveCustomFields', 'module=common§ion=global&key=hideVisionTips');
|
||||
$.post(link, {fields: 1});
|
||||
}
|
||||
</script>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php include './chatview.html.php';?>
|
||||
<?php js::set('searchAB', $lang->searchAB);?>
|
||||
|
||||
Reference in New Issue
Block a user