Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
4cd82b84
Commit
4cd82b84
authored
Oct 20, 2016
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提示界面调整
parent
9038c8a6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
98 additions
and
3 deletions
+98
-3
MyIncomeController.php
src/frontend/controllers/MyIncomeController.php
+3
-1
success.php
src/frontend/views/site/success.php
+54
-0
warn.php
src/frontend/views/site/warn.php
+41
-0
unbind-form.vue
src/frontend/web/js/my-income/components/unbind-form.vue
+0
-2
No files found.
src/frontend/controllers/MyIncomeController.php
View file @
4cd82b84
...
...
@@ -184,7 +184,9 @@ class MyIncomeController extends \yii\web\Controller
$model
->
expires
=
$token
[
'expires_in'
]
+
time
();
if
(
$model
->
save
())
{
echo
'绑定成功!'
;
return
$this
->
render
(
'@app/views/site/success'
,
[
'message'
=>
'成功绑定结算微信!'
]);
}
else
{
Utils
::
showWarn
(
'绑定失败:'
.
Utils
::
fetchErrorFirst
(
$model
->
errors
));
}
...
...
src/frontend/views/site/success.php
0 → 100644
View file @
4cd82b84
<?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
src/frontend/views/site/warn.php
0 → 100644
View file @
4cd82b84
<?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
src/frontend/web/js/my-income/components/unbind-form.vue
View file @
4cd82b84
...
...
@@ -10,8 +10,6 @@
</div>
</form>
</
template
>
<
style
>
</
style
>
<
script
>
var
defaultGetText
=
"获取验证码"
;
var
timerId
=
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment