Authored by 陈峰

Merge branch 'hotfix/payCenter' into 'master'

fix alipay

fix alipay

See merge request !1496
... ... @@ -107,6 +107,17 @@ const payCenter = (req, res, next) => {
isOldUser: Boolean(req.cookies._isOldUser && req.cookies._isOldUser === '4')
};
if (_.get(req, 'app.locals.wap.pay.alipayclose', false)) {
_.set(responseData.payAppInfo, '[0]', {
appIcon: '',
appId: 'alipay',
app: '支付宝支付',
hint: '支付宝服务暂不可用',
subHint: '推荐使用有货APP进行支付',
disable: true
});
}
res.render('pay/pay-center', responseData);
})().catch(next);
};
... ...
... ... @@ -4,7 +4,7 @@
{{/if}}
<div class="payapp-list">
{{# payAppInfo}}
<div class="box" id="{{appId}}" data-href="{{payLink}}">
<div class="box{{# disable}} disable{{/ disable}}" id="{{appId}}" data-href="{{payLink}}">
<div class="icon">
{{#if appIcon}}
<img src="{{appIcon}}" alt="app图标">
... ...
{
"name": "yohobuywap-node",
"version": "6.6.24",
"version": "6.6.25",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -66,6 +66,17 @@
}
}
.disable {
.icon {
opacity: 0.2;
}
.hint,
.app {
color: #ccc;
}
}
/* 加载中 */
.loading-toast {
... ...