(window["webpackjsonp"] = window["webpackjsonp"] || []).push([[6],{ /***/ 124: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var element_ui_lib_theme_chalk_index_css__webpack_imported_module_0__ = __webpack_require__(326); /* harmony import */ var element_ui_lib_theme_chalk_index_css__webpack_imported_module_0___default = /*#__pure__*/__webpack_require__.n(element_ui_lib_theme_chalk_index_css__webpack_imported_module_0__); /* harmony import */ var element_ui_lib__webpack_imported_module_1__ = __webpack_require__(197); /* harmony import */ var element_ui_lib__webpack_imported_module_1___default = /*#__pure__*/__webpack_require__.n(element_ui_lib__webpack_imported_module_1__); /* harmony import */ var vue__webpack_imported_module_2__ = __webpack_require__(5); vue__webpack_imported_module_2__["default"].use(element_ui_lib__webpack_imported_module_1___default.a); /***/ }), /***/ 126: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var core_js_modules_es6_function_name_js__webpack_imported_module_0__ = __webpack_require__(25); /* harmony import */ var core_js_modules_es6_function_name_js__webpack_imported_module_0___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es6_function_name_js__webpack_imported_module_0__); /* harmony import */ var _routerlist_js__webpack_imported_module_1__ = __webpack_require__(199); var initrouter = _routerlist_js__webpack_imported_module_1__[/* default */ "a"].routerlist; /** * * nokeepaliverefresh:设置不刷新 * type:f h-m-f type:s h-s-f type:m h-m * * */ /* harmony default export */ __webpack_exports__["a"] = (function (_ref) { var app = _ref.app, $axios = _ref.$axios, redirect = _ref.redirect; app.router.beforeeach(function (to, from, next) { next(); }); app.router.aftereach(function (to, from) { var t = to.name; if (to.name === null && to.path === '/index') { t = 'index'; redirect('/'); } else if (to.name === null) { redirect('/error/404'); } /* 设置路由基础信息 */ /* 标题 */ var settitle; /* 关键词 */ var setkeywords; /* 内容简介 */ var setdescription; /* 设置类型 用于控制展示结构 */ var settype; /* keepalive设置 */ var setkeepalive; /* keepalive设置 设置为true的情况 设置不刷新 */ var setkeepaliverefresh; /* 判断该路由是否要登录权限 */ var setrequireauth; /* 是否右侧菜单 */ var nosidebarright; /* 读取 routerlist.js 配置 */ if (initrouter[t]) { settitle = initrouter[t] && initrouter[t].title !== undefined ? initrouter[t].title : ''; setkeywords = initrouter[t].keywords; setdescription = initrouter[t].description; settype = initrouter[t].type; setkeepalive = initrouter[t].keepalive; setkeepaliverefresh = initrouter[t].keepaliverefresh; setrequireauth = initrouter[t].requireauth; nosidebarright = initrouter[t].nosidebarright; } /* 未在 routerlist.js 配置 设置默认配置 */ if (!initrouter[t]) { settitle = ''; setkeywords = ''; setdescription = ''; settype = 'h-m-f'; setkeepalive = true; setkeepaliverefresh = false; setrequireauth = false; nosidebarright = true; } to.meta.title = settitle; to.meta.keywords = setkeywords; to.meta.description = setdescription; to.meta.type = settype; to.meta.keepalive = setkeepalive; to.meta.keepaliverefresh = setkeepaliverefresh; to.meta.requireauth = setrequireauth; to.meta.nosidebarright = nosidebarright; }); }); /***/ }), /***/ 128: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var vue__webpack_imported_module_0__ = __webpack_require__(5); var bus = {}; bus.install = function (vue) { vue.prototype.$bus = new vue(); }; vue__webpack_imported_module_0__["default"].use(bus); /***/ }), /***/ 129: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /***/ }), /***/ 130: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var core_js_modules_es6_object_keys_js__webpack_imported_module_0__ = __webpack_require__(34); /* harmony import */ var core_js_modules_es6_object_keys_js__webpack_imported_module_0___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es6_object_keys_js__webpack_imported_module_0__); /* harmony import */ var core_js_modules_es6_array_filter_js__webpack_imported_module_1__ = __webpack_require__(31); /* harmony import */ var core_js_modules_es6_array_filter_js__webpack_imported_module_1___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es6_array_filter_js__webpack_imported_module_1__); /* harmony import */ var vue__webpack_imported_module_2__ = __webpack_require__(5); /** * 字符串截取 前 4 位 * 用法 string.substr(0,4); * 2019 **/ var substr_4 = function substr_4(str) { if (str === null || str === undefined || !str) { return ''; } str = str + ''; var a = str.substring(0, 4); return a; }; var filters = { substr_4: substr_4 }; /*过滤器*/ object.keys(filters).foreach(function (key) { vue__webpack_imported_module_2__["default"].filter(key, filters[key]); }); /* harmony default export */ __webpack_exports__["a"] = (filters); /***/ }), /***/ 131: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // external module: ./node_modules/vue/dist/vue.runtime.esm.js var vue_runtime_esm = __webpack_require__(5); // external module: ./util/mixin.js var mixin = __webpack_require__(89); // external module: ./util/api.js var api = __webpack_require__(118); // external module: ./plugins/global.js var global = __webpack_require__(53); var global_default = /*#__pure__*/__webpack_require__.n(global); // external module: ./node_modules/core-js/modules/es6.object.keys.js var es6_object_keys = __webpack_require__(34); // external module: ./node_modules/core-js/modules/es6.symbol.js var es6_symbol = __webpack_require__(29); // external module: ./node_modules/core-js/modules/es6.array.filter.js var es6_array_filter = __webpack_require__(31); // external module: ./node_modules/core-js/modules/es6.object.get-own-property-descriptor.js var es6_object_get_own_property_descriptor = __webpack_require__(51); // external module: ./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js var es7_object_get_own_property_descriptors = __webpack_require__(52); // external module: ./node_modules/@babel/runtime/helpers/esm/defineproperty.js var defineproperty = __webpack_require__(20); // concatenated module: ./plugins/validater.js function ownkeys(object, enumerableonly) { var keys = object.keys(object); if (object.getownpropertysymbols) { var symbols = object.getownpropertysymbols(object); enumerableonly && (symbols = symbols.filter(function (sym) { return object.getownpropertydescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } function _objectspread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownkeys(object(source), !0).foreach(function (key) { object(defineproperty["a" /* default */])(target, key, source[key]); }) : object.getownpropertydescriptors ? object.defineproperties(target, object.getownpropertydescriptors(source)) : ownkeys(object(source)).foreach(function (key) { object.defineproperty(target, key, object.getownpropertydescriptor(source, key)); }); } return target; } var servicemodule = { /** * 手机号码校验 */ phone: function phone(rule, value, callback) { if (value == null || value === "") { callback(); } else { var reg = /^1[3456789]\d{9}$/; if (!reg.test(value)) { callback(new error('请输入有效的手机号码')); } callback(); } } }; var validation = _objectspread({}, servicemodule); /* harmony default export */ var validater = (validation); // external module: ./util/validate.js var validate = __webpack_require__(187); // external module: ./node_modules/lodash/clonedeep.js var clonedeep = __webpack_require__(119); var clonedeep_default = /*#__pure__*/__webpack_require__.n(clonedeep); // external module: ./util/ssrcommon.js var ssrcommon = __webpack_require__(188); // external module: ./node_modules/video.js/dist/video.es.js var video_es = __webpack_require__(189); // external module: ./node_modules/video.js/dist/video-js.css var video_js = __webpack_require__(325); // concatenated module: ./plugins/main.js /*自定义全局变量*/ /*表单校验*/ /*asyncdata服务器端渲染公共方法文件夹*/ var main = { install: function install(vue) { vue.prototype.$g = global_default.a; //测试有效(固定值不能变动) vue.prototype.$rules = validater; //表单校验 vue.prototype.$clonedeep = clonedeep_default.a; vue.prototype.$video = video_es["a" /* default */]; vue.prototype.$api = api["a" /* default */]; vue.prototype.validate = validate["a" /* default */]; } }; /** * 将vue下的prototype注入 * */ vue_runtime_esm["default"].use(main); vue_runtime_esm["default"].mixin(mixin["a" /* default */]); /** * 这里是为了在asyncdata方法中使用 * */ /* harmony default export */ var plugins_main = __webpack_exports__["a"] = (function (_ref, inject) { var app = _ref.app; app.$g = global_default.a; //名称 app.$mixin = mixin["a" /* default */]; app.$rules = validater; //表单校验 app.$clonedeep = clonedeep_default.a; app.$common = ssrcommon["a" /* default */]; app.$api = api["a" /* default */]; }); /***/ }), /***/ 132: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // external module: ./node_modules/core-js/modules/es6.string.starts-with.js var es6_string_starts_with = __webpack_require__(105); // external module: ./node_modules/core-js/modules/es6.object.to-string.js var es6_object_to_string = __webpack_require__(19); // external module: ./node_modules/core-js/modules/es6.string.includes.js var es6_string_includes = __webpack_require__(62); // external module: ./node_modules/core-js/modules/es7.array.includes.js var es7_array_includes = __webpack_require__(63); // external module: ./node_modules/qs/lib/index.js var lib = __webpack_require__(125); var lib_default = /*#__pure__*/__webpack_require__.n(lib); // external module: ./node_modules/js-md5/src/md5.js var md5 = __webpack_require__(198); var md5_default = /*#__pure__*/__webpack_require__.n(md5); // concatenated module: ./plugins/md5.js /** * * 加密数字签名用的md5 * * */ function getmd5(paramsjson) { //传json对象 var arr = []; for (var key in paramsjson) { if (paramsjson[key]) { arr.push(key); } } arr.sort(); var srcstr = ""; for (var i = 0; i <= arr.length; i++) { if (arr[i]) { srcstr += arr[i] + paramsjson[arr[i]]; } } srcstr += "fe716cbb-a990-40d4-b7c7-7b9db338c6c8"; return md5_default()(srcstr); } // external module: ./plugins/global.js var global = __webpack_require__(53); // concatenated module: ./plugins/axios.js /* harmony default export */ var axios = __webpack_exports__["a"] = (function (_ref) { var app = _ref.app, $axios = _ref.$axios, redirect = _ref.redirect; $axios.defaults.timeout = 60000; $axios.defaults.retry = 1; //重试次数 $axios.defaults.retrydelay = 1000; //重试延时 /** * request拦截器 请求拦截器 ==>对请求参数做处理 * * */ $axios.onrequest(function (config) { if (false) {} /** * * data处理 * * */ config.data = lib_default.a.stringify(config.data); /** * * 转换请求baseurl * * */ if (true) { if (config.url.startswith('/website-api')) { config.baseurl = global["isproduction"] ? 'https://www.zhulong.com.cn' : 'http://192.168.168.98:8089'; } else if (config.url.startswith('/biaoshitong')) { config.baseurl = global["isproduction"] ? 'https://www.biaoshitong.com' : 'http://test.biaoshitong.com:18080'; } } if (config.url === "/biaoshitong/business-server/openasdvert/querybanners") { config.headers["content-type"] = "text/plain"; config.data = lib_default.a.parse(config.data).advertguid; } return config; }); /** * * 监听返回数据 * * */ $axios.onresponse(function (response) { if (response.data == null && response.config.responsetype === "json" && response.request.responsetext != null) { try { response.data = json.parse(response.request.responsetext); } catch (e) { console.log(e); } } switch (response.data.status) { case 500: redirect("/error/500"); break; case 504: redirect("/error/500"); break; } return promise.resolve(response); }); /** * * 监听错误 * * */ $axios.onerror(function (error) { if (error.code === "econnaborted" && error.message.indexof("timeout") !== -1) { return promise.resolve({ data: { status: 0, data: null } }); } else if (error.response) {} else { if (error.message.includes("network error")) { /** * * 网络异常 * * */ return promise.resolve({ data: { status: 0, message: "网络异常", data: null } }); } if (error.message.includes("拒绝访问")) { /** * * 网络异常 * * */ return promise.resolve({ data: { status: 0, message: "拒绝访问", data: null } }); } } return promise.resolve(error.response.data); //返回接口返回的错误信息 }); }); /***/ }), /***/ 53: /***/ (function(module, exports, __webpack_require__) { var icp = '京icp备05038502号'; var base = ''; var basehost = ''; var basestatic = ''; var baseserve = ''; var isproduction = true; // 打测试环境的包 请把这个改为 false if (true) { // base = 'http://test.biaoshitong.com:8001/website'; base = isproduction ? 'https://www.zhulong.com.cn' : 'http://192.168.168.98:3005'; // basehost = 'http://test.biaoshitong.com:8001'; basehost = isproduction ? 'https://www.biaoshitong.com' : 'http://test.biaoshitong.com:18080'; // basestatic = '/website'; basestatic = ''; baseserve = isproduction ? 'https://www.zhulong.com.cn' : 'http://192.168.168.98:8089'; } module.exports = { isproduction: isproduction, icp: icp, base: base, basehost: basehost, basestatic: basestatic, baseserve: baseserve }; /***/ }) }]);