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 0f2212c..9239d99 100644 --- a/src/main.js +++ b/src/main.js @@ -30,6 +30,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 @@