From 2246b4039a645dac133b935d3cdbf3c9067f1b3a Mon Sep 17 00:00:00 2001 From: Myth Date: Fri, 28 Jan 2022 09:46:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- pages/index/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 547f861..183a052 100644 --- a/app.js +++ b/app.js @@ -22,7 +22,7 @@ App({ unique_key: "wechatxcx" }).then(res => { let data = JSON.parse(res.data); - data.isTest = data.isTest7?true:false; + data.isTest = data.isTest8?true:false; this.globalData.configJson = data }) diff --git a/pages/index/index.js b/pages/index/index.js index 3911765..6a88f34 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -337,6 +337,7 @@ Page({ }, // 轮播图点击 bannerClick:function(e){ + if(this.data.isTest) return; let item = e.currentTarget.dataset.item; console.log(item) switch(item.jump_type){