|
|
@@ -93,6 +93,13 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
width: 280, |
|
|
|
top: '-5px' |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: "axis", |
|
|
|
axisPointer: { |
|
|
|
// 坐标轴指示器,坐标轴触发有效 |
|
|
|
type: "shadow", // 默认为直线,可选为:'line' | 'shadow' |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
}; |
|
|
|
var tools = new Tools(); |
|
|
@@ -179,9 +186,10 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
var focusList = []; |
|
|
|
for (var i = 0; i < content.length; i++) { |
|
|
|
var imgStrs = content[i].content.match(/<img.*?>/g) |
|
|
|
var title = content[i].title |
|
|
|
var title = content[i].title; |
|
|
|
var id = content[i].id; |
|
|
|
if (imgStrs != null && imgStrs != '') { |
|
|
|
focusList.push({img:imgStrs[0],title:title}) |
|
|
|
focusList.push({img:imgStrs[0],title:title,id:id}) |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(focusList) |
|
|
|