* Adjust for show messager.

This commit is contained in:
wangyidong
2023-11-13 10:29:00 +08:00
parent fca0688264
commit 40535f7f47
3 changed files with 6 additions and 13 deletions
+1
View File
@@ -891,3 +891,4 @@ window.startCron = function(restart)
turnon ? browserNotify() : ping();
if(runnable) startCron();
if(scoreNotice) zui.Messager.show({ content: {html: scoreNotice}, placement: 'bottom-right', time: 0, icon: 'diamond', className: 'primary-pale' });
+4 -4
View File
@@ -27,6 +27,10 @@ jsVar('pollTime', (!empty($config->message->browser->turnon) && isset($config
jsVar('turnon', empty($config->message->browser->turnon) ? 0 : 1);
jsVar('runnable', $this->loadModel('cron')->runnable());
$scoreNotice = '';
if($config->vision != 'lite') $scoreNotice = $this->loadModel('score')->getNotice();
jsVar('scoreNotice', $scoreNotice);
set::zui(true);
set::bodyClass($this->cookie->hideMenu ? 'hide-menu' : 'show-menu');
@@ -105,8 +109,4 @@ div
),
);
$scoreNotice = '';
if($config->vision != 'lite') $scoreNotice = $this->loadModel('score')->getNotice();
div(setID('noticeBox'), empty($scoreNotice) ? null : html($scoreNotice));
render('pagebase');
+1 -9
View File
@@ -359,14 +359,6 @@ class scoreModel extends model
->fetch('score');
if(!$score) return '';
$notice = sprintf($this->lang->score->tips, $score, $this->app->user->score);
$fullNotice = <<<EOT
<div id='noticeAttend' class='alert alert-success with-icon alert-dismissable' style='width:310px; position:fixed; bottom:25px; right:15px; z-index: 9999;' id='planInfo'>
<i class='icon icon-diamond'> </i>
<div class='content'>{$notice}</div>
<button type="button" class="close" data-dismiss="alert">×</button>
</div>
EOT;
return $fullNotice;
return sprintf($this->lang->score->tips, $score, $this->app->user->score);
}
}