main.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /* @var $this \yii\web\View */
  3. /* @var $content string */
  4. use yii\helpers\Html;
  5. use frontend\assets\AppAsset;
  6. AppAsset::register($this);
  7. ?>
  8. <?php $this->beginPage() ?>
  9. <!DOCTYPE html>
  10. <html lang="<?= Yii::$app->language ?>">
  11. <head>
  12. <meta charset="<?= Yii::$app->charset ?>">
  13. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
  14. <?= Html::csrfMetaTags() ?>
  15. <title><?= Html::encode(Yii::$app->params['sitetitle']) ?></title>
  16. <?php $this->head() ?>
  17. </head>
  18. <body>
  19. <script>
  20. // wx.config({
  21. // debug: true,
  22. // appId: '<?php //echo Yii::$app->params['wechat']['appID'] ?>//', // 必填,公众号的唯一标识
  23. // timestamp:<?php //echo $timestamp?>//, // 必填,生成签名的
  24. // nonceStr: '<?php //echo $noncestr; ?>//', // 必填,生成签名的
  25. // signature: '<?php //echo $wechat->getsignature($noncestr,$timestamp,Yii::$app->request->hostInfo.Yii::$app->request->getUrl());?>//',
  26. // jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','hideOptionMenu','chooseImage','previewImage','uploadImage','downloadImage','showMenuItems','startRecord', 'stopRecord', 'onVoiceRecordEnd', 'playVoice', 'pauseVoice', 'stopVoice', 'onVoicePlayEnd', 'uploadVoice']
  27. // });
  28. // wx.ready(function() {
  29. // wx.showMenuItems({
  30. // menuList: ["menuItem:favorite"] // 要显示的菜单项,所有menu项见附录3
  31. // });
  32. // wx.hideOptionMenu();
  33. // });
  34. </script>
  35. <?php $this->beginBody() ?>
  36. <?= $content ?>
  37. <?php $this->endBody() ?>
  38. </body>
  39. </html>
  40. <?php $this->endPage() ?>