From b5696096ae9d287310d1656e3a28e6133aa49d0e Mon Sep 17 00:00:00 2001 From: zhaoxiaoqiang <287285524@qq.com> Date: Thu, 04 Aug 2022 14:14:33 +0800 Subject: [PATCH] 微信code --- src/views/homeIndex/home-index.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/homeIndex/home-index.vue b/src/views/homeIndex/home-index.vue index 7ea4bd3..0b45f9b 100644 --- a/src/views/homeIndex/home-index.vue +++ b/src/views/homeIndex/home-index.vue @@ -2,7 +2,7 @@ * @Author: 小明丶 * @Date: 2020-05-20 20:29:47 * @LastEditors: zxq - * @LastEditTime: 2022-08-03 17:56:34 + * @LastEditTime: 2022-08-04 14:14:14 * @Description: --> <template> @@ -48,7 +48,7 @@ }; }, created() { - // this.getWXToken(); + this.getWXToken(); // 判断微信接口是否支持 wx.checkJsApi({ jsApiList: ["checkJsApi", "scanQRCode"], // 需要检测的JS接口列表 @@ -151,6 +151,7 @@ let _this = this; this.checkIsReady().then(() => { if (window.android && window.android.fetchQrCode) { + console.log(111111) window.android.fetchQrCode(); } else { console.log(wx) -- Gitblit v1.8.0