|
|
|
@ -2,7 +2,6 @@ |
|
|
|
import Scene from './scene' |
|
|
|
import { getMessageList } from "../../api/saas" |
|
|
|
import { headerFactoryId } from "../../api/user" |
|
|
|
import util from '../../utils/util' |
|
|
|
const event = require('../../utils/event') |
|
|
|
const storage = require('../../utils/storage') |
|
|
|
const app = getApp() |
|
|
|
@ -34,12 +33,13 @@ Scene({ |
|
|
|
}, |
|
|
|
/************************************** 初始化流程 ********************************************/ |
|
|
|
onLoad: function (options) { |
|
|
|
const updateManager = wx.getUpdateManager() |
|
|
|
updateManager.onCheckForUpdate() |
|
|
|
updateManager.onUpdateReady(function () { |
|
|
|
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
|
|
|
updateManager.applyUpdate() |
|
|
|
}) |
|
|
|
if (options.url) { |
|
|
|
var path = options.url |
|
|
|
if (options.key && options.value) { |
|
|
|
path += '?' + options.key + '=' + options.value |
|
|
|
} |
|
|
|
wx.navigateTo({ url: path }) |
|
|
|
} |
|
|
|
this.data.items = [] |
|
|
|
for (let mIndex = 0; mIndex < app.userInfo.enterpriseInfos.length; mIndex++) { |
|
|
|
const element = app.userInfo.enterpriseInfos[mIndex] |
|
|
|
|