From 63e5206449fdf6943bfa95124d62ccb922a71802 Mon Sep 17 00:00:00 2001 From: zhangmanman <994797151@qq.com> Date: Wed, 30 Jun 2021 10:14:59 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/interfaces/user.js | 2 +- pages/car/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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