diff --git a/infoport/homestead.html b/infoport/homestead.html index 9294ec9..d1aba78 100644 --- a/infoport/homestead.html +++ b/infoport/homestead.html @@ -138,9 +138,9 @@

基本信息

-

- -

{{phone}} {{leader}}

+ + + diff --git a/infoport/index.html b/infoport/index.html index 8c2c848..cb7f0a6 100644 --- a/infoport/index.html +++ b/infoport/index.html @@ -91,15 +91,18 @@

2023.03.15

-
- +
+
+ +
+
diff --git a/infoport/property.html b/infoport/property.html index ab9c538..c3a945f 100644 --- a/infoport/property.html +++ b/infoport/property.html @@ -143,9 +143,9 @@

基本信息

-

- -

{{phone}} {{leader}}

+ + + diff --git a/infoport/resourceNew.html b/infoport/resourceNew.html index 53d8948..84da4be 100644 --- a/infoport/resourceNew.html +++ b/infoport/resourceNew.html @@ -138,9 +138,9 @@

基本信息

-

- -

{{phone}} {{leader}}

+ + + @@ -176,6 +176,16 @@ +
+

+

现场图片

+
+ +
+ {{each attachment as value i}} + + {{/each}} +
diff --git a/infoport/static/css/index.css b/infoport/static/css/index.css index fc6e734..5bf40ff 100644 --- a/infoport/static/css/index.css +++ b/infoport/static/css/index.css @@ -194,10 +194,15 @@ display: flex; justify-content: space-between; align-items: center; - margin-top: 2.5vh; + line-height: 4.5vh; cursor: pointer; } +.new_list_li:first-child{ + + /*margin-top: 2.5vh;*/ +} + .new_list_li:hover p{ color: #1663ff!important; transition: all 0.4s ease-in-out; diff --git a/infoport/static/js/project/index.js b/infoport/static/js/project/index.js index 50940e7..91c6098 100644 --- a/infoport/static/js/project/index.js +++ b/infoport/static/js/project/index.js @@ -46,6 +46,7 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, module.data.newImgList = newImgList; var newListDataImg = template('newListDataImg', module.data); $("#bannerFocusNextContent").html(newListDataImg); + roll(20) } } @@ -64,5 +65,37 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, tools.doGet(newsList, {pageNum:1,pageSize:8,infoName:$("#searchInput").val()}, module.newsList , true); } + function roll(t) { + var ul1 = document.getElementById("newListContent"); + var ul2 = document.getElementById("newListContent2"); + var ulbox = document.getElementById("review_box"); + ul2.innerHTML = ul1.innerHTML; + ulbox.scrollTop = 0; // 开始无滚动时设为0 + var timer = setInterval(rollStart, t); // 设置定时器,参数t用在这为间隔时间(单位毫秒),参数t越小,滚动速度越快 + // 鼠标移入div时暂停滚动 + ulbox.onmouseover = function () { + clearInterval(timer); + } + // 鼠标移出div后继续滚动 + ulbox.onmouseout = function () { + timer = setInterval(rollStart, t); + } + } + + // 开始滚动函数 + function rollStart() { + // 上面声明的DOM对象为局部对象需要再次声明 + var ul1 = document.getElementById("newListContent"); + var ul2 = document.getElementById("newListContent2"); + var ulbox = document.getElementById("review_box"); + // 正常滚动不断给scrollTop的值+1,当滚动高度大于列表内容高度时恢复为0 + console.log(ulbox.scrollTop+'--------'+ul1.scrollHeight) + if (ulbox.scrollTop >= ul1.scrollHeight) { + ulbox.scrollTop = 0; + } else { + ulbox.scrollTop += 1; + } + } + return module; -}); \ No newline at end of file +});