Authored by microTT

BUG

... ... @@ -263,7 +263,7 @@ define('channel', function(require, exports) {
*/
({
init: function() {
var rightBanner = $("#right_banner_warp .right-banner")[0],
var rightBanner = $(".right-banner")[0],
$banners = $(rightBanner).find(".image-box"),
len = $banners.length,
$pageContent = $("#content"),
... ... @@ -562,10 +562,14 @@ define('channel', function(require, exports) {
var data = JSON.parse(dataString),
elem = null;
console.log(dataString);
data = method.formatData(data);
elem = method.templateEngine(template, data);
$(domOption.parent).append(elem);
console.log($(domOption.parent));
status.loadCount++;
status.isPullingData = false;
... ... @@ -634,7 +638,7 @@ define('channel', function(require, exports) {
},
domOption: {
parent: "#content",
parent: ".main-layout",
pagination: "#pageContent",
},
template: "<#for (var i = 0, len = data.length; i < len; i++) {#>" + "<div class=\"fluid-item layout-item tiled\">" + "<div class=\"image-box\">" + "<a href=\"/news/detail/id/<#data[i].id#>\" target=\"_blank\" title=\"<#data[i].title#>\">" + "<img src=\"<#data[i].thumb#>\" alt=\"\">" + "</a>" + "</div>" + "<div class=\"item-info\">" + "<a class=\"fluid-tag item-tag " + "<#switch (data[i].tag) {" + "case '品牌资讯':" + "#>brand-info<#" + "break;" + "case '活动介绍':" + "#>activity-intro<#" + "break;" + "case '亮点活动':" + "#>spotlight-activity<#" + "break;" + "case '限量商品':" + "#>limited-edition<#" + "break;" + "}#>\" href=\"/news/index/tag/<#data[i].tag#>\"><#data[i].tag#></a>" + "<span class=\"item-time\"><#data[i].create_time#></span>" + "</div>" + "<div class=\"content\">" + "<h2 class=\"volupia\">" + "<a href=\"/news/detail/id/<#data[i].id#>\" target=\"_blank\"><#data[i].title#></a>" + "</h2>" + "<p class=\"text-content\"><a href=\"/news/detail/id/<#data[i].id#>\" target=\"_blank\"><#data[i].content#></a></p>" + "</div>" + "</div>" + "<#}#>",
... ...