From eee81fafa9fd5bca1caf0d02a17eb2918c612c06 Mon Sep 17 00:00:00 2001 From: fanpeng <438123081@qq.com> Date: Thu, 12 Jun 2025 16:59:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=8E=AF=E5=A2=83=E5=88=A4=E6=96=AD?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E6=8F=92=E4=BB=B6=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/p2p/exportForPlayerPlugin.js | 2 ++ pages/p2p/exportForXp2pPlugin.js | 2 ++ pages/p2p/p2pPlayer.vue | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/pages/p2p/exportForPlayerPlugin.js b/pages/p2p/exportForPlayerPlugin.js index 7012535..84bcf96 100644 --- a/pages/p2p/exportForPlayerPlugin.js +++ b/pages/p2p/exportForPlayerPlugin.js @@ -1,3 +1,5 @@ +// #ifdef MP-WEIXIN module.exports = { wx } +// #endif diff --git a/pages/p2p/exportForXp2pPlugin.js b/pages/p2p/exportForXp2pPlugin.js index 861f36d..d473893 100644 --- a/pages/p2p/exportForXp2pPlugin.js +++ b/pages/p2p/exportForXp2pPlugin.js @@ -1,3 +1,4 @@ +// #ifdef MP-WEIXIN const appParams = { appid: 123, appOauthId: 'xxx', @@ -20,3 +21,4 @@ module.exports = { return requirePlugin('wechat-p2p-player') } } +// #endif diff --git a/pages/p2p/p2pPlayer.vue b/pages/p2p/p2pPlayer.vue index ab83dbb..12f1afb 100644 --- a/pages/p2p/p2pPlayer.vue +++ b/pages/p2p/p2pPlayer.vue @@ -126,8 +126,10 @@ import { useUserStore } from '@/stores/user' import { passthrough } from '@/api/sdk' import { getLockNetTokenRequest } from '@/api/lock' + // #ifdef MP-WEIXIN import * as A from './exportForXp2pPlugin' import * as B from './exportForPlayerPlugin' + // #endif const $bluetooth = useBluetoothStore() const $basic = useBasicStore() @@ -158,7 +160,9 @@ const isVideoLoaded = ref(false) onMounted(async () => { + // #ifdef MP-WEIXIN console.log(A, B) + // #endif buttonInfo.value = await $basic.getButtonInfo() const { code, data, message } = await passthrough({