|
@@ -52,7 +52,7 @@ $(function () {
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
- url: globalConfig.context + "/portal/news/list",
|
|
|
+ url: globalConfig.context + "/portal/policy/list",
|
|
|
data: {
|
|
|
pageNo: pageNo || 1,
|
|
|
pageSize: pageSize,
|
|
@@ -60,6 +60,7 @@ $(function () {
|
|
|
provinceId: Province != 999 ? Province : undefined
|
|
|
},
|
|
|
success: function (data) {
|
|
|
+ console.log(data)
|
|
|
var theArr = [];
|
|
|
thePageLength = data.data.totalCount ? Math.ceil(data.data.totalCount / pageSize) : 1;
|
|
|
if (data.data && data.data.list) {
|
|
@@ -67,9 +68,10 @@ $(function () {
|
|
|
let thisdata = data.data.list[i];
|
|
|
var id = thisdata.id;
|
|
|
var title = thisdata.title; //标题
|
|
|
- var time = thisdata.createTimeFormattedDate; //日期
|
|
|
- var day = time.substr(8, 2); //号
|
|
|
- var month = time.substr(0, 7) //年、月
|
|
|
+ var timeAll =new Date(thisdata.releaseDate)
|
|
|
+ var time = timeAll.toLocaleDateString();
|
|
|
+ var day = timeAll.getDate(); //号
|
|
|
+ var month =timeAll.getFullYear()+'-'+ timeAll.getMonth(); //年、月
|
|
|
var summary = thisdata.summary; //简介
|
|
|
if (summary == null) {
|
|
|
summary == '暂无内容'
|