blank.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /* @var $this yii\web\View */
  3. /* @var $form yii\bootstrap4\ActiveForm */
  4. use yii\bootstrap4\Html;
  5. use backend\assets\BaseAsset;
  6. use backend\widgets\Alert;
  7. BaseAsset::register($this);
  8. ?>
  9. <?php $this->beginPage() ?>
  10. <!DOCTYPE html>
  11. <html lang="<?= Yii::$app->language ?>">
  12. <head>
  13. <meta charset="<?= Yii::$app->charset ?>">
  14. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  15. <meta name="renderer" content="webkit">
  16. <?= Html::csrfMetaTags() ?>
  17. <title><?= Html::encode($this->title) ?></title>
  18. <?php $this->head() ?>
  19. </head>
  20. <body>
  21. <?php $this->beginBody() ?>
  22. <?= $content; ?>
  23. <?= Alert::widget(); ?>
  24. <?= $this->render('_common') ?>
  25. <script>
  26. // 配置
  27. let config = {
  28. tag: "<?= Yii::$app->services->config->backendConfig('sys_tags') ?? false; ?>",
  29. isMobile: "<?= Yii::$app->params['isMobile'] ?? false; ?>",
  30. };
  31. $(function () {
  32. setTimeout(function () {
  33. $('[data-toggle="tooltip"]').tooltip()
  34. }, 50)
  35. })
  36. </script>
  37. <?php $this->endBody() ?>
  38. </body>
  39. </html>
  40. <?php $this->endPage() ?>
粤ICP备19079148号