<?= $this->render($templateData);?> <script> <?php $this->beginBlock('js') ?> var _global={ mallId:<?= $mallId ?>, openId:"<?= $openId ?>", customerId:"<?= $customerId ?>" } <?php $this->endBlock() ?> </script> <?php $this->registerJs($this->blocks['js'], yiiwebView::POS_HEAD); ?>