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,8 +220,7 @@ 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 => {
payway = payway.map(way => {
let obj = {};
obj.id = way.payment_id;
... ...