From 7422d0f44004c5079ce0da5bd4a2dd7ac6cd14c4 Mon Sep 17 00:00:00 2001 From: kola Date: Tue, 15 Oct 2024 16:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.config.json | 2 +- src/app.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/project.config.json b/project.config.json index e6e5a80..2f8a226 100644 --- a/project.config.json +++ b/project.config.json @@ -41,5 +41,5 @@ "ignore": [], "include": [] }, - "appid": "wx2b0bb13edf717c1d" + "appid": "wxaae50c206446a964" } \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index 7f1dd67..bee4c87 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,7 +1,13 @@ // app.ts App({ globalData: {}, - onLaunch() {}, + onLaunch() { + wx.login({ + success: (res) => { + console.log("code", res); + }, + }); + }, waitLogin() { return new Promise((resolve, reject) => { resolve(true);