Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
8 years ago
Commit
8ef7c192cec4a8d6fd806c82a1215e99cc4b6b94
1 parent
edd728fd
pay-result-modified
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
static/js/cart/entry.js
static/js/product/pay-back.js → static/js/cart/pay-back.js
template/m.yohobuy.com/partials/layout/use.phtml
yohobuy/m.yohobuy.com/application/modules/Shopping/controllers/Pay.php
static/js/cart/entry.js
View file @
8ef7c19
...
...
@@ -11,3 +11,4 @@ require('./invoice-info');
require
(
'./select-coupon'
);
require
(
'./select-address'
);
require
(
'./jit-detail'
);
require
(
'./pay-back'
);
\ No newline at end of file
...
...
static/js/
produc
t/pay-back.js → static/js/
car
t/pay-back.js
View file @
8ef7c19
var
$
=
require
(
'jquery'
);
require
(
'../
../
common'
);
require
(
'../common'
);
//支付结果埋点
setTimeout
(
function
()
{
...
...
template/m.yohobuy.com/partials/layout/use.phtml
View file @
8ef7c19
...
...
@@ -436,6 +436,6 @@
{{/if}}
{{#if payBackPage}}
<script>
seajs.use('js/
produc
t/pay-back');
seajs.use('js/
car
t/pay-back');
</script>
{{/if}}
...
...
yohobuy/m.yohobuy.com/application/modules/Shopping/controllers/Pay.php
View file @
8ef7c19
...
...
@@ -234,7 +234,7 @@ class PayController extends AbstractAction
$this
->
setNavHeader
(
'支付中心'
,
Helpers
::
url
(
'/home/orders'
),
false
);
$view
=
'notneedpay'
;
if
(
$payResult
->
payResult
==
200
)
{
if
(
$payResult
->
payResult
==
=
200
)
{
$view
=
'index'
;
if
(
!
empty
(
$payResult
->
orderCode
))
{
$orderCode
=
$payResult
->
orderCode
;
...
...
@@ -247,7 +247,7 @@ class PayController extends AbstractAction
$payOrderCode
=
$payResult
->
orderCode
;
$payAmount
=
$payResult
->
totalFee
;
if
(
$view
=
'notneedpay'
)
{
if
(
$view
=
==
'notneedpay'
)
{
$payBack
=
'failure'
;
}
else
{
$payBack
=
'success'
;
...
...
Please
register
or
login
to post a comment