/* * @Author: sz_teddy teddychenbin@126.com * @Date: 2023-11-03 14:26:28 * @LastEditors: sz_teddy teddychenbin@126.com * @LastEditTime: 2023-11-03 15:07:05 * @FilePath: \occ-React-lib\config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ require.config({ baseUrl: "/qute/plugin/", paths: { lib: "lib.min", jquery: "jquery.min", lazyload: "jquery.lazyload.min", md5: "md5.min", require: "require", bootstrap: "bootstrap.bundle.min", swiper: "swiper-bundle.min", jsBarcode: "JsBarcode.all.min", }, onNodeCreated: function (node, config, moduleName, url) { const sriHashes = { // lib: '' jquery: 'sha384-1H217gwSVyLSIfaLxHbE7dRb3v4mYCKbpQvzx0cegeju1MVsGrX5xXxAvs/HgeFs=', lazyload: 'sha384-63ZAEeAoTgGnNelLgKqfxvJHMH2oUFeheBUKL0q4j2yliHpmdSHbQ1YmiYgUcF49', md5: 'sha384-s/um7NiDQ47I48VwdHxZGGl0iqhx8lF3Bf61yNX6+odEPQbmVoWYsX02JXq2n54G=', require: 'sha384-tQ7aePXZ3UxesqTnNv13ngAZiSEW6EChgGuJpko580YfFoZYCClz18DCnV/xN6HR=', bootstrap: 'sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz=', swiper: 'sha384-JiF4eFN9V3I2Fry7TzFM3XKdq0P3abiVxpOeHjGz4cwvas+uNg6pFWVmuD6MKXqG=', jsBarcode: 'sha384-Kk5SjBOKprEnGfyBWfD2zROFd1Cu8kwOXxG2GIhYPcoDL2rBJS9P8Ud1ZMy4412a=', }; if (sriHashes[moduleName]) { node.setAttribute('integrity', sriHashes[moduleName]); node.setAttribute('crossorigin', 'anonymous'); } }, urlArgs: "bust=1745993798477&preview=", shim: { swiper: { deps: ["jquery"], exports: "swiper", }, lazyload: { deps: ['jquery'], exports: 'lazyload' }, // md5: { // exports: 'md5' // }, }, deps: [ "lib", "jquery", "lazyload", "md5", "bootstrap", "swiper", "jsBarcode", ], }); window.gv = { "breakpoint": { "xs": 0, "sm": 576, "md": 768, "lg": 992, "xl": 1200, "xxl": 1400 }, "proxy": "", "starttime": "1745993798477", "muid": "", "preview": "", "host": "www.mecode.com.tw", "storeuid": "B10O0002SH", "homedeftemplate": "B10O0002SH", "dateformat": "", "lanuage": "", "LowStockQty": "", "loadimg": "3000", "emptyimg": "docfile_EcmIcon:empty-610_X.png", "taxcarrierexttype": "Member", "taxivtype": "0", "freeShippingLimit": "", "channalPricingPrecision": "", "channalPricingMethod": "", "channalPricingRatio": "", "currrate": "", "currency": "", "country": "", "callingcode": "", "EcmOther": "https://hbt001.ccis.chiefappc.com/cac/EcmOther", "EcmSciInquery": "https://hbt001.ccis.chiefappc.com/cac/EcmSciInquery", "EcmCover": "https://hbt001.ccis.chiefappc.com/cac/EcmCover", "EcmDownload": "https://hbt001.ccis.chiefappc.com/cac/EcmDownload", "EcmAdver": "https://hbt001.ccis.chiefappc.com/cac/EcmAdver", "EcmPromo": "https://hbt001.ccis.chiefappc.com/cac/EcmPromo", "EcmCmp": "https://hbt001.ccis.chiefappc.com/cac/EcmCmp", "EcmLogo": "https://hbt001.ccis.chiefappc.com/cac/EcmLogo", "EcmIcon": "https://hbt001.ccis.chiefappc.com/cac/EcmIcon", "CbdTemplate": "https://hbt001.ccis.chiefappc.com/cac/CbdTemplate", "CmiProd": "https://hbt001.ccis.chiefappc.com/cac/CmiProd", "CbdSeries": "https://hbt001.ccis.chiefappc.com/cac/CbdSeries", "CmiCategory": "https://hbt001.ccis.chiefappc.com/cac/CmiCategory", "CbdBrand": "https://hbt001.ccis.chiefappc.com/cac/CbdBrand", "EcmStyleBook": "", "CmiProdGmtPattern": "" } require(["require"], function (require) { require(["lib"], function (lib) { }); });