Browse Source

no message

feature/v2.2
xpz2018 4 years ago
parent
commit
2a2b96b4df
4 changed files with 8 additions and 7 deletions
  1. 4
      app.js
  2. 6
      pages/home/qrcode-info/index.js
  3. 3
      pages/index/index.js
  4. 2
      pages/login/index.js

4
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--------------------------------------

6
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(){

3
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 = []

2
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')

Loading…
Cancel
Save