|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="weChatQrCode" v-if="show"></div>
|
|
|
+ <div class="weChatQrCode" v-if="false"></div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
@@ -51,7 +51,7 @@ export default {
|
|
|
async getCofig() {
|
|
|
const that = this
|
|
|
const res = await getSignature({ url: encodeURIComponent(window.location.href.split('#')[0]) })
|
|
|
- console.log('res', res)
|
|
|
+ // console.log('res', res)
|
|
|
that.wxConfig(res.data.appId, res.data.params.timestamp, res.data.params.nonceStr, res.data.signature)
|
|
|
},
|
|
|
// wx.config的配置
|
|
|
@@ -69,9 +69,7 @@ export default {
|
|
|
wx.config(params)
|
|
|
wx.error(function(res) {
|
|
|
that.close()
|
|
|
- that.$nextTick(() => {
|
|
|
- alert('出错了👉' + res.errMsg) // wx.config配置错误,会弹出窗口哪里错误,然后根据微信文档查询即可。
|
|
|
- })
|
|
|
+ alert('出错了👉' + res.errMsg) // wx.config配置错误,会弹出窗口哪里错误,然后根据微信文档查询即可。
|
|
|
})
|
|
|
},
|
|
|
close() {
|