Browse Source

no message

featrue/v4.1
xpz2018 5 years ago
parent
commit
84a3d486c2
1 changed files with 3 additions and 1 deletions
  1. 4
      pages/index/index.js

4
pages/index/index.js

@ -1,6 +1,8 @@
import { config, getUserInfo} from "../api/user"
import { zconfig, loginToken, getPopupInfo } from "../api/ztb"
import { pconfig } from "../api/payment"
import { mconfig } from "../api/moment"
import { sconfig } from "../api/saas"
const util = require('../../utils/util')
const event = require('../../utils/event')
const storage = require('../../utils/storage')
@ -118,6 +120,7 @@ Page({
}
loginToken({loginToken: app.globalData.token}).then(result => {
zconfig.header = { 'Authorization': 'QNT ' + result.data.token }
pconfig.header = { 'Authorization': 'QNT ' + result.data.token }
mconfig.header = { 'Authorization': 'QNT ' + result.data.token }
// pconfig.header = { 'Authorization': 'QNT ' + result.data }
wx.hideLoading()
@ -130,7 +133,6 @@ Page({
this.setData({ landInfo: result.data })
}
})
// event.emit('EventMessage', { what: 888, desc: 'Logined' })
}).catch(err => {
wx.hideLoading()
this.onResume()

Loading…
Cancel
Save