Authored by 郭成尧

payment

... ... @@ -11,8 +11,8 @@ const isProduction = process.env.NODE_ENV === 'production';
const isTest = process.env.NODE_ENV === 'test';
const domains = {
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
singleApi: 'http://api-test3.yohops.com:9999/',
global: 'http://global-test-soa.yohops.com:9999',
liveApi: 'http://testapi.live.yohops.com:9999/',
... ...
... ... @@ -262,6 +262,13 @@ function submitOrder() {
window.location.href = url;
} else if (res.code === 409) {
richTip.show(res.message, res.buttons);
} else if (res.code === 440) {
dialog.show({
dialogText: res.message,
hasFooter: {
centerBtnText: '我知道了'
}
});
} else if (res.message) {
tip.show(res.message);
}
... ...
... ... @@ -220,18 +220,17 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) {
if (data.payment_way) {
let payway = data.payment_way;
payway = payway.filter(obj => obj.is_support === 'Y')
.map(way => {
let obj = {};
obj.id = way.payment_id;
obj.paymentType = way.payment_type;
obj.name = way.payment_type_name;
obj.isSupport = way.is_support === 'Y';
obj.isSupportMessage = way.payment_type === 2 ? _.get(way, 'is_support_message', false) : false;
return obj;
});
payway = payway.map(way => {
let obj = {};
obj.id = way.payment_id;
obj.paymentType = way.payment_type;
obj.name = way.payment_type_name;
obj.isSupport = way.is_support === 'Y';
obj.isSupportMessage = way.payment_type === 2 ? _.get(way, 'is_support_message', false) : false;
return obj;
});
payway.some(way => {
let bool = way.paymentType === orderInfo.paymentType;
... ...