From f349f7991b7378a48146258c957a9cae7a692447 Mon Sep 17 00:00:00 2001 From: htoooth <ht.anglenx@gmail.com> Date: Mon, 18 Jul 2016 15:04:14 +0800 Subject: [PATCH] fix path --- apps/shopping/controllers/pay.js | 2 ++ apps/shopping/models/pay-api.js | 2 ++ apps/shopping/models/pay.js | 3 +-- apps/shopping/modules/bank.js | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 apps/shopping/modules/bank.js diff --git a/apps/shopping/controllers/pay.js b/apps/shopping/controllers/pay.js index 845ceee..fabfd23 100644 --- a/apps/shopping/controllers/pay.js +++ b/apps/shopping/controllers/pay.js @@ -4,6 +4,8 @@ * @date: 2016/07/18 */ +"use strict"; + const PayService = require('../models/pay'); const Pay = { diff --git a/apps/shopping/models/pay-api.js b/apps/shopping/models/pay-api.js index 56de594..200842e 100644 --- a/apps/shopping/models/pay-api.js +++ b/apps/shopping/models/pay-api.js @@ -2,6 +2,8 @@ * Created by TaoHuang on 2016/7/18. */ +"use strict"; + const api = global.yoho.API; const API = {}; diff --git a/apps/shopping/models/pay.js b/apps/shopping/models/pay.js index 3b356e7..b09568a 100644 --- a/apps/shopping/models/pay.js +++ b/apps/shopping/models/pay.js @@ -4,8 +4,7 @@ * @date: 2016/07/18 */ - -const api = require('pay-api'); +const api = require('./pay-api'); const Service = {}; diff --git a/apps/shopping/modules/bank.js b/apps/shopping/modules/bank.js new file mode 100644 index 0000000..810a0f0 --- /dev/null +++ b/apps/shopping/modules/bank.js @@ -0,0 +1,81 @@ +/** + * Created by TaoHuang on 2016/7/18. + */ +"use strict"; + +const Bank = { + getList: () => { + return { + BOCB2C: { + name: '中国银行', + ico: 'http://static.yohobuy.com/images/pay/icon/zhongguo.png' + }, + ABC: { + name: '中国农业银行', + ico: 'http://static.yohobuy.com/images/pay/icon/nongye.png' + }, + SPABANK: { + name: '平安银行', + ico: 'http://static.yohobuy.com/images/pay/icon/pingan.png' + }, + CMBC: { + name: '中国民生银行', + ico: 'http://static.yohobuy.com/images/pay/icon/minsheng.png' + }, + ICBCB2C: { + name: '中国工商银行', + ico: 'http://static.yohobuy.com/images/pay/icon/gongshang.png' + }, + SPDB: { + name: '浦发银行', + ico: 'http://static.yohobuy.com/images/pay/icon/pufa.png' + }, + BJRCB: { + name: '北京农商银行', + ico: 'http://static.yohobuy.com/images/pay/icon/beijingnongshang.png' + }, + HZCBB2C: { + name: '杭州银行', + ico: 'http://static.yohobuy.com/images/pay/icon/hangzhou.png' + }, + CMB: { + name: '招商银行', + ico: 'http://static.yohobuy.com/images/pay/icon/zhaoshang.png' + }, + CIB: { + name: '兴业银行', + ico: 'http://static.yohobuy.com/images/pay/icon/xingye.png' + }, + FDB: { + name: '富滇银行', + ico: 'http://static.yohobuy.com/images/pay/icon/fudian.png' + }, + CEBDEBIT: { + name: '中国光大银行', + ico: 'http://static.yohobuy.com/images/pay/icon/guangda.png' + }, + CCB: { + name: '中国建设银行', + ico: 'http://static.yohobuy.com/images/pay/icon/zhongguojianshe.png' + }, + GDB: { + name: '广发银行', + ico: 'http://static.yohobuy.com/images/pay/icon/guangfa.png' + }, + POSTGC: { + name: '中国邮政储蓄', + ico: 'http://static.yohobuy.com/images/pay/icon/zhongguoyouzhengchuxu.png' + }, + SHBANK: { + name: '上海银行', + ico: 'http://static.yohobuy.com/images/pay/icon/shanghai.png' + }, + NBBANK: { + name: '宁波银行', + ico: 'http://static.yohobuy.com/images/pay/icon/ningbo.png' + } + }; + } +}; + +module.exports = Bank; \ No newline at end of file -- libgit2 0.24.0