Browse Source

修改时间工具类

lulihong 6 years ago
parent
commit
1ac821196d
2 changed files with 2 additions and 3 deletions
  1. 1 2
      js/api/http-request.js
  2. 1 1
      js/util.js

+ 1 - 2
js/api/http-request.js

@ -1,5 +1,5 @@
(function(exports) {
	var publish_version = false;
	var publish_version = true;
	var server;
	var agentName = "useragent"
	var userInfo = "userInfoForPay"
@ -11,7 +11,6 @@
	} else { // 测试环境配置
		server = "http://172.19.103.70:1235"; // 测试环境
		alertUrl="http://172.19.103.70:1235/bigScreenShow";
		alertUrl="http://192.168.131.17:8020/bigScreenShow";
//		server = "http://192.168.131.104:9088"; // 测试环境 周杰
//		 server = "http://192.168.131.105:9088"; // 测试环境 兴旺
	}

+ 1 - 1
js/util.js

@ -88,7 +88,7 @@ var nowDay = now.getDate(); //当前日
var nowMonth = now.getMonth(); //当前月 
var nowYear = now.getYear(); //当前年 
nowYear += (nowYear < 2000) ? 1900 : 0; //
nowYear = nowYear-1;//由于2018年没数据,故查询2017年数据(测试)
//nowYear = nowYear-1;//由于2018年没数据,故查询2017年数据(测试)
var lastMonthDate = new Date(); //上月日期 
lastMonthDate.setDate(1);
lastMonthDate.setMonth(lastMonthDate.getMonth() - 1);