【新增】订阅消息:订单发货、充值退款消息订阅

This commit is contained in:
puhui999
2024-07-30 17:44:55 +08:00
parent a2b0942d88
commit 9add242540
3 changed files with 211 additions and 203 deletions
+6
View File
@@ -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,