Authored by yyq

fix alipay

@@ -107,6 +107,17 @@ const payCenter = (req, res, next) => { @@ -107,6 +107,17 @@ const payCenter = (req, res, next) => {
107 isOldUser: Boolean(req.cookies._isOldUser && req.cookies._isOldUser === '4') 107 isOldUser: Boolean(req.cookies._isOldUser && req.cookies._isOldUser === '4')
108 }; 108 };
109 109
  110 + if (_.get(req, 'app.locals.wap.pay.alipayclose', false)) {
  111 + _.set(responseData.payAppInfo, '[0]', {
  112 + appIcon: '',
  113 + appId: 'alipay',
  114 + app: '支付宝支付',
  115 + hint: '支付宝服务暂不可用',
  116 + subHint: '推荐使用有货APP进行支付',
  117 + disable: true
  118 + });
  119 + }
  120 +
110 res.render('pay/pay-center', responseData); 121 res.render('pay/pay-center', responseData);
111 })().catch(next); 122 })().catch(next);
112 }; 123 };
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 {{/if}} 4 {{/if}}
5 <div class="payapp-list"> 5 <div class="payapp-list">
6 {{# payAppInfo}} 6 {{# payAppInfo}}
7 - <div class="box" id="{{appId}}" data-href="{{payLink}}"> 7 + <div class="box{{# disable}} disable{{/ disable}}" id="{{appId}}" data-href="{{payLink}}">
8 <div class="icon"> 8 <div class="icon">
9 {{#if appIcon}} 9 {{#if appIcon}}
10 <img src="{{appIcon}}" alt="app图标"> 10 <img src="{{appIcon}}" alt="app图标">
1 { 1 {
2 "name": "yohobuywap-node", 2 "name": "yohobuywap-node",
3 - "version": "6.6.24", 3 + "version": "6.6.25",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -66,6 +66,17 @@ @@ -66,6 +66,17 @@
66 } 66 }
67 } 67 }
68 68
  69 + .disable {
  70 + .icon {
  71 + opacity: 0.2;
  72 + }
  73 +
  74 + .hint,
  75 + .app {
  76 + color: #ccc;
  77 + }
  78 + }
  79 +
69 /* 加载中 */ 80 /* 加载中 */
70 81
71 .loading-toast { 82 .loading-toast {