diff --git a/pages/goods/cashier/index.vue b/pages/goods/cashier/index.vue index 1d8f98e7..e394cc19 100644 --- a/pages/goods/cashier/index.vue +++ b/pages/goods/cashier/index.vue @@ -155,7 +155,7 @@ }); PayOrderApi.submitOrder({ id: this.orderId, - channelCode1: channelCode, + channelCode: channelCode, returnUrl: this.getPayReturnUrl(), channelExtras: { // TODO 芋艿:等登录接入完成,需要改成动态读取 // openid: "ockUAwIZ-0OeMZl9ogcZ4ILrGba0" // wx_pub 微信公众号支付的 openid diff --git a/pages/order_details/index.vue b/pages/order_details/index.vue index b036a19b..ad22a762 100644 --- a/pages/order_details/index.vue +++ b/pages/order_details/index.vue @@ -201,26 +201,19 @@ - - + + 配送方式: 发货 - 快递公司: - {{ orderInfo.deliveryName || ''}} + {{ orderInfo.logisticsName || ''}} 快递号: - {{ orderInfo.deliveryId || ''}} - - - - - 配送方式: - 门店自提 + {{ orderInfo.logisticsNo || ''}} @@ -438,20 +431,21 @@ title: '确认收货', content: '为保障权益,请收到货确认无误后,再确认收货', success: (res) => { - if (res.confirm) { - OrderApi.takeOrder(this.orderInfo.id).then(res => { - return this.$util.Tips({ - title: '收货成功', - icon: 'success' - }, () => { - this.getOrderInfo(); - }); - }).catch(err => { - return this.$util.Tips({ - title: err - }); - }) + if (!res.confirm) { + return } + OrderApi.takeOrder(this.orderInfo.id).then(res => { + return this.$util.Tips({ + title: '收货成功', + icon: 'success' + }, () => { + this.getOrderInfo(); + }); + }).catch(err => { + return this.$util.Tips({ + title: err + }); + }) } }) }, diff --git a/pages/users/order_list/index.vue b/pages/users/order_list/index.vue index fdc1af60..08fd7ad3 100644 --- a/pages/users/order_list/index.vue +++ b/pages/users/order_list/index.vue @@ -46,6 +46,7 @@ {{order.orderStatus}} 待付款 待发货 + 待核销 待收货 待评价 diff --git a/utils/request.js b/utils/request.js index 3652edaa..82c5b331 100644 --- a/utils/request.js +++ b/utils/request.js @@ -59,10 +59,10 @@ function baseRequest(url, method, data, { return new Promise((reslove, reject) => { uni.request({ // url: url.indexOf('app-api') < 0 ? Url + '/api/front/' + url - // : 'http://127.0.0.1:48080/' + url, // TODO 芋艿:搞个 url 的配置 url: url.indexOf('app-api') < 0 ? Url + '/api/front/' + url - : 'http://yunai.natapp1.cc/' + url, // TODO 芋艿:搞个 url 的配置 - method: method || 'GET', + // : 'http://yunai.natapp1.cc/' + url, // TODO 芋艿:搞个 url 的配置 + : 'http://127.0.0.1:48080/' + url, // TODO 芋艿:搞个 url 的配置 + method: method || 'GET', header: header, data: data || {}, success: (res) => {