24 lines
565 B
JavaScript
24 lines
565 B
JavaScript
// 公共js
|
|
import toolAll from './utils/tools'
|
|
dd['$toolAll'] = toolAll;
|
|
import http from './utils/requst'
|
|
dd['$http'] = http;
|
|
import utils from '/utils/utils'
|
|
dd['utils'] = utils;
|
|
// dd['baseUrl'] = 'http://aspiration.scdxtc.cn';
|
|
dd['baseUrl'] = 'https://ypzy.emingren.com';
|
|
App({
|
|
onLaunch(options) {
|
|
// 第一次打开
|
|
// options.query == {number:1}
|
|
console.info('App onLaunch');
|
|
},
|
|
onShow(options) {
|
|
// 从后台被 scheme 重新打开
|
|
// options.query == {number:1}
|
|
},
|
|
onHide(){
|
|
dd.removeStorageSync({key:'anliObj'})
|
|
},
|
|
});
|