【新增】订阅消息:拼团结果通知消息订阅
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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, () => {
|
||||
// 订阅后记录一下订阅状态
|
||||
|
||||
Reference in New Issue
Block a user