diff --git a/pages/index/index.js b/pages/index/index.js index bc6c148..55a2095 100644 --- a/pages/index/index.js +++ b/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()