nb-list

作者: JXeddy | 来源:发表于2017-10-15 10:19 被阅读0次
nb.define({
  name: 'app.front.brand.view.brandList.Item',
view: {
'class': 'wine-item col-xs-3',
tag: 'li',
$html: [{
'class': 'poster',
$html: [{
'class': 'tag'
}, {
'class': 'mask'
}, {
'class': 'pic',
$html: {
$name: 'poster',
tag: 'img'
}
}]
}, {
$name: 'name',
'class': 'name ellipsis'
}, {
$type: PricePart
}]
},
method: {
init: function () {
var $el = this.$();
},
setOpts: function (inItem) {
this.$('name').attr("data-id", inItem.id);
this.$('poster').attr("src", inItem.img);
this.$('name').text(inItem.name);
}
}
});
nb.define({
name: 'app.front.brand.view.BrandList',
parent:'nb.view.List',
view: {
'class': 'brand-list',
tag: 'ul'
},
opts:{
itemType:'app.front.brand.view.brandList.Item'
}
});

相关文章

网友评论

      本文标题:nb-list

      本文链接:https://www.haomeiwen.com/subject/odifuxtx.html