From 15fc941f769b64933906c0183626e3c5c4f30700 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 16 Jul 2024 15:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=A0=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/launchWeapp/index.vue | 51 +++++++++ src/main.js | 1 + src/utils/jweixin.js | 3 +- src/views/houseQR/index.vue | 163 ++++++++++++++------------- 4 files changed, 141 insertions(+), 77 deletions(-) create mode 100644 src/components/launchWeapp/index.vue diff --git a/src/components/launchWeapp/index.vue b/src/components/launchWeapp/index.vue new file mode 100644 index 0000000..02e175e --- /dev/null +++ b/src/components/launchWeapp/index.vue @@ -0,0 +1,51 @@ + +
+ + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 1f0ac8b..6e94a0b 100644 --- a/src/main.js +++ b/src/main.js @@ -28,6 +28,7 @@ Vue.prototype.$tips = Tips //开发环境使用,生产环境自动取消 import Vconsole from 'vconsole' import Perfect from '@/components/Perfect' +Vue.config.ignoredElements = ["wx-open-launch-weapp"]; Vue.component('Perfect', Perfect) if (process.env.NODE_ENV !== 'production') { new Vconsole() diff --git a/src/utils/jweixin.js b/src/utils/jweixin.js index 7ba062e..ac89c5f 100644 --- a/src/utils/jweixin.js +++ b/src/utils/jweixin.js @@ -8,7 +8,8 @@ export const setConfig = function (jsApiList = []) { timestamp: res.data.timestamp, nonceStr: res.data.nonceStr, signature: res.data.signature, - jsApiList + jsApiList, + openTagList:['wx-open-launch-weapp'] }) }) } diff --git a/src/views/houseQR/index.vue b/src/views/houseQR/index.vue index 969169c..6937739 100644 --- a/src/views/houseQR/index.vue +++ b/src/views/houseQR/index.vue @@ -4,62 +4,62 @@