From e82a4c8fec746d1bc132199ab221996333221882 Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 16 Aug 2019 10:43:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=A7=E5=93=81=E9=A1=B5?= =?UTF-8?q?=E8=BD=BD=E5=85=A5=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.config.json | 2 +- src/pages/product.wpy | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project.config.json b/project.config.json index 8ada6e9..8f20457 100644 --- a/project.config.json +++ b/project.config.json @@ -1,7 +1,7 @@ { "description": "游戏电商小程序", "setting": { - "urlCheck": true, + "urlCheck": false, "es6": false, "postcss": false, "minified": false, diff --git a/src/pages/product.wpy b/src/pages/product.wpy index 6fb53af..aba7c00 100644 --- a/src/pages/product.wpy +++ b/src/pages/product.wpy @@ -80,14 +80,14 @@ } }; - onLoad(params) { + async onLoad(params) { jcEvent.on(jcEvent.events.NEED_UPDATE_CFG, this, data => { this.loadCfg(); this.$apply(); }) this.loadCfg(); this.gid = decodeURIComponent(params.gid); - this.getUserInfo(); + await this.getUserInfo(); } onShow(){