...
|
...
|
@@ -57,11 +57,6 @@ const handleUseYohoCoin = (info) => { |
|
|
const handlePaymentInfo = (d, address) => {
|
|
|
let resData = {};
|
|
|
|
|
|
// 地址信息加密
|
|
|
// d.delivery_address.id = crypto.encryption('', `${d.delivery_address.address_id}`);
|
|
|
// delete d.delivery_address.address_id;
|
|
|
// resData.deliveryAddress = d.delivery_address;
|
|
|
|
|
|
_.forEach(address, dd => {
|
|
|
if (dd.is_default === 'Y') {
|
|
|
dd.default = true;
|
...
|
...
|
@@ -81,26 +76,6 @@ const handlePaymentInfo = (d, address) => { |
|
|
|
|
|
d.shopping_cart_data.hasCoin = _.round(d.yoho_coin * 100); // 有货币稀释
|
|
|
|
|
|
// let supportLine = [];
|
|
|
|
|
|
// _.forEach(['zhifubao', 'zaixianzhifu', 'weixinzhifu', 'wangyinzaixian',
|
|
|
// 'caifutong', 'shengfutong', 'tonglianzhifu'], sl => {
|
|
|
// supportLine.push(`//static.yohobuy.com/images/pay/icon/${sl}.png`);
|
|
|
// }
|
|
|
// );
|
|
|
// resData.supportLine = supportLine;
|
|
|
|
|
|
// let supportBank = [];
|
|
|
|
|
|
// _.forEach(
|
|
|
// ['BOC', 'ICBC', 'CMB', 'CCB', 'ABC', 'SPDB', 'CIB', 'GDB', 'SDB', 'CMBC',
|
|
|
// 'COMM', 'CITIC', 'HZCBB2C', 'CEB', 'SHBANK', 'NBBANK', 'SZPAB', 'BJRCB', 'FDB', 'PSBC'],
|
|
|
// sb => {
|
|
|
// supportBank.push(`//static.yohobuy.com/images/bankico/${sb}.gif`);
|
|
|
// }
|
|
|
// );
|
|
|
// resData.supportBank = supportBank;
|
|
|
|
|
|
_.forEach(d.goods_list, g => {
|
|
|
// link to goods
|
|
|
g.linkToGoods = helper.urlFormat(`/product/pro_${g.product_id}_${g.goods_id}/${g.cn_alphabet}.html`,
|
...
|
...
|
@@ -108,22 +83,6 @@ const handlePaymentInfo = (d, address) => { |
|
|
});
|
|
|
resData.goodsList = d.goods_list;
|
|
|
|
|
|
_.remove(d.payment_way, function(n) {
|
|
|
return n.is_support === 'N';
|
|
|
});
|
|
|
|
|
|
// let dPw = _.find(d.payment_way, {default: 'Y'});
|
|
|
// let dDt = _.find(d.delivery_time, {default: 'Y'});
|
|
|
|
|
|
// resData.defaultPayDelivery = {
|
|
|
// paymentTypeName: dPw ? dPw.payment_type_name : '在线支付(推荐)',
|
|
|
// paymentType: dPw ? dPw.payment_type : 1,
|
|
|
// paymentTypeId: dPw ? dPw.payment_id : 15,
|
|
|
// deliveryTimeStr: dDt ? dDt.delivery_time_string : '送货时间不限',
|
|
|
// deliveryTimeId: dDt ? dDt.delivery_time_id : 2,
|
|
|
// contractMe: false
|
|
|
// };
|
|
|
|
|
|
if (d.shopping_cart_data && d.shopping_cart_data.promotion_formula_list) {
|
|
|
handleViewPrice(d.shopping_cart_data.promotion_formula_list);
|
|
|
}
|
...
|
...
|
|