!61 【新增】接入微信订阅消息

Merge pull request !61 from puhui999/master
This commit is contained in:
芋道源码
2024-07-24 11:36:54 +00:00
committed by Gitee
5 changed files with 42 additions and 30 deletions
+2 -1
View File
@@ -130,6 +130,7 @@
import TradeConfigApi from '@/sheep/api/trade/config';
import { fen2yuan } from '@/sheep/hooks/useGoods';
import AfterSaleApi from '@/sheep/api/trade/afterSale';
import { SubscribeTemplate } from '@/sheep/util/const';
const form = ref(null);
const state = reactive({
@@ -165,7 +166,7 @@
// 提交表单
async function submit() {
// #ifdef MP
sheep.$platform.useProvider('wechat').subscribeMessage('order_aftersale_change');
sheep.$platform.useProvider('wechat').subscribeMessage(SubscribeTemplate.ORDER_AFTERSALE_CHANGE);
// #endif
let data = {
orderItemId: state.itemId,