{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\home\\homeCarousel.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\home\\homeCarousel.vue","mtime":1667327529512},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport req from \"@/request.js\";\nimport homeNewsParticulars from \"@/components/home/homeNewsParticulars.vue\";\nexport default {\n  props: {\n    classifyId: {\n      default: \"all\"\n    },\n    height: {\n      String: String\n    },\n    interval: {\n      default: 3000\n    }\n  },\n  components: {\n    homeNewsParticulars: homeNewsParticulars\n  },\n  data: function data() {\n    return {\n      loading: false,\n      list: [],\n      selectId: null\n    };\n  },\n  created: function created() {\n    this.init();\n  },\n  methods: {\n    openParticulars: function openParticulars(id) {\n      this.selectId = id;\n      this.$refs.homeNewsParticulars.openDialog();\n    },\n    getImg: function getImg(id) {\n      return new Promise(function (resolve, reject) {\n        req.get(window.context.portal + \"/file/v1/preview?fileId=\" + id, \"blob\").then(function (response) {\n          if (response.data.size > 0) {\n            var blob = response.data;\n            var reader = new FileReader();\n            reader.readAsDataURL(blob);\n\n            reader.onload = function (e) {\n              resolve(e.target.result);\n            };\n          } else {\n            resolve(\"\");\n          }\n        }, function errorCallback(response) {\n          resolve(\"\");\n        });\n      });\n    },\n    getList: function getList() {\n      var _this = this;\n\n      return new Promise(function (resolve, reject) {\n        req.get(window.context.portal + \"/portalNewsNotice/v1/getNews?classifyId=\" + _this.classifyId).then(function (response) {\n          resolve(response.data);\n        });\n      });\n    },\n    init: function () {\n      var _init = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n        var list, i, img;\n        return regeneratorRuntime.wrap(function _callee$(_context) {\n          while (1) {\n            switch (_context.prev = _context.next) {\n              case 0:\n                this.loading = true;\n                _context.next = 3;\n                return this.getList();\n\n              case 3:\n                list = _context.sent;\n                i = 0;\n\n              case 5:\n                if (!(i < list.length)) {\n                  _context.next = 13;\n                  break;\n                }\n\n                _context.next = 8;\n                return this.getImg(list[i].rotatingDisplayPictures);\n\n              case 8:\n                img = _context.sent;\n                list[i].imgUrl = img;\n\n              case 10:\n                i++;\n                _context.next = 5;\n                break;\n\n              case 13:\n                this.list = list;\n                this.loading = false;\n                this.$forceUpdate();\n\n              case 16:\n              case \"end\":\n                return _context.stop();\n            }\n          }\n        }, _callee, this);\n      }));\n\n      function init() {\n        return _init.apply(this, arguments);\n      }\n\n      return init;\n    }()\n  }\n};",null]}