liting2017 6 years ago
parent
commit
80128ebe6e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      js/component/account/index/collection.jsx

+ 2 - 1
js/component/account/index/collection.jsx

@@ -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, //编号
                     });
                 };