|
@@ -124,14 +124,7 @@ export default function() { |
|
@@ -124,14 +124,7 @@ export default function() { |
124
|
state.address = null;
|
124
|
state.address = null;
|
125
|
},
|
125
|
},
|
126
|
[Types.UPDATE_ORDER](state, { amount, couponInfo, couponList, promotionFormulaList, promotionList, promotionTips }) {
|
126
|
[Types.UPDATE_ORDER](state, { amount, couponInfo, couponList, promotionFormulaList, promotionList, promotionTips }) {
|
127
|
- state.orderDetail.amount = amount;
|
|
|
128
|
- state.orderDetail.promotionFormulaList = promotionFormulaList;
|
|
|
129
|
-
|
|
|
130
|
- state.orderDetail.recommendedCouponInfo = couponInfo;
|
|
|
131
|
- state.orderDetail.couponList = couponList;
|
|
|
132
|
-
|
|
|
133
|
- state.orderDetail.promotionList = promotionList;
|
|
|
134
|
- state.orderDetail.promotionTips = promotionTips;
|
127
|
+ state.orderDetail = { ...state.orderDetail, promotionTips, promotionList, couponList, amount, promotionFormulaList, recommendedCouponInfo: couponInfo };
|
135
|
},
|
128
|
},
|
136
|
[Types.CHANGE_SELECT_COUPON_LIST](state, { couponCode, couponType }) {
|
129
|
[Types.CHANGE_SELECT_COUPON_LIST](state, { couponCode, couponType }) {
|
137
|
const item = find(get(state.orderDetail, 'couponList', []), { coupon_code: couponCode });
|
130
|
const item = find(get(state.orderDetail, 'couponList', []), { coupon_code: couponCode });
|