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

Merge pull request !63 from puhui999/master
This commit is contained in:
芋道源码
2024-07-30 15:14:12 +00:00
committed by Gitee
5 changed files with 216 additions and 208 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: {},
@@ -231,6 +232,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,