From dcbbe57d641c9e1a8ede34c2b715ca20effb60bc Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 6 May 2024 15:32:45 +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/order.js | 7 ++- pages/my/my.vue | 32 ++++++++++++- unpackage/dist/dev/mp-weixin/pages/my/my.js | 46 +++++++++++++++---- unpackage/dist/dev/mp-weixin/pages/my/my.wxml | 2 +- unpackage/dist/dev/mp-weixin/pages/my/my.wxss | 14 ++++++ 5 files changed, 88 insertions(+), 13 deletions(-) diff --git a/api/order.js b/api/order.js index 7fce174..403eb0d 100644 --- a/api/order.js +++ b/api/order.js @@ -15,7 +15,12 @@ export const orderDetailApi = (data)=>{ return request.get('/order/RetailOrder/detail', data); } -//提交 +//重新发起支付 export const rePaymentApi = (data)=>{ return request.post('/order/RetailOrder/Repayment', data); +} + +//订单数量统计 +export const orderCountApi = (data)=>{ + return request.post('/order/RetailOrder/order_count', data); } \ No newline at end of file diff --git a/pages/my/my.vue b/pages/my/my.vue index ac72203..55df37c 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -21,14 +21,17 @@ 待付款 + {{orderCount.no_pay}} - + 待发货 + {{orderCount.waiting}} 待收货 + {{orderCount.receiving}}