diff --git a/api/interfaces/user.js b/api/interfaces/user.js index 3e3a9e0..55f6f50 100644 --- a/api/interfaces/user.js +++ b/api/interfaces/user.js @@ -53,7 +53,7 @@ const unicom = (mobile, channel, code) => req({url: "unicom/get", method: "POST" const merchant_card = (coupon_id) => req({url: "coupons/merchant_card", method: "GET", data:{coupon_id : coupon_id}}) // 获取商家券信息 -const washcarBuy = (welfare_id, right_id, qty, address_id) => req({url: "washcar/create", data:{welfare_id : welfare_id, right_id : right_id, qty : qty, address_id : address_id || ''}}) +const washcarBuy = (welfare_id, right_id, qty, address_id, is_deliver) => req({url: "washcar/create", data:{welfare_id : welfare_id, right_id : right_id, qty : qty, address_id : address_id || '', is_deliver : is_deliver}}) // 收银台提交 const washcarCreate = (welfare_id, right_id, qty, address_id, is_deliver) => req({url: "washcar/create", method: "POST", data:{welfare_id : welfare_id, right_id : right_id, qty : qty, address_id : address_id || '', is_deliver : is_deliver}}) diff --git a/pages/car/index.js b/pages/car/index.js index d204ec7..c6b800e 100644 --- a/pages/car/index.js +++ b/pages/car/index.js @@ -58,7 +58,7 @@ Page({ * 卡券列表 */ couponInfo() { - wx.$api.user.washcarBuy(this.data.welfareId, this.data.rightId, this.data.num, this.data.address.id).then(res=>{ + wx.$api.user.washcarBuy(this.data.welfareId, this.data.rightId, this.data.num, this.data.address.id, this.data.isdeliver).then(res=>{ let obj = res.data.detail.express let defGet = res.data.detail.def_get let arr = new Array