app.js 628 字节
Newer Older
zhenglide's avatar
zhenglide committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
App({
  //E应用初始化
  onLaunch(options) {
    console.log('App Launch', options);
    console.log('getSystemInfoSync', dd.getSystemInfoSync());
    console.log('SDKVersion', dd.SDKVersion);
    this.globalData.corpId = options.query.corpId;
  },
  //E应用切换到前台
  onShow(options) {
    // 从后台被 scheme 重新打开
    // options.query == {number:1}
  },
  //全局数据
  globalData: {
曾美红's avatar
曾美红 committed
16
    //domain:'http://id24iu.natappfree.cc',
zhenglide's avatar
zhenglide committed
17 18
  //  domain:"http://dd2.ubainsyun.com",
    domain: "http://zhenglide.natapp1.cc" ,
zhenglide's avatar
zhenglide committed
19 20 21 22 23 24 25
    corpId: '',
    userId:'',
    person:'',
    function:'',
    keyword:''
  }
});