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
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
99264d13700bf2b373fea89ac28b193726912190
2 parents
52f65e20
1dcecb8e
Merge branch 'hotfix/wechatAlipay'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
18 deletions
static/js/me/pay.js
yohobuy/m.yohobuy.com/application/controllers/Home.php
static/js/me/pay.js
View file @
99264d1
...
...
@@ -115,9 +115,22 @@ function hideWeChatPay() {
});
}
function
hideAliPay
()
{
var
$payApps
=
$
(
'.app'
);
$payApps
.
each
(
function
(
idx
,
app
)
{
if
(
$
(
app
).
parent
().
attr
(
'id'
)
===
'alipay'
)
{
$
(
app
).
closest
(
'a'
).
css
(
'display'
,
'none'
);
return
false
;
}
});
}
function
handleForWX
()
{
if
(
!
isWXOpen
())
{
hideWeChatPay
();
}
else
{
hideAliPay
();
}
}
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
99264d1
...
...
@@ -991,27 +991,28 @@ class HomeController extends AbstractAction
}
}
}
$payList
=
array
(
0
=>
array
(
'appIcon'
=>
''
,
'payLink'
=>
Helpers
::
url
(
'/shopping/pay/index'
,
array
(
'order_code'
=>
$orderCode
,
'payment_type'
=>
18
)),
'appId'
=>
'alipay'
,
'app'
=>
'支付宝支付'
,
'hint'
=>
'支付宝钱包支付'
,
'subHint'
=>
'推荐支付宝用户使用'
),
1
=>
array
(
'appIcon'
=>
''
,
'payLink'
=>
''
,
'appId'
=>
'weixin'
,
'app'
=>
'微信支付'
,
'hint'
=>
'推荐使用'
,
'subHint'
=>
''
),
);
$this
->
_view
->
display
(
'pay'
,
array
(
'payCenterPage'
=>
true
,
'payAppInfo'
=>
array
(
0
=>
array
(
'appIcon'
=>
''
,
'payLink'
=>
Helpers
::
url
(
'/shopping/pay/index'
,
array
(
'order_code'
=>
$orderCode
,
'payment_type'
=>
18
)),
'appId'
=>
'alipay'
,
'app'
=>
'支付宝支付'
,
'hint'
=>
'支付宝钱包支付'
,
'subHint'
=>
'推荐支付宝用户使用'
,
),
1
=>
array
(
'appIcon'
=>
''
,
'payLink'
=>
''
,
'appId'
=>
'weixin'
,
'app'
=>
'微信支付'
,
'hint'
=>
'推荐使用'
,
'subHint'
=>
''
,
),
),
'payAppInfo'
=>
$payList
,
'hasWxShare'
=>
$hasWxShare
,
'orderCode'
=>
$orderCode
,
'orderTotal'
=>
isset
(
$orderDetail
[
'goodsAmount'
])
?
$orderDetail
[
'goodsAmount'
]
:
0
,
...
...
Please
register
or
login
to post a comment