(window["webpackjsonp"] = window["webpackjsonp"] || []).push([[8],{ /***/ 125: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var vue__webpack_imported_module_0__ = __webpack_require__(5); /* harmony import */ var _util_mixin__webpack_imported_module_1__ = __webpack_require__(88); var comsys = { install: function install(vue) { /** * * 当前项目路由跳转 * {string}, {number}, {boolean}, {object}, {function}, {regexp}, {array}, {date},{array.} * 打开新页签 * @param {string} name 路由name * @param {string} query 身上是参数 * * */ vue.prototype.gethref = function (name, query) { this.$router.push({ name: name, query: query }); }; } }; vue__webpack_imported_module_0__["default"].use(comsys); /***/ }), /***/ 187: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var lodash__webpack_imported_module_0__ = __webpack_require__(307); /* harmony import */ var lodash__webpack_imported_module_0___default = /*#__pure__*/__webpack_require__.n(lodash__webpack_imported_module_0__); /**{string}, {number}, {boolean}, {object}, {function}, {regexp}, {array}, {date},{array.} * @param {string} city_a 定位接口传入的字符串 * @param {string} type 类型 p : 返回省级编码 c:返回 市级编码 * * */ var setpublicarea = function setpublicarea(city_a, type) {}; /* harmony default export */ __webpack_exports__["a"] = ({ setpublicarea: setpublicarea }); /***/ }), /***/ 88: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var core_js_modules_es6_regexp_replace_js__webpack_imported_module_0__ = __webpack_require__(61); /* harmony import */ var core_js_modules_es6_regexp_replace_js__webpack_imported_module_0___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es6_regexp_replace_js__webpack_imported_module_0__); /* harmony import */ var core_js_modules_es6_regexp_constructor_js__webpack_imported_module_1__ = __webpack_require__(136); /* harmony import */ var core_js_modules_es6_regexp_constructor_js__webpack_imported_module_1___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es6_regexp_constructor_js__webpack_imported_module_1__); /* harmony import */ var core_js_modules_es6_array_find_js__webpack_imported_module_2__ = __webpack_require__(206); /* harmony import */ var core_js_modules_es6_array_find_js__webpack_imported_module_2___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es6_array_find_js__webpack_imported_module_2__); /* harmony default export */ __webpack_exports__["a"] = ({ data: function data() { return { tbimportdialoglist: [], zbfiledata: null, hasswb: null }; }, computed: {}, methods: { randomnum: function randomnum(minnum, maxnum) { switch (arguments.length) { case 1: return parseint(math.random() * minnum + 1, 10); break; case 2: return parseint(math.random() * (maxnum - minnum + 1) + minnum, 10); break; default: return 0; break; } }, setheightofproduct: function setheightofproduct(c1, c2) { if ($(c1).prev()[0] && $(c1)[0]) { $(c1).css('padding-top', $(c1).prev()[0].offsetheight - 300 + 'px'); $(c2).css('height', $(c1)[0].offsetheight + 300 + 'px'); } }, /** * type: date time datetime * str: 时间格式的字符串 * * */ parsedate: function parsedate(str) { var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'date'; /** * 兼容ie做法 * 例:2020-08-06t09:13:00.000z * 结果:2020/08/06 09:13:00 * * */ if (str.indexof('.') !== -1) { str = str.substr(0, str.indexof('.')); } if (str.indexof('t') !== -1) { str = str.replace('t', " "); } str = str.replace(new regexp(/-/gm), "/"); var date = new date(str); var year = date.getfullyear(); var month = date.getmonth() + 1; var day = date.getdate(); var hours = date.gethours(); var seconds = date.getseconds(); var minutes = date.getminutes(); month = month >= 10 ? month : "0".concat(month); day = day >= 10 ? day : "0".concat(day); hours = hours >= 10 ? hours : "0".concat(hours); minutes = minutes >= 10 ? minutes : "0".concat(minutes); seconds = seconds >= 10 ? seconds : "0".concat(seconds); if (type === 'date') { return "".concat(year, "-").concat(month, "-").concat(day); } else if (type === 'time') { return "".concat(hours, ":").concat(minutes, ":").concat(seconds); } else if (type === 'datetime') { return "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hours, ":").concat(minutes, ":").concat(seconds); } }, /** * * 在线咨询 * * */ onlineconsultation: function onlineconsultation() { window.open('http://wpd.b.qq.com/page/webchat.html?nameaccount=4009618998', '_blank', 'height=520,width=650,toolbar=no,scrollbars=no,menubar=no,status=no'); return false; }, /** * * 自定义超出显示省略 * parent:需要显示省略的父元素(需要定义高度) * child:需要省略的元素 * * */ ellipsis: function ellipsis(parent, child) { var _this = this; $(parent).each(function (i, v) { _this.ellipsis(_this.ellipsishandle(i, v, child)); }); }, ellipsishandle: function ellipsishandle(i, v, child) { var parenthight = $(v).height(); var target = $(v).find(child); var targethight = target.height(); if (targethight > parenthight) { target.text(target.text().replace(/(\s)*([a-za-z0-9]+|\w)(\.\.\.)?$/, "...")); this.ellipsishandle(i, v, child); } else { return; } }, /** * * 相同模块执行动画间隔 * id: 类名 * func: 动画函数 * delay:延迟间隔 * duration:动画播放时间 * * */ animatefunc: function animatefunc(id, func, delay, duration) { if (!id || !func) return; var targetarr = $(id); var _loop = function _loop(i) { if (!$(targetarr[i]).hasclass('isanimatefunc')) { $(targetarr[i]).addclass('isanimatefunc'); var timer = settimeout(function () { $(targetarr[i]).css('opacity', '1').css('animation', "".concat(typeof func !== 'string' ? func[i % func.length] : func, " ").concat(duration, "ms linear")).css('-o-animation', "".concat(typeof func !== 'string' ? func[i % func.length] : func, " ").concat(duration, "ms linear")).css('-ms-animation', "".concat(typeof func !== 'string' ? func[i % func.length] : func, " ").concat(duration, "ms linear")).css('-moz-animation', "".concat(typeof func !== 'string' ? func[i % func.length] : func, " ").concat(duration, "ms linear")).css('-webkit-animation', "".concat(typeof func !== 'string' ? func[i % func.length] : func, " ").concat(duration, "ms linear")); cleartimeout(timer); }, i * delay); } }; for (var i = 0; i < targetarr.length; i++) { _loop(i); } }, /** * * arr: 类名数组 * * */ scrollbarfunc: function scrollbarfunc(arr) { var _this2 = this; var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300; var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 500; var delay2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 500; var scrollhandleheight = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; if (arr.length === 0) return; this.$nexttick(function () { var totopdistance = []; for (var i = 0; i < arr.length; i++) { if ($(arr[i].content).offset() !== undefined) { var obj = { content: arr[i].content, item: arr[i].item, func: arr[i].func, top: $(arr[i].content).offset().top }; totopdistance.push(obj); var children = $("".concat(arr[i].content, " ").concat(arr[i].item)); children.css('opacity', '0').css('-webkit-transition', "all ".concat(delay2, "ms linear")).css('transition', "all ".concat(delay2, "ms linear")); if (children && children.length > 0) { for (var j = 0; j < $(arr[i].item).length; j++) { $(children[j]).css('opacity', '0'); } } } } _this2.animatefuncoption(totopdistance, delay, duration, scrollhandleheight); $(window).scroll(function () { _this2.animatefuncoption(totopdistance, delay, duration, scrollhandleheight); }); }); }, animatefuncoption: function animatefuncoption(totopdistance, delay, duration, scrollhandleheight) { var scrolltop = $(window).scrolltop() + $(window).height() - scrollhandleheight; for (var i = 0; i < totopdistance.length; i++) { var condition01 = totopdistance[i].top < scrolltop; var condition02 = totopdistance[i + 1] && totopdistance[i + 1].top > scrolltop; var condition03 = i === totopdistance.length - 1; if (condition01 && (condition02 || condition03)) { $(totopdistance[i].content).css('opacity', '1'); this.animatefunc("".concat(totopdistance[i].content, " ").concat(totopdistance[i].item), totopdistance[i].func, delay, duration); } } }, /** * 根据产品id返回对应产品的路由 * * */ getproductroutename: function getproductroutename(id) { if (id === null || id === undefined) { return; } return "".concat(this.$g.base).concat(this.nameswitch(id)); }, nameswitch: function nameswitch(id) { switch (id) { case 11: return '/products/bidding/dzztb'; case 12: return '/products/bidding/saas'; case 13: return '/products/bidding/bigdata'; case 14: return '/products/bidding/supplier'; case 15: return '/products/bidding/cost'; case 21: return '/products/ggzyjy/solution'; case 22: return '/products/ggzyjy/bigdata'; case 23: return '/products/ggzyjy/bidopening'; case 24: return '/products/ggzyjy/evaluation'; case 25: return '/products/ggzyjy/jianguan'; case 26: return '/products/ggzyjy/ycfspb'; case 27: return '/products/ggzyjy/filemanagement'; case 28: return '/products/ggzyjy/databackup'; case 31: return '/products/intelligence/blockchain'; case 32: return '/products/intelligence/materials'; case 33: return '/products/intelligence/financial'; case 34: return '/products/intelligence/certificate'; case 35: return '/products/intelligence/field'; case 41: return '/products/gczjgl/projectcost'; case 42: return '/products/gczjgl/zujia'; case 43: return '/products/gczjgl/qingbiao'; case 51: return '/products/biddingassist/bst'; case 61: return '/download'; case 71: return '/products/intelligencetbws/information'; case 72: return '/products/intelligencetbws/examination'; case 73: return '/products/intelligencetbws/rechecking'; case 74: return '/products/intelligencetbws/guard'; default: return '/products/bidding/dzztb'; } }, /** * * 记录渠道信息 * * */ savechannel: function savechannel() { if (this.$route.query && json.stringify(this.$route.query) !== '{}' && this.$route.query.channel) { sessionstorage.setitem('channel', this.$route.query.channel); } } } }); /***/ }) },[[337,62,13,12,14,10,11,65,69,67,63,64,66,70,68,9,7,6,4,5]]]);