代码内容

  1. function () {
  2. return {
  3. allChildrenLoaded: function () {
  4. var id = '#a16431758176921'
  5. var widget = $(id).widget()
  6. var fn = widget.setDataSource
  7. widget.setDataSource = function () {
  8. widget.options.enterAnimeTime = 0
  9. try {
  10. fn.apply(widget, arguments)
  11. } catch (e) {
  12. const contentDom = widget._element.find('.nl-content')
  13. contentDom.show()
  14. // 事件监听
  15. this.initEvent()
  16. }
  17. }
  18. },
  19. }
  20. }

使用说明

copy代码,注入容器组件,修改对应的新闻列表组件id