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: "订单发货通知", }