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();