From 4e0c52b3b9cdf1f107ac2beb939ffecded58593a Mon Sep 17 00:00:00 2001 From: qsj <731458905@qq.com> Date: Wed, 13 Mar 2024 13:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.config.json | 7 ++++--- project.private.config.json | 7 +++++++ src/pages/index/index.tsx | 5 +++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 project.private.config.json diff --git a/project.config.json b/project.config.json index 3e138e4..5b91d3e 100644 --- a/project.config.json +++ b/project.config.json @@ -3,8 +3,8 @@ "description": "", "setting": { "urlCheck": true, - "es6": false, - "enhance": false, + "es6": true, + "enhance": true, "compileHotReLoad": false, "postcss": false, "preloadBackgroundData": false, @@ -37,5 +37,6 @@ "ignore": [], "include": [] }, - "appid": "wx92d11ea506995fa9" + "appid": "wx92d11ea506995fa9", + "projectname": "IterationThree" } \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json new file mode 100644 index 0000000..7ba271a --- /dev/null +++ b/project.private.config.json @@ -0,0 +1,7 @@ +{ + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "setting": { + "compileHotReLoad": true, + "bigPackageSizeSupport": true + } +} \ No newline at end of file diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index 7029db1..6224ad0 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -416,6 +416,8 @@ class Index extends Component { }; gourl = (e) => { + + const { url } = e.currentTarget.dataset; if (this.isRegister()) { go(url); @@ -737,6 +739,8 @@ class Index extends Component { // 跳转仪器介绍页 goNursing = (item) => { + console.log(item,'查看跳转对象'); + if (item.status === 0) { setStorageSync("instrument_detail", item); this.setState({ connectInstrument: item }); @@ -752,6 +756,7 @@ class Index extends Component { /** 蓝牙逻辑 */ bindBlockLeft() { + if (!this.state.isRegisterBoolean) { //未注册授权 this.alertRegister();