|
@@ -38,12 +38,13 @@ class Collection extends Component {
|
|
|
let thisdata = theData.list[i],
|
|
|
create = parseInt(thisdata.createTime / (1000 * 60 * 60 * 24));
|
|
|
let newState = (days-create)<7?true:false;
|
|
|
+ var introd=thisdata.introduce?(thisdata.introduce).replace(/<\/?.+?>/g,""):thisdata.introduce;
|
|
|
theArr.push({
|
|
|
key: i,
|
|
|
id: thisdata.id,
|
|
|
newState:newState,
|
|
|
name:thisdata.name,
|
|
|
- introduce:thisdata.introduce&&thisdata.introduce.length>40?thisdata.introduce.substr(0,40)+'...':thisdata.introduce,
|
|
|
+ introduce:introd&&introd.length>40?introd.substr(0,40)+'...':introd,
|
|
|
img: thisdata.maxImgUrl, //编号
|
|
|
});
|
|
|
};
|