<?php /** @var $schemes \common\models\Scheme[] */ /** @var $orders */ use common\functions\CommonFunctions; use common\models\Users; $this->title = "云豆充值"; $user = Yii::$app->session->get('user'); $userIcon = isset($user['userIcon']) ? $user['userIcon'] : null; $userIcon = CommonFunctions::createHttpImagePath($userIcon); $tools = new JsApiPay(); /** @var $jsApiParameters Array //JSON */ $jsApiParameters = []; foreach ($orders as $order) { array_push($jsApiParameters, $tools->GetJsApiParameters($order)); } ?> <div class="account-header"> <div class="avatar"> <img src="<?php echo $userIcon; ?> " alt="head"> <p><?php echo $user['nickname']; ?> </p> <p>云豆余额:<strong><?php echo Users::findBitcoin($user['userId']); ?> </strong></p>