Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
84543ee0e1442486c639dd0de4397c6121095bdf
1 parent
7febb380
修复默认选中的支付方式为在线支付
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
framework
template/m.yohobuy.com/actions/cart/index/order-ensure.phtml
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
framework
@
e9d066dd
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
Subproject commit
e9d066dd88a8e7e37103021c427a205a5cfcdcec
...
...
template/m.yohobuy.com/actions/cart/index/order-ensure.phtml
View file @
84543ee
...
...
@@ -130,9 +130,9 @@
<ul
class=
"pay-mode"
>
{
{#
paymentWay
}
}
<li
class=
"{{#if
default
}}default{{/if}}"
data-pay-type=
"{{paymentType}}"
data-pay-id=
"{{id}}"
>
<li
class=
"{{#if
recommend
}}default{{/if}}"
data-pay-type=
"{{paymentType}}"
data-pay-id=
"{{id}}"
>
<span
class=
"iconfont"
>
{
{#if
default
}
}
{
{#if
recommend
}
}

62
f;
{
{else
}
}

62
e;
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
84543ee
...
...
@@ -420,7 +420,10 @@ class CartModel
$onePay
[
'id'
]
=
$pay
[
'payment_id'
];
$onePay
[
'paymentType'
]
=
$pay
[
'payment_type'
];
$onePay
[
'name'
]
=
$pay
[
'payment_type_name'
];
$onePay
[
'default'
]
=
(
$pay
[
'default'
]
===
'Y'
);
// $onePay['default'] = ($pay['default'] === 'Y');
if
(
$onePay
[
'paymentType'
]
==
1
)
{
$onePay
[
'recommend'
]
=
true
;
}
$result
[
'paymentWay'
][]
=
$onePay
;
}
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
84543ee
...
...
@@ -268,8 +268,8 @@ class IndexController extends AbstractAction
// 审判跳转登录页
$this
->
auditJumpLogin
();
$this
->
setTitle
(
'购物车'
);
$this
->
setNavHeader
(
'购物车'
);
$this
->
setTitle
(
'确认订单'
);
$this
->
setNavHeader
(
'确认订单'
);
// 购物车商品为空跳转到购物车页面
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
();
...
...
Please
register
or
login
to post a comment