...
|
...
|
@@ -124,14 +124,7 @@ export default function() { |
|
|
state.address = null;
|
|
|
},
|
|
|
[Types.UPDATE_ORDER](state, { amount, couponInfo, couponList, promotionFormulaList, promotionList, promotionTips }) {
|
|
|
state.orderDetail.amount = amount;
|
|
|
state.orderDetail.promotionFormulaList = promotionFormulaList;
|
|
|
|
|
|
state.orderDetail.recommendedCouponInfo = couponInfo;
|
|
|
state.orderDetail.couponList = couponList;
|
|
|
|
|
|
state.orderDetail.promotionList = promotionList;
|
|
|
state.orderDetail.promotionTips = promotionTips;
|
|
|
state.orderDetail = { ...state.orderDetail, promotionTips, promotionList, couponList, amount, promotionFormulaList, recommendedCouponInfo: couponInfo };
|
|
|
},
|
|
|
[Types.CHANGE_SELECT_COUPON_LIST](state, { couponCode, couponType }) {
|
|
|
const item = find(get(state.orderDetail, 'couponList', []), { coupon_code: couponCode });
|
...
|
...
|
|