From bd07762a106c8752084740b7794a7b3e3abfee3e Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 31 Jul 2024 16:22:51 +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=E6=8B=BC=E5=9B=A2=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E9=80=9A=E7=9F=A5=E6=B6=88=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/aftersale/apply.vue | 3 --- pages/pay/recharge.vue | 2 +- pages/pay/result.vue | 4 +--- sheep/util/const.js | 3 +-- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/pages/order/aftersale/apply.vue b/pages/order/aftersale/apply.vue index ece7e963..9e8ee254 100644 --- a/pages/order/aftersale/apply.vue +++ b/pages/order/aftersale/apply.vue @@ -165,9 +165,6 @@ // 提交表单 async function submit() { - // #ifdef MP - sheep.$platform.useProvider('wechat').subscribeMessage(SubscribeTemplate.ORDER_AFTERSALE_CHANGE); - // #endif let data = { orderItemId: state.itemId, refundPrice: state.item.payPrice, diff --git a/pages/pay/recharge.vue b/pages/pay/recharge.vue index a54061ae..e79016d2 100644 --- a/pages/pay/recharge.vue +++ b/pages/pay/recharge.vue @@ -82,7 +82,7 @@ return; } // #ifdef MP - sheep.$platform.useProvider('wechat').subscribeMessage([SubscribeTemplate.WALLET_RECHARGER_PAID, SubscribeTemplate.WALLET_RECHARGE_REFUNDED]); + sheep.$platform.useProvider('wechat').subscribeMessage(SubscribeTemplate.WALLET_RECHARGER_PAID); // #endif sheep.$router.go('/pages/pay/index', { id: data.payOrderId, diff --git a/pages/pay/result.vue b/pages/pay/result.vue index 65b3b6c6..96bbea3a 100644 --- a/pages/pay/result.vue +++ b/pages/pay/result.vue @@ -161,9 +161,7 @@ function subscribeMessage() { let event = [SubscribeTemplate.DELIVERY_ORDER]; if (state.tradeOrder.type === 3) { - // TODO puhui999: 待完善 - event.push('拼团成功'); - event.push('拼团失败'); + event.push(SubscribeTemplate.COMBINATION_RESULT); } sheep.$platform.useProvider('wechat').subscribeMessage(event, () => { // 订阅后记录一下订阅状态 diff --git a/sheep/util/const.js b/sheep/util/const.js index fd6f6493..01eec4fb 100644 --- a/sheep/util/const.js +++ b/sheep/util/const.js @@ -58,10 +58,9 @@ export const TimeStatusEnum = { // TODO 订阅模版枚举 export const SubscribeTemplate = { - ORDER_AFTERSALE_CHANGE: "售后进度通知", WALLET_RECHARGER_PAID: "充值成功通知", - WALLET_RECHARGE_REFUNDED: "退款申请通知", DELIVERY_ORDER: "订单发货通知", + COMBINATION_RESULT: "拼团结果通知" }