@@ -338,10 +338,12 @@ | |||||
<div id="review_box10" style="height: 44vh;overflow-y: scroll;margin-top: 2.5vh;"> | <div id="review_box10" style="height: 44vh;overflow-y: scroll;margin-top: 2.5vh;"> | ||||
<div class="new_list_ul" id="newListContent10"> | <div class="new_list_ul" id="newListContent10"> | ||||
<script id="newListData10" type="text/html"> | <script id="newListData10" type="text/html"> | ||||
{{each newList9 as value i}} | |||||
{{each newList10 as value i}} | |||||
<div class="new_list_li"> | |||||
<a href="discussionsDetail_10.html?id={{value.id}}">{{value.otherName}}</a> | <a href="discussionsDetail_10.html?id={{value.id}}">{{value.otherName}}</a> | ||||
<p>{{value.bookName}}</p> | <p>{{value.bookName}}</p> | ||||
<p>{{value.openAt}}</p> | <p>{{value.openAt}}</p> | ||||
</div> | |||||
{{/each}} | {{/each}} | ||||
</script> | </script> | ||||
</div> | </div> | ||||
@@ -38,7 +38,7 @@ | |||||
<div class="new_content_right_main" id="newListContent"> | <div class="new_content_right_main" id="newListContent"> | ||||
<script id="newListData" type="text/html"> | <script id="newListData" type="text/html"> | ||||
{{each newList as value i}} | {{each newList as value i}} | ||||
<p><a href="discussionsDetail_03.html?id={{value.id}}">{{value.openName}}</a></p> | |||||
<p><a href="discussionsDetail_03.html?id={{value.id}}">{{value.otherName}}</a></p> | |||||
{{/each}} | {{/each}} | ||||
</script> | </script> | ||||
</div> | </div> | ||||
@@ -101,5 +101,5 @@ | |||||
</div> | </div> | ||||
</body> | </body> | ||||
<script src="./static/js/common/require.js" data-main="./static/js/common/main.js?t=101" id="require-page" target-module="./static/js/project/discussionsDetail_03.js" defer type="text/javascript"></script> | |||||
<script src="./static/js/common/require.js" data-main="./static/js/common/main.js?t=101" id="require-page" target-module="./static/js/project/discussionsDetail_10.js" defer type="text/javascript"></script> | |||||
</html> | </html> |
@@ -179,12 +179,15 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.rows; | var content = data.rows; | ||||
if (module.data.newList10.length >= data.total){ | if (module.data.newList10.length >= data.total){ | ||||
console.log(111111111111) | |||||
return; | return; | ||||
}else{ | }else{ | ||||
console.log(222222222222) | |||||
for (let i = 0 ; i < content.length ; i++){ | for (let i = 0 ; i < content.length ; i++){ | ||||
module.data.newList10.push(content[i]); | module.data.newList10.push(content[i]); | ||||
} | } | ||||
} | } | ||||
console.log(module.data.newList10) | |||||
// module.data.newList4 = content; | // module.data.newList4 = content; | ||||
var newListData10 = template('newListData10', module.data); | var newListData10 = template('newListData10', module.data); | ||||
$("#newListContent_ul_10").html(newListData10); | $("#newListContent_ul_10").html(newListData10); | ||||