|
|
@ -186,8 +186,8 @@
|
|
|
|
items: [], // 商品项列表
|
|
|
|
items: [], // 商品项列表
|
|
|
|
price: {}, // 价格信息
|
|
|
|
price: {}, // 价格信息
|
|
|
|
},
|
|
|
|
},
|
|
|
|
deliType:2,
|
|
|
|
deliType:2,
|
|
|
|
pickUpInfo:{},//门店信息
|
|
|
|
pickUpInfo:{},//门店信息
|
|
|
|
addressInfo: {}, // 选择的收货地址
|
|
|
|
addressInfo: {}, // 选择的收货地址
|
|
|
|
showCoupon: false, // 是否展示优惠劵
|
|
|
|
showCoupon: false, // 是否展示优惠劵
|
|
|
|
couponInfo: [], // 优惠劵列表
|
|
|
|
couponInfo: [], // 优惠劵列表
|
|
|
@ -230,9 +230,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 提交订单
|
|
|
|
// 提交订单
|
|
|
|
function onConfirm() {
|
|
|
|
function onConfirm() {
|
|
|
|
if (!state.addressInfo.id) {
|
|
|
|
console.log(state.deliType, '11111111111111111');
|
|
|
|
sheep.$helper.toast('请选择收货地址');
|
|
|
|
|
|
|
|
return;
|
|
|
|
if (state.deliType == 1) {
|
|
|
|
|
|
|
|
if (!state.addressInfo.id) {
|
|
|
|
|
|
|
|
sheep.$helper.toast('请选择收货地址');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
if (!state.pickUpInfo.id) {
|
|
|
|
|
|
|
|
sheep.$helper.toast('请选择自提门店');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
submitOrder();
|
|
|
|
submitOrder();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -250,7 +259,7 @@
|
|
|
|
items: state.orderPayload.items,
|
|
|
|
items: state.orderPayload.items,
|
|
|
|
couponId: state.orderPayload.couponId,
|
|
|
|
couponId: state.orderPayload.couponId,
|
|
|
|
addressId: state.deliType === 1 ? state.addressInfo.id: null,
|
|
|
|
addressId: state.deliType === 1 ? state.addressInfo.id: null,
|
|
|
|
pickUpStoreId:state.deliType === 2 ? state.pickUpInfo.id : null,
|
|
|
|
pickUpStoreId:state.deliType === 2 ? state.pickUpInfo.id : null,
|
|
|
|
deliveryType: state.deliType, // TODO 芋艿:需要支持【门店自提】
|
|
|
|
deliveryType: state.deliType, // TODO 芋艿:需要支持【门店自提】
|
|
|
|
pointStatus: false, // TODO 芋艿:需要支持【积分选择】
|
|
|
|
pointStatus: false, // TODO 芋艿:需要支持【积分选择】
|
|
|
|
combinationActivityId: state.orderPayload.combinationActivityId,
|
|
|
|
combinationActivityId: state.orderPayload.combinationActivityId,
|
|
|
|