From 2a2b96b4dfd053d088c555a32c1f2f45a3e16cfb Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Mon, 9 Aug 2021 15:35:56 +0800 Subject: [PATCH] no message --- app.js | 4 ++-- pages/home/qrcode-info/index.js | 6 +++++- pages/index/index.js | 3 --- pages/login/index.js | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app.js b/app.js index ce060a2..a5fae77 100644 --- a/app.js +++ b/app.js @@ -1,8 +1,8 @@ //app.js App({ - evn: 0, // 0: 开发版本;1:测试版本;2:生产版本 + evn: 1, // 0: 开发版本;1:测试版本;2:生产版本 tmplIds: ['AFoM5TOfsgERsfcetNSB0UlmEixnLF1ySXr54Bqno2M', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'], - version: '2.3.1', + version: '2.3.3', xAppId: '503258978847953926', userInfo: null, //----------------------------------------------globalData-------------------------------------- diff --git a/pages/home/qrcode-info/index.js b/pages/home/qrcode-info/index.js index 288b426..c66b59b 100644 --- a/pages/home/qrcode-info/index.js +++ b/pages/home/qrcode-info/index.js @@ -39,7 +39,11 @@ Scene({ if (message.what == 101) { wx.navigateBack() } else if (message.what == 102) { - this.fetchCustomerInfo() + if(this.data.type == 0){ + this.fetchCustomerInfo() + } else if(this.data.type == 1){ + this.fetchEmplyeeInfo() + } } }, fetchCustomerInfo: function(){ diff --git a/pages/index/index.js b/pages/index/index.js index ed800c4..9e64387 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -36,13 +36,10 @@ Scene({ /************************************** 初始化流程 ********************************************/ onLoad: function (options) { if (options.url) { - console.log(options.url) var path = options.url - console.log(path) if (options.key && options.value) { path += '?' + options.key + '=' + options.value } - console.log(path) wx.navigateTo({ url: path }) } this.data.items = [] diff --git a/pages/login/index.js b/pages/login/index.js index 0a11f9e..73eb722 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -43,7 +43,7 @@ Page({ if (options.url) { this.data.path = options.url if (options.key && options.value) { - this.data.path += '&key=' + options.key + '=value=' + options.value + this.data.path += '&key=' + options.key + '&value=' + options.value } } app.globalData.token = app.globalData.token || storage.get('Authorization')