Преглед на файлове

首页增加超链接

master
sunfengxiang преди 3 години
родител
ревизия
70d2088b08
променени са 3 файла, в които са добавени 14 реда и са изтрити 6 реда
  1. +3
    -3
      index.html
  2. +10
    -2
      static/js/project/index.js
  3. +1
    -1
      static/js/project/interact/interact.js

+ 3
- 3
index.html Целия файл

@@ -159,8 +159,8 @@
<script id="bannerFocusData" type="text/html">
{{each focusList as value i}}
<div class="swiper-slide">
{{# value.img}}
<p>{{# value.title}}</p>
<a href="view/new/newDetail.html?id={{value.id}}">{{# value.img}}</a>
<a href="view/new/newDetail.html?id={{value.id}}"><p>{{# value.title}}</p></a>
</div>
{{/each}}
</script>
@@ -205,7 +205,7 @@
</p>
<script id="landListData" type="text/html">
{{each landListList as value i}}
<div class="centerLeft-center-middle" onclick="goDetail({{value.id}})">
<div class="centerLeft-center-middle" onclick="goDetail({{value.id}})" style="cursor: pointer;">
<!-- 项目<br />公示-->
<p class="centerLeft-center-lable">{{# value.projectShowStatus.slice(0,2)+'<br/>'+value.projectShowStatus.slice(2)}}</p>
{{if value.fileUrl == null}}


+ 10
- 2
static/js/project/index.js Целия файл

@@ -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)


+ 1
- 1
static/js/project/interact/interact.js Целия файл

@@ -24,7 +24,7 @@ define(['jquery', "template", "Tools", "interactApi", "paging"], function ($, te
module.init = function (page) {

//互动交流
tools.doGet(interactList, {deptId:100,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.interactInformation,true);
tools.doGet(interactList, {deptId:100,pageNum:module.data.pageNum,pageSize:module.data.pageSize,reply:'notnull'}, module.interactInformation,true);

//网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
tools.getWebConfig();


Зареждане…
Отказ
Запис