|
@@ -2,8 +2,8 @@ import { showToast } from './utils/feedback'
|
|
|
import { formatTime, arrRemoveObj, getTypeItem,setCache } from './utils/util'
|
|
import { formatTime, arrRemoveObj, getTypeItem,setCache } from './utils/util'
|
|
|
// import * as socketApi from './utils/websocket'
|
|
// import * as socketApi from './utils/websocket'
|
|
|
|
|
|
|
|
-const baseUrl = "https://dp-test.g107.com/";//测试
|
|
|
|
|
-// const baseUrl = "https://app109758.eapps.dingtalkcloud.com/";//正式
|
|
|
|
|
|
|
+// const baseUrl = "https://dp-test.g107.com/";//测试
|
|
|
|
|
+const baseUrl = "https://app109758.eapps.dingtalkcloud.com/";//正式
|
|
|
var that;
|
|
var that;
|
|
|
var yearArr = [];
|
|
var yearArr = [];
|
|
|
var year = formatTime(new Date()).year;
|
|
var year = formatTime(new Date()).year;
|
|
@@ -14,8 +14,8 @@ App({
|
|
|
//自定义全局变量
|
|
//自定义全局变量
|
|
|
globalData: {
|
|
globalData: {
|
|
|
baseUrl: baseUrl,
|
|
baseUrl: baseUrl,
|
|
|
- webScoketUrl: "test-ding.g107.com",//webScoket测试
|
|
|
|
|
- // webScoketUrl: "app109758.eapps.dingtalkcloud.com/pc",
|
|
|
|
|
|
|
+ // webScoketUrl: "test-ding.g107.com",//webScoket测试
|
|
|
|
|
+ webScoketUrl: "app109758.eapps.dingtalkcloud.com/pc",
|
|
|
showToast: showToast,//提示框
|
|
showToast: showToast,//提示框
|
|
|
arrRemoveObj: arrRemoveObj,//删除数组的某一项
|
|
arrRemoveObj: arrRemoveObj,//删除数组的某一项
|
|
|
year: formatTime(new Date()).year,//当前年
|
|
year: formatTime(new Date()).year,//当前年
|
|
@@ -359,6 +359,7 @@ App({
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
onLaunch(options) {
|
|
onLaunch(options) {
|
|
|
|
|
+ console.log("options", options)
|
|
|
dd.globalData = this.globalData;
|
|
dd.globalData = this.globalData;
|
|
|
that = this;
|
|
that = this;
|
|
|
that.updateApp();
|
|
that.updateApp();
|