From 80d0ee10273d25b5e43f03691997e1db883c473c Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Fri, 12 Apr 2019 21:17:41 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BA=8C=E7=BB=B4=E7=A0=81=E8=A7=84=E5=88=99?= =?UTF-8?q?=E6=95=B4=E7=90=86][=E6=96=B0=E5=A2=9E]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pages/index/index.js b/pages/index/index.js index 309b177..f65aaca 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -47,6 +47,18 @@ Page({ //// 大屏-二维码-end else if (this.data.newArr[0] == 't') { // 普通二维码 + options.type = this.data.newArr[1]; + app.globalData.type = options.type; + if(options.type == 'cd') { + options.couponChannelId = this.data.newArr[2]; + } else if (options.type == 'bd') { + options.bt = this.data.newArr[2]; + options.id = this.data.newArr[3]; + } else if (options.type == 'gm') { + options.id = this.data.newArr[2]; + } else if (options.type == 'sd') { + options.couponChannelId = this.data.newArr[2]; + } } } wx.showToast({