|
|
@@ -101,7 +101,7 @@ Page({
|
|
|
util.showErrorToast('请选择收货地址');
|
|
|
return false;
|
|
|
}
|
|
|
- util.request(api.OrderSubmit, { cartId: 0, addressId: this.data.addressId, couponId: this.data.couponId }, 'POST').then(res => {
|
|
|
+ util.request(api.OrderSubmit, { cartId: this.data.cartId, addressId: this.data.addressId, couponId: this.data.couponId }, 'POST').then(res => {
|
|
|
if (res.errno === 0) {
|
|
|
const orderId = res.data.orderId;
|
|
|
|