From 9add242540908ac929637358c5de939d74df1b46 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Tue, 30 Jul 2024 17:44:55 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E6=B6=88=E6=81=AF=EF=BC=9A=E8=AE=A2=E5=8D=95=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E3=80=81=E5=85=85=E5=80=BC=E9=80=80=E6=AC=BE=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E8=AE=A2=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/confirm.vue | 6 + pages/pay/recharge.vue | 404 ++++++++++++++++++++-------------------- sheep/util/const.js | 4 +- 3 files changed, 211 insertions(+), 203 deletions(-) diff --git a/pages/order/confirm.vue b/pages/order/confirm.vue index 69e7f4d..c538053 100644 --- a/pages/order/confirm.vue +++ b/pages/order/confirm.vue @@ -166,6 +166,7 @@ import OrderApi from '@/sheep/api/trade/order'; import CouponApi from '@/sheep/api/promotion/coupon'; import { fen2yuan } from '@/sheep/hooks/useGoods'; + import { SubscribeTemplate } from '@/sheep/util/const'; const state = reactive({ orderPayload: {}, @@ -230,6 +231,11 @@ if (state.orderPayload.items[0].cartId > 0) { sheep.$store('cart').getList(); } + + // #ifdef MP + sheep.$platform.useProvider('wechat').subscribeMessage(SubscribeTemplate.DELIVERY_ORDER); + // #endif + // 跳转到支付页面 sheep.$router.redirect('/pages/pay/index', { id: data.payOrderId, diff --git a/pages/pay/recharge.vue b/pages/pay/recharge.vue index 430db1a..a54061a 100644 --- a/pages/pay/recharge.vue +++ b/pages/pay/recharge.vue @@ -1,260 +1,260 @@ diff --git a/sheep/util/const.js b/sheep/util/const.js index f276887..fd6f649 100644 --- a/sheep/util/const.js +++ b/sheep/util/const.js @@ -59,7 +59,9 @@ export const TimeStatusEnum = { // TODO 订阅模版枚举 export const SubscribeTemplate = { ORDER_AFTERSALE_CHANGE: "售后进度通知", - MONEY_CHANGE: "充值成功通知" + WALLET_RECHARGER_PAID: "充值成功通知", + WALLET_RECHARGE_REFUNDED: "退款申请通知", + DELIVERY_ORDER: "订单发货通知", }