<?= $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'], \yii\web\View::POS_HEAD); ?>