{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/views/index/index.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","11","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","$","eq","addClass","hover","this","hasClass","removeClass","Swiper","observer","observeParents","loop","speed","autoplay","delay","disableOnInteraction","pagination","el","clickable","renderBullet","index","className","autoScrolling","width","fn","fullpage","setAutoScrolling","setFitToSection","navigation","verticalCentered","css3","scrollingSpeed","slidesNavigation","anchors","menu","afterLoad","anchorLink","countTo","options","each","settings","extend","defaults","from","to","refreshInterval","decimals","loops","Math","ceil","increment","self","$self","loopCount","render","formattedValue","formatter","html","interval","clearInterval","setInterval","onUpdate","removeData","onComplete","toFixed","formmatter","replace","$this","resize","slidesPerView","spaceBetween","scrollbar","type","renderCustom","swiper","current","total","dangqian","document","querySelector","zongshu","innerText","breakpoints","320","768","1280","siblings","video","getElementById","click","css","play","hide","pause"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoB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AU,CACNC,MAAO,IACPC,sBAAsB,GAE7BwD,UAAW,CACJtD,GAAI,+BAEXD,WAAY,CACXC,GAAI,+BAEJuD,KAAK,SACLC,aAAc,SAAUC,EAAQC,EAASC,GACxC,IAAIC,EAAWC,SAASC,cAAc,aAClCC,EAAUF,SAASC,cAAc,YAEpCJ,EADEA,GAAS,EACD,IAAIA,EAEJA,EAGVC,EADEA,GAAO,EACD,IAAIA,EAELA,EAERC,EAASI,UAAYN,EACrBK,EAAQC,UAAYL,IAGtBM,YAAa,CACNC,IAAK,CACLd,cAAe,GAEfe,IAAK,CACDf,cAAe,EACfC,aAAc,IAElBe,KAAM,CACFhB,cAAe,EACfC,aAAc,OAO1BrE,EAAE,iCAAiCG,OAAM,WACrC,IAAIgB,EAAQnB,EAAEI,MAAMe,QACpBnB,EAAEI,MAAMF,SAAS,UAAUmF,WAAW/E,YAAY,UAClDN,EAAE,uBAAuBC,GAAGkB,GAAOjB,SAAS,UAAUmF,WAAW/E,YAAY,aAKjF,IAAIgF,EAAQT,SAASU,eAAe,WACpCvF,EAAE,SAASwF,OAAM,WACbxF,EAAE,UAAUyF,IAAI,UAAU,QAC1BH,EAAMI,UAEV1F,EAAE,QAAQwF,OAAM,WACZxF,EAAE,UAAU2F,OACZL,EAAMM,Y","file":"js/6a992d5529f459a44fee58c733255e86.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t11: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([331,0,1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import './index.scss'\r\nimport Swiper from 'swiper/swiper-bundle.min.js'\r\nimport '../../assets/styles/jquery.fullpage.min.css'\r\nimport '../../assets/scripts/jquery.fullpage.min.js'\r\n$(\"header .nav li\").eq(0).addClass(\"active\");\r\n$(\"header\").addClass(\"header\")\r\n\r\n$(\".header\").hover(function(){\r\n\tif($(this).hasClass(\"head1\")){\r\n\t}else {\r\n\t\t$(this).addClass(\"head1 active\");\r\n\t}\r\n}, function(){\r\n\tif($(this).hasClass(\"active\")){\r\n\t\t$(this).removeClass(\"head1 active\");\r\n\t}else {\r\n\t\t\r\n\t}\r\n})\r\nvar swiper = new Swiper(\".banner #banner-swiper\", {\r\n observer:true,//修改swiper自己或子元素时,自动初始化swiper\r\n observeParents:true,//修改swiper的父元素时,自动初始化swiper\r\n loop:true,\r\n speed:2000,\r\n autoplay: {\r\n delay: 5000,\r\n disableOnInteraction: false,\r\n },\r\n pagination: {\r\n el: '.banner .swiper-page',\r\n clickable: true,\r\n\t\trenderBullet: function (index, className) {\r\n\t\t\treturn '' + \"
\";\r\n\t\t},\r\n },\r\n});\r\n$(function(){\r\n\t$('#dowebok').fullpage({\r\n\t\tnavigation:true,\r\n\t\tverticalCentered:false,\r\n\t\tcss3: false,\r\n\t\tscrollingSpeed:800,\r\n\t\tslidesNavigation:false,\r\n\r\n\t\tanchors: ['page1', 'page2','page3','page4','page5','page6'],\r\n\t\tmenu: '#menu',\r\n\t\tautoScrolling: true,\r\n\t\t//anchors: ['hero', 'services', 'cases', 'news','about','contact','footer']\r\n\t\t\r\n\t\tafterLoad: function(anchorLink, index)\r\n\t\t{\r\n\t\t\tif(index == 1)\r\n\t\t\t{\r\n $(\".header\").removeClass(\"head1\");\r\n\t\t\t}\r\n\t\t\tif(index == 2)\r\n\t\t\t{\r\n\t\t\t\t$(\".header\").addClass(\"head1\");\r\n\t\t\t}\r\n\t\t\tif(index == 3)\r\n\t\t\t{\t\t\r\n\t\t\t\t$(\".header\").addClass(\"head1\");\r\n //设置计数\r\n $.fn.countTo = function (options) {\r\n options = options || {};\r\n return $(this).each(function () {\r\n //当前元素的选项\r\n var settings = $.extend({}, $.fn.countTo.defaults, {\r\n from: $(this).data('from'),\r\n to: $(this).data('to'),\r\n speed: $(this).data('speed'),\r\n refreshInterval: $(this).data('refresh-interval'),\r\n decimals: $(this).data('decimals')\r\n }, options);\r\n //更新值\r\n var loops = Math.ceil(settings.speed / settings.refreshInterval),\r\n increment = (settings.to - settings.from) / loops;\r\n //更改应用和变量\r\n var self = this,\r\n $self = $(this),\r\n loopCount = 0,\r\n value = settings.from,\r\n data = $self.data('countTo') || {};\r\n $self.data('countTo', data);\r\n //如果有间断,找到并清除\r\n if (data.interval) {\r\n clearInterval(data.interval);\r\n };\r\n data.interval = setInterval(updateTimer, settings.refreshInterval);\r\n //初始化起始值\r\n render(value);\r\n function updateTimer() {\r\n value += increment;\r\n loopCount++;\r\n render(value);\r\n if (typeof(settings.onUpdate) == 'function') {\r\n settings.onUpdate.call(self, value);\r\n }\r\n if (loopCount >= loops) {\r\n //移出间隔\r\n $self.removeData('countTo');\r\n clearInterval(data.interval);\r\n value = settings.to;\r\n if (typeof(settings.onComplete) == 'function') {\r\n settings.onComplete.call(self, value);\r\n }\r\n }\r\n }\r\n function render(value) {\r\n var formattedValue = settings.formatter.call(self, value, settings);\r\n $self.html(formattedValue);\r\n }\r\n });\r\n };\r\n $.fn.countTo.defaults={\r\n from:0, //数字开始的值\r\n to:0, //数字结束的值\r\n speed:1000, //设置步长的时间\r\n refreshInterval:100, //隔间值\r\n decimals:0, //显示小位数\r\n formatter: formatter, //渲染之前格式化\r\n onUpdate:null, //每次更新前的回调方法\r\n onComplete:null //完成更新的回调方法\r\n };\r\n function formatter(value, settings){\r\n return value.toFixed(settings.decimals);\r\n }\r\n //自定义格式\r\n $('#count-number').data('countToOptions',{\r\n formmatter:function(value, options){\r\n return value.toFixed(options.decimals).replace(/\\B(?=(?:\\d{3})+(?!\\d))/g, ',');\r\n }\r\n });\r\n //定时器\r\n $('.timer').each(count);\r\n function count(options){\r\n var $this=$(this);\r\n options=$.extend({}, options||{}, $this.data('countToOptions')||{});\r\n $this.countTo(options);\r\n }\r\n\t\t\t}\r\n\t\t\tif(index == 4)\r\n\t\t\t{\t\r\n\t\t\t\t$(\".header\").addClass(\"head1\");\r\n\t\t\t}\r\n\t\t\tif(index == 5)\r\n\t\t\t{\t\t\r\n\t\t\t\t$(\".header\").addClass(\"head1\");\r\n\t\t\t}\r\n\t\t\tif(index == 6)\r\n\t\t\t{\r\n\t\t\t\t$(\".header\").addClass(\"head1\");\r\n\t\t\t}\r\n\t\t},\r\n\t\r\n\r\n\t});\r\n\t$(window).resize(function(){\r\n autoScrolling();\r\n });\r\n\t/*手机上不滚动*/\r\n\tfunction autoScrolling(){\r\n var $ww = $(window).width();\r\n if($ww < 1024){\r\n $.fn.fullpage.setAutoScrolling(false);\r\n\t\t\t$.fn.fullpage.setFitToSection(false);\r\n } else {\r\n $.fn.fullpage.setAutoScrolling(true);\r\n }\r\n }\r\n\tautoScrolling();\r\n});\r\n\r\n//解决方案\r\nvar swiper = new Swiper(\".page3_bg .mySwiper\", {\r\n\tslidesPerView: 4,\r\n\tspaceBetween: 10,\r\n\t// loop:true,\r\n speed:500,\r\n autoplay: {\r\n delay: 2000,\r\n disableOnInteraction: false,\r\n },\r\n\tscrollbar: {\r\n el: \".page3_bg .swiper-scrollbar\",\r\n },\r\n\tpagination: {\r\n\t\tel: \".page3_bg .swiper-pagination\",\r\n\t\t//自定义分页器样式\r\n\t\ttype:\"custom\",\r\n\t\trenderCustom: function (swiper, current, total) {\r\n\t\t\tvar dangqian = document.querySelector(\".dangqian\")\r\n\t\t\tvar zongshu = document.querySelector(\".zongshu\")\r\n\t\t\tif(current<=9){\r\n\t\t\t\tcurrent = \"0\"+current\r\n\t\t\t}else{\r\n\t\t\t\tcurrent = current\r\n\t\t\t}\r\n\t\t\tif(total<=9){\r\n\t\t\t\ttotal = \"0\"+total\r\n\t\t\t}else{\r\n\t\t\ttotal = total\r\n\t\t\t}\r\n\t\t\tdangqian.innerText = current\r\n\t\t\tzongshu.innerText = total\r\n\t\t}\r\n\t},\r\n\tbreakpoints: {\r\n 320: { //当屏幕宽度大于等于320\r\n slidesPerView: 1,\r\n },\r\n 768: { //当屏幕宽度大于等于768 \r\n slidesPerView: 3,\r\n spaceBetween: 10,\r\n },\r\n 1280: { //当屏幕宽度大于等于1280\r\n slidesPerView: 4,\r\n spaceBetween: 10,\r\n }\r\n },\r\n});\r\n\r\n// 新闻\r\n\r\n$(\".section5 .content .top ul li\").hover(function() {\r\n let index = $(this).index();\r\n $(this).addClass(\"active\").siblings().removeClass(\"active\");\r\n $(\".news-content .news\").eq(index).addClass(\"active\").siblings().removeClass(\"active\");\r\n})\r\n\r\n\r\n// 视频\r\nvar video = document.getElementById('myVideo');\r\n$(\".play\").click(function () { \r\n $(\".video\").css(\"display\",\"flex\");\r\n video.play(); //播放控制\r\n})\r\n$(\".out\").click(function() {\r\n $(\".video\").hide()\r\n video.pause(); //暂停控制\r\n})"],"sourceRoot":""}