monitest start
This commit is contained in:
parent
143e34d1ac
commit
014b339395
|
@ -48,9 +48,9 @@ App({
|
||||||
globalData: {
|
globalData: {
|
||||||
userInfo: null,
|
userInfo: null,
|
||||||
userinfo: null, // 服务器传回的消费者信息
|
userinfo: null, // 服务器传回的消费者信息
|
||||||
// host: 'https://apitest.ctcshe.com/',
|
host: 'https://apitest.ctcshe.com/',
|
||||||
mediahost: 'https://apitest.ctcshe.com/',
|
mediahost: 'https://apitest.ctcshe.com/',
|
||||||
host: 'http://127.0.0.1:8000/',
|
// host: 'http://127.0.0.1:8000/',
|
||||||
// mediahost: 'http://127.0.0.1:8000/',
|
// mediahost: 'http://127.0.0.1:8000/',
|
||||||
token : '',
|
token : '',
|
||||||
subject:null,
|
subject:null,
|
||||||
|
|
|
@ -16,8 +16,9 @@ Page({
|
||||||
onLoad: function () {
|
onLoad: function () {
|
||||||
if (getApp().globalData.userinfo.workscope) {
|
if (getApp().globalData.userinfo.workscope) {
|
||||||
this.setData({
|
this.setData({
|
||||||
workscopeId: getApp().globalData.userinfo.workscope
|
workId: getApp().globalData.userinfo.workscope
|
||||||
})
|
})
|
||||||
|
this.genPaper()
|
||||||
} else {
|
} else {
|
||||||
wx.switchTab({
|
wx.switchTab({
|
||||||
url: '/pages/main/main',
|
url: '/pages/main/main',
|
||||||
|
|
Loading…
Reference in New Issue