Commit 4cd82b84 authored by 杨培's avatar 杨培

提示界面调整

parent 9038c8a6
...@@ -184,7 +184,9 @@ class MyIncomeController extends \yii\web\Controller ...@@ -184,7 +184,9 @@ class MyIncomeController extends \yii\web\Controller
$model->expires = $token['expires_in'] + time(); $model->expires = $token['expires_in'] + time();
if ($model->save()) { if ($model->save()) {
echo '绑定成功!'; return $this->render('@app/views/site/success', [
'message' => '成功绑定结算微信!'
]);
} else { } else {
Utils::showWarn('绑定失败:'.Utils::fetchErrorFirst($model->errors)); Utils::showWarn('绑定失败:'.Utils::fetchErrorFirst($model->errors));
} }
......
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2016/10/20
* Time: 19:02
*/
use frontend\assets\AppAsset;
AppAsset::register($this);
AppAsset::addCss($this, '@web/assets/css/style.css');
\Yii::$app->controller->layout = 'blank';
$css = <<<CSS
.sus-tips {
position: absolute;
left: 50%;
top: 50%;
margin-top: -105px;
margin-left: -200px;
width: 400px;
padding: 40px;
text-align: center;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0,0,0,.05);
}
.sus-tips i {
display: inline-block;
width: 60px;
height: 60px;
font-size: 30px;
text-align: center;
line-height: 60px;
border-radius: 100%;
background-color:#24cf5f ;
color: #fff;
}
.sus-tips p {
padding: 40px 0 0;
color: #24cf5f;
font-size: 14px;
}
CSS;
$this->registerCss($css);
$this->title = '提示';
?>
<div class="sus-tips">
<i class="glyphicon glyphicon-ok"></i>
<p><?=$message?></p>
</div>
\ No newline at end of file
<?php
/**
* @var $message string
*/
$css = <<<CSS
html {
background-color: #f7f7f7;
}
.danger-tip {
text-align: center;
background-color: #f7f7f7;
margin-top: 200px;
}
.danger-tip img {
width: 150px;
}
.danger-tip h3 {
font-size: 24px;
}
.danger-tip p {
width: 400px;
font-size: 14px;
color: #999;
margin: 20px auto;
text-align: left;
background-color: #fff;
border-radius: 5px;
padding: 20px;
border-left:3px solid #ccc;
}
CSS;
$this->registerCss($css);
$this->title = '提示';
?>
<div class="danger-tip">
<img src="<?=\frontend\assets\AppAsset::getStaticUrl('img/no-connection.gif')?>">
<h3>提示信息</h3>
<p><?=$message?></p>
<button type="button" class="btn btn-default" onclick="history.back()">返回</button>
</div>
\ No newline at end of file
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
</div> </div>
</form> </form>
</template> </template>
<style>
</style>
<script> <script>
var defaultGetText = "获取验证码"; var defaultGetText = "获取验证码";
var timerId = null; var timerId = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment