yc-ui2 0.1.1-beta08 → 0.1.1-beta10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,112 @@ return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
+ /***/ 1001:
16
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
+
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ Z: function() { return /* binding */ normalizeComponent; }
20
+ /* harmony export */ });
21
+ /* globals __VUE_SSR_CONTEXT__ */
22
+
23
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
24
+ // This module is a runtime utility for cleaner component module output and will
25
+ // be included in the final webpack user bundle.
26
+
27
+ function normalizeComponent(
28
+ scriptExports,
29
+ render,
30
+ staticRenderFns,
31
+ functionalTemplate,
32
+ injectStyles,
33
+ scopeId,
34
+ moduleIdentifier /* server only */,
35
+ shadowMode /* vue-cli only */
36
+ ) {
37
+ // Vue.extend constructor export interop
38
+ var options =
39
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
40
+
41
+ // render functions
42
+ if (render) {
43
+ options.render = render
44
+ options.staticRenderFns = staticRenderFns
45
+ options._compiled = true
46
+ }
47
+
48
+ // functional template
49
+ if (functionalTemplate) {
50
+ options.functional = true
51
+ }
52
+
53
+ // scopedId
54
+ if (scopeId) {
55
+ options._scopeId = 'data-v-' + scopeId
56
+ }
57
+
58
+ var hook
59
+ if (moduleIdentifier) {
60
+ // server build
61
+ hook = function (context) {
62
+ // 2.3 injection
63
+ context =
64
+ context || // cached call
65
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
66
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
67
+ // 2.2 with runInNewContext: true
68
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
69
+ context = __VUE_SSR_CONTEXT__
70
+ }
71
+ // inject component styles
72
+ if (injectStyles) {
73
+ injectStyles.call(this, context)
74
+ }
75
+ // register component module identifier for async chunk inferrence
76
+ if (context && context._registeredComponents) {
77
+ context._registeredComponents.add(moduleIdentifier)
78
+ }
79
+ }
80
+ // used by ssr in case component is cached and beforeCreate
81
+ // never gets called
82
+ options._ssrRegister = hook
83
+ } else if (injectStyles) {
84
+ hook = shadowMode
85
+ ? function () {
86
+ injectStyles.call(
87
+ this,
88
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
89
+ )
90
+ }
91
+ : injectStyles
92
+ }
93
+
94
+ if (hook) {
95
+ if (options.functional) {
96
+ // for template-only hot-reload because in that case the render fn doesn't
97
+ // go through the normalizer
98
+ options._injectStyles = hook
99
+ // register for functional component in vue file
100
+ var originalRender = options.render
101
+ options.render = function renderWithStyleInjection(h, context) {
102
+ hook.call(context)
103
+ return originalRender(h, context)
104
+ }
105
+ } else {
106
+ // inject component registration as beforeCreate hook
107
+ var existing = options.beforeCreate
108
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
109
+ }
110
+ }
111
+
112
+ return {
113
+ exports: scriptExports,
114
+ options: options
115
+ }
116
+ }
117
+
118
+
119
+ /***/ }),
120
+
15
121
  /***/ 9662:
16
122
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
17
123
 
@@ -1580,6 +1686,96 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1580
1686
  });
1581
1687
 
1582
1688
 
1689
+ /***/ }),
1690
+
1691
+ /***/ 9668:
1692
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1693
+
1694
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7658);
1695
+ /* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
1696
+
1697
+ /* harmony default export */ __webpack_exports__.Z = ({
1698
+ props: {
1699
+ visible: Boolean
1700
+ },
1701
+ data() {
1702
+ return {
1703
+ textareaValue: "",
1704
+ regular: ['发票增值税率', '城市维护建设税', '教育费附加征收率'],
1705
+ messagelist: [{
1706
+ id: 'admin',
1707
+ msg: ['您好,38号客服很高兴为你服务!'],
1708
+ isActive: false
1709
+ }
1710
+ // {id: 'personal', msg: ['消费税?']}
1711
+ ],
1712
+
1713
+ questions: (__webpack_require__(6671)/* ["default"] */ .Z),
1714
+ isActive: false
1715
+ };
1716
+ },
1717
+ methods: {
1718
+ close() {
1719
+ this.$emit("update:visible", false);
1720
+ },
1721
+ carriageReturn() {
1722
+ let e = window.event || arguments[0];
1723
+ if ((e.key == "Enter" || e.code == "Enter" || e.keyCode == 13) && this.textareaValue) {
1724
+ this.send();
1725
+ }
1726
+ },
1727
+ send() {
1728
+ if (!this.textareaValue.replace(/[^\w\u4E00-\u9FA5]/g, '')) return;
1729
+ this.add(this.textareaValue, "personal", () => {
1730
+ this.textareaValue = '';
1731
+ });
1732
+ this.search(this.textareaValue);
1733
+ },
1734
+ regularClick(msg) {
1735
+ this.add(msg);
1736
+ this.search(msg);
1737
+ },
1738
+ search(msg) {
1739
+ const list = this.questions.filter(item => item.faq.replace(/[^\w\u4E00-\u9FA5]/g, '').toLowerCase().includes(msg.replace(/[^\w\u4E00-\u9FA5]/g, '').toLowerCase()));
1740
+ let [vlaue, based] = ['', ''];
1741
+ if (list.length > 1) {
1742
+ vlaue = list.reduce((prev, curr) => [...prev, curr.faq], []);
1743
+ } else if (list.length == 1) {
1744
+ [vlaue, based] = [list[0].msg, list[0].based];
1745
+ } else if (["您好", "你好"].includes(msg.replace(/[^\w\u4E00-\u9FA5]/g, ''))) {
1746
+ vlaue = '您好!';
1747
+ } else {
1748
+ vlaue = '请提关键词问题?<br/> 比如: 税率<br/><br/><a href="tel:4000770168">客服热线:<span style="color: #FF575F;">400 0770 168</span></a>';
1749
+ }
1750
+ this.add(vlaue, 'admin', null, based);
1751
+ },
1752
+ add(msg, id = "personal", fun, based = "") {
1753
+ this.messagelist.push({
1754
+ id,
1755
+ msg: Array.isArray(msg) ? msg : [msg],
1756
+ based,
1757
+ isActive: false
1758
+ });
1759
+ this.$nextTick(() => {
1760
+ fun && fun();
1761
+ // this.$refs.main.scrollTop += 70
1762
+ this.$refs.main.scrollTop = this.$refs.main.scrollHeight;
1763
+ // console.log(this.$refs.main.scrollTop, this.$refs.main.scrollHeight)
1764
+ });
1765
+ },
1766
+
1767
+ enlarge() {
1768
+ // this.$router.resolve({
1769
+ // name: "/question"
1770
+ // })
1771
+ window.open('/question', '_blank');
1772
+ },
1773
+ handExpand(item) {
1774
+ item.isActive = !item.isActive;
1775
+ }
1776
+ }
1777
+ });
1778
+
1583
1779
  /***/ }),
1584
1780
 
1585
1781
  /***/ 6671:
@@ -1729,7 +1925,22 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1729
1925
  /******/ return module.exports;
1730
1926
  /******/ }
1731
1927
  /******/
1928
+ /******/ // expose the modules object (__webpack_modules__)
1929
+ /******/ __webpack_require__.m = __webpack_modules__;
1930
+ /******/
1732
1931
  /************************************************************************/
1932
+ /******/ /* webpack/runtime/compat get default export */
1933
+ /******/ !function() {
1934
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1935
+ /******/ __webpack_require__.n = function(module) {
1936
+ /******/ var getter = module && module.__esModule ?
1937
+ /******/ function() { return module['default']; } :
1938
+ /******/ function() { return module; };
1939
+ /******/ __webpack_require__.d(getter, { a: getter });
1940
+ /******/ return getter;
1941
+ /******/ };
1942
+ /******/ }();
1943
+ /******/
1733
1944
  /******/ /* webpack/runtime/define property getters */
1734
1945
  /******/ !function() {
1735
1946
  /******/ // define getter functions for harmony exports
@@ -1742,6 +1953,37 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1742
1953
  /******/ };
1743
1954
  /******/ }();
1744
1955
  /******/
1956
+ /******/ /* webpack/runtime/ensure chunk */
1957
+ /******/ !function() {
1958
+ /******/ __webpack_require__.f = {};
1959
+ /******/ // This file contains only the entry chunk.
1960
+ /******/ // The chunk loading function for additional chunks
1961
+ /******/ __webpack_require__.e = function(chunkId) {
1962
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
1963
+ /******/ __webpack_require__.f[key](chunkId, promises);
1964
+ /******/ return promises;
1965
+ /******/ }, []));
1966
+ /******/ };
1967
+ /******/ }();
1968
+ /******/
1969
+ /******/ /* webpack/runtime/get javascript chunk filename */
1970
+ /******/ !function() {
1971
+ /******/ // This function allow to reference async chunks
1972
+ /******/ __webpack_require__.u = function(chunkId) {
1973
+ /******/ // return url for filenames based on template
1974
+ /******/ return "yc-ui2.umd." + chunkId + ".js";
1975
+ /******/ };
1976
+ /******/ }();
1977
+ /******/
1978
+ /******/ /* webpack/runtime/get mini-css chunk filename */
1979
+ /******/ !function() {
1980
+ /******/ // This function allow to reference async chunks
1981
+ /******/ __webpack_require__.miniCssF = function(chunkId) {
1982
+ /******/ // return url for filenames based on template
1983
+ /******/ return "css/" + chunkId + "." + "6a139aa9" + ".css";
1984
+ /******/ };
1985
+ /******/ }();
1986
+ /******/
1745
1987
  /******/ /* webpack/runtime/global */
1746
1988
  /******/ !function() {
1747
1989
  /******/ __webpack_require__.g = (function() {
@@ -1759,6 +2001,52 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1759
2001
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
1760
2002
  /******/ }();
1761
2003
  /******/
2004
+ /******/ /* webpack/runtime/load script */
2005
+ /******/ !function() {
2006
+ /******/ var inProgress = {};
2007
+ /******/ var dataWebpackPrefix = "yc-ui2:";
2008
+ /******/ // loadScript function to load a script via script tag
2009
+ /******/ __webpack_require__.l = function(url, done, key, chunkId) {
2010
+ /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
2011
+ /******/ var script, needAttach;
2012
+ /******/ if(key !== undefined) {
2013
+ /******/ var scripts = document.getElementsByTagName("script");
2014
+ /******/ for(var i = 0; i < scripts.length; i++) {
2015
+ /******/ var s = scripts[i];
2016
+ /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
2017
+ /******/ }
2018
+ /******/ }
2019
+ /******/ if(!script) {
2020
+ /******/ needAttach = true;
2021
+ /******/ script = document.createElement('script');
2022
+ /******/
2023
+ /******/ script.charset = 'utf-8';
2024
+ /******/ script.timeout = 120;
2025
+ /******/ if (__webpack_require__.nc) {
2026
+ /******/ script.setAttribute("nonce", __webpack_require__.nc);
2027
+ /******/ }
2028
+ /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
2029
+ /******/
2030
+ /******/ script.src = url;
2031
+ /******/ }
2032
+ /******/ inProgress[url] = [done];
2033
+ /******/ var onScriptComplete = function(prev, event) {
2034
+ /******/ // avoid mem leaks in IE.
2035
+ /******/ script.onerror = script.onload = null;
2036
+ /******/ clearTimeout(timeout);
2037
+ /******/ var doneFns = inProgress[url];
2038
+ /******/ delete inProgress[url];
2039
+ /******/ script.parentNode && script.parentNode.removeChild(script);
2040
+ /******/ doneFns && doneFns.forEach(function(fn) { return fn(event); });
2041
+ /******/ if(prev) return prev(event);
2042
+ /******/ }
2043
+ /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
2044
+ /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
2045
+ /******/ script.onload = onScriptComplete.bind(null, script.onload);
2046
+ /******/ needAttach && document.head.appendChild(script);
2047
+ /******/ };
2048
+ /******/ }();
2049
+ /******/
1762
2050
  /******/ /* webpack/runtime/make namespace object */
1763
2051
  /******/ !function() {
1764
2052
  /******/ // define __esModule on exports
@@ -1775,6 +2063,175 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1775
2063
  /******/ __webpack_require__.p = "";
1776
2064
  /******/ }();
1777
2065
  /******/
2066
+ /******/ /* webpack/runtime/css loading */
2067
+ /******/ !function() {
2068
+ /******/ if (typeof document === "undefined") return;
2069
+ /******/ var createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {
2070
+ /******/ var linkTag = document.createElement("link");
2071
+ /******/
2072
+ /******/ linkTag.rel = "stylesheet";
2073
+ /******/ linkTag.type = "text/css";
2074
+ /******/ var onLinkComplete = function(event) {
2075
+ /******/ // avoid mem leaks.
2076
+ /******/ linkTag.onerror = linkTag.onload = null;
2077
+ /******/ if (event.type === 'load') {
2078
+ /******/ resolve();
2079
+ /******/ } else {
2080
+ /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
2081
+ /******/ var realHref = event && event.target && event.target.href || fullhref;
2082
+ /******/ var err = new Error("Loading CSS chunk " + chunkId + " failed.\n(" + realHref + ")");
2083
+ /******/ err.code = "CSS_CHUNK_LOAD_FAILED";
2084
+ /******/ err.type = errorType;
2085
+ /******/ err.request = realHref;
2086
+ /******/ if (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)
2087
+ /******/ reject(err);
2088
+ /******/ }
2089
+ /******/ }
2090
+ /******/ linkTag.onerror = linkTag.onload = onLinkComplete;
2091
+ /******/ linkTag.href = fullhref;
2092
+ /******/
2093
+ /******/ if (oldTag) {
2094
+ /******/ oldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);
2095
+ /******/ } else {
2096
+ /******/ document.head.appendChild(linkTag);
2097
+ /******/ }
2098
+ /******/ return linkTag;
2099
+ /******/ };
2100
+ /******/ var findStylesheet = function(href, fullhref) {
2101
+ /******/ var existingLinkTags = document.getElementsByTagName("link");
2102
+ /******/ for(var i = 0; i < existingLinkTags.length; i++) {
2103
+ /******/ var tag = existingLinkTags[i];
2104
+ /******/ var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");
2105
+ /******/ if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return tag;
2106
+ /******/ }
2107
+ /******/ var existingStyleTags = document.getElementsByTagName("style");
2108
+ /******/ for(var i = 0; i < existingStyleTags.length; i++) {
2109
+ /******/ var tag = existingStyleTags[i];
2110
+ /******/ var dataHref = tag.getAttribute("data-href");
2111
+ /******/ if(dataHref === href || dataHref === fullhref) return tag;
2112
+ /******/ }
2113
+ /******/ };
2114
+ /******/ var loadStylesheet = function(chunkId) {
2115
+ /******/ return new Promise(function(resolve, reject) {
2116
+ /******/ var href = __webpack_require__.miniCssF(chunkId);
2117
+ /******/ var fullhref = __webpack_require__.p + href;
2118
+ /******/ if(findStylesheet(href, fullhref)) return resolve();
2119
+ /******/ createStylesheet(chunkId, fullhref, null, resolve, reject);
2120
+ /******/ });
2121
+ /******/ }
2122
+ /******/ // object to store loaded CSS chunks
2123
+ /******/ var installedCssChunks = {
2124
+ /******/ 343: 0
2125
+ /******/ };
2126
+ /******/
2127
+ /******/ __webpack_require__.f.miniCss = function(chunkId, promises) {
2128
+ /******/ var cssChunks = {"50":1};
2129
+ /******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
2130
+ /******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
2131
+ /******/ promises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {
2132
+ /******/ installedCssChunks[chunkId] = 0;
2133
+ /******/ }, function(e) {
2134
+ /******/ delete installedCssChunks[chunkId];
2135
+ /******/ throw e;
2136
+ /******/ }));
2137
+ /******/ }
2138
+ /******/ };
2139
+ /******/
2140
+ /******/ // no hmr
2141
+ /******/ }();
2142
+ /******/
2143
+ /******/ /* webpack/runtime/jsonp chunk loading */
2144
+ /******/ !function() {
2145
+ /******/ // no baseURI
2146
+ /******/
2147
+ /******/ // object to store loaded and loading chunks
2148
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
2149
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
2150
+ /******/ var installedChunks = {
2151
+ /******/ 343: 0
2152
+ /******/ };
2153
+ /******/
2154
+ /******/ __webpack_require__.f.j = function(chunkId, promises) {
2155
+ /******/ // JSONP chunk loading for javascript
2156
+ /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
2157
+ /******/ if(installedChunkData !== 0) { // 0 means "already installed".
2158
+ /******/
2159
+ /******/ // a Promise means "currently loading".
2160
+ /******/ if(installedChunkData) {
2161
+ /******/ promises.push(installedChunkData[2]);
2162
+ /******/ } else {
2163
+ /******/ if(true) { // all chunks have JS
2164
+ /******/ // setup Promise in chunk cache
2165
+ /******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
2166
+ /******/ promises.push(installedChunkData[2] = promise);
2167
+ /******/
2168
+ /******/ // start chunk loading
2169
+ /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
2170
+ /******/ // create error before stack unwound to get useful stacktrace later
2171
+ /******/ var error = new Error();
2172
+ /******/ var loadingEnded = function(event) {
2173
+ /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
2174
+ /******/ installedChunkData = installedChunks[chunkId];
2175
+ /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
2176
+ /******/ if(installedChunkData) {
2177
+ /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
2178
+ /******/ var realSrc = event && event.target && event.target.src;
2179
+ /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
2180
+ /******/ error.name = 'ChunkLoadError';
2181
+ /******/ error.type = errorType;
2182
+ /******/ error.request = realSrc;
2183
+ /******/ installedChunkData[1](error);
2184
+ /******/ }
2185
+ /******/ }
2186
+ /******/ };
2187
+ /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
2188
+ /******/ }
2189
+ /******/ }
2190
+ /******/ }
2191
+ /******/ };
2192
+ /******/
2193
+ /******/ // no prefetching
2194
+ /******/
2195
+ /******/ // no preloaded
2196
+ /******/
2197
+ /******/ // no HMR
2198
+ /******/
2199
+ /******/ // no HMR manifest
2200
+ /******/
2201
+ /******/ // no on chunks loaded
2202
+ /******/
2203
+ /******/ // install a JSONP callback for chunk loading
2204
+ /******/ var webpackJsonpCallback = function(parentChunkLoadingFunction, data) {
2205
+ /******/ var chunkIds = data[0];
2206
+ /******/ var moreModules = data[1];
2207
+ /******/ var runtime = data[2];
2208
+ /******/ // add "moreModules" to the modules object,
2209
+ /******/ // then flag all "chunkIds" as loaded and fire callback
2210
+ /******/ var moduleId, chunkId, i = 0;
2211
+ /******/ if(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {
2212
+ /******/ for(moduleId in moreModules) {
2213
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
2214
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
2215
+ /******/ }
2216
+ /******/ }
2217
+ /******/ if(runtime) var result = runtime(__webpack_require__);
2218
+ /******/ }
2219
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
2220
+ /******/ for(;i < chunkIds.length; i++) {
2221
+ /******/ chunkId = chunkIds[i];
2222
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
2223
+ /******/ installedChunks[chunkId][0]();
2224
+ /******/ }
2225
+ /******/ installedChunks[chunkId] = 0;
2226
+ /******/ }
2227
+ /******/
2228
+ /******/ }
2229
+ /******/
2230
+ /******/ var chunkLoadingGlobal = (typeof self !== 'undefined' ? self : this)["webpackChunkyc_ui2"] = (typeof self !== 'undefined' ? self : this)["webpackChunkyc_ui2"] || [];
2231
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
2232
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
2233
+ /******/ }();
2234
+ /******/
1778
2235
  /************************************************************************/
1779
2236
  var __webpack_exports__ = {};
1780
2237
  // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
@@ -1893,104 +2350,8 @@ var es_array_push = __webpack_require__(7658);
1893
2350
 
1894
2351
  ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue?vue&type=style&index=0&id=2248e29b&prod&lang=scss&scoped=true&
1895
2352
 
1896
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1897
- /* globals __VUE_SSR_CONTEXT__ */
1898
-
1899
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1900
- // This module is a runtime utility for cleaner component module output and will
1901
- // be included in the final webpack user bundle.
1902
-
1903
- function normalizeComponent(
1904
- scriptExports,
1905
- render,
1906
- staticRenderFns,
1907
- functionalTemplate,
1908
- injectStyles,
1909
- scopeId,
1910
- moduleIdentifier /* server only */,
1911
- shadowMode /* vue-cli only */
1912
- ) {
1913
- // Vue.extend constructor export interop
1914
- var options =
1915
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1916
-
1917
- // render functions
1918
- if (render) {
1919
- options.render = render
1920
- options.staticRenderFns = staticRenderFns
1921
- options._compiled = true
1922
- }
1923
-
1924
- // functional template
1925
- if (functionalTemplate) {
1926
- options.functional = true
1927
- }
1928
-
1929
- // scopedId
1930
- if (scopeId) {
1931
- options._scopeId = 'data-v-' + scopeId
1932
- }
1933
-
1934
- var hook
1935
- if (moduleIdentifier) {
1936
- // server build
1937
- hook = function (context) {
1938
- // 2.3 injection
1939
- context =
1940
- context || // cached call
1941
- (this.$vnode && this.$vnode.ssrContext) || // stateful
1942
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1943
- // 2.2 with runInNewContext: true
1944
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1945
- context = __VUE_SSR_CONTEXT__
1946
- }
1947
- // inject component styles
1948
- if (injectStyles) {
1949
- injectStyles.call(this, context)
1950
- }
1951
- // register component module identifier for async chunk inferrence
1952
- if (context && context._registeredComponents) {
1953
- context._registeredComponents.add(moduleIdentifier)
1954
- }
1955
- }
1956
- // used by ssr in case component is cached and beforeCreate
1957
- // never gets called
1958
- options._ssrRegister = hook
1959
- } else if (injectStyles) {
1960
- hook = shadowMode
1961
- ? function () {
1962
- injectStyles.call(
1963
- this,
1964
- (options.functional ? this.parent : this).$root.$options.shadowRoot
1965
- )
1966
- }
1967
- : injectStyles
1968
- }
1969
-
1970
- if (hook) {
1971
- if (options.functional) {
1972
- // for template-only hot-reload because in that case the render fn doesn't
1973
- // go through the normalizer
1974
- options._injectStyles = hook
1975
- // register for functional component in vue file
1976
- var originalRender = options.render
1977
- options.render = function renderWithStyleInjection(h, context) {
1978
- hook.call(context)
1979
- return originalRender(h, context)
1980
- }
1981
- } else {
1982
- // inject component registration as beforeCreate hook
1983
- var existing = options.beforeCreate
1984
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1985
- }
1986
- }
1987
-
1988
- return {
1989
- exports: scriptExports,
1990
- options: options
1991
- }
1992
- }
1993
-
2353
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
2354
+ var componentNormalizer = __webpack_require__(1001);
1994
2355
  ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue
1995
2356
 
1996
2357
 
@@ -2000,7 +2361,7 @@ function normalizeComponent(
2000
2361
 
2001
2362
  /* normalize component */
2002
2363
 
2003
- var component = normalizeComponent(
2364
+ var component = (0,componentNormalizer/* default */.Z)(
2004
2365
  components_YcSlideVerifyvue_type_script_lang_js_,
2005
2366
  render,
2006
2367
  staticRenderFns,
@@ -2012,8 +2373,8 @@ var component = normalizeComponent(
2012
2373
  )
2013
2374
 
2014
2375
  /* harmony default export */ var YcSlideVerify = (component.exports);
2015
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/index.vue?vue&type=template&id=e5df1a9e&scoped=true&
2016
- var YcCustomerServicevue_type_template_id_e5df1a9e_scoped_true_render = function render() {
2376
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/index.vue?vue&type=template&id=fd8ad9e4&scoped=true&
2377
+ var YcCustomerServicevue_type_template_id_fd8ad9e4_scoped_true_render = function render() {
2017
2378
  var _vm = this,
2018
2379
  _c = _vm._self._c;
2019
2380
  return _c('div', {
@@ -2059,7 +2420,7 @@ var YcCustomerServicevue_type_template_id_e5df1a9e_scoped_true_render = function
2059
2420
  }
2060
2421
  }, [_vm._m(1), _vm._m(2)])])], 1);
2061
2422
  };
2062
- var YcCustomerServicevue_type_template_id_e5df1a9e_scoped_true_staticRenderFns = [function () {
2423
+ var YcCustomerServicevue_type_template_id_fd8ad9e4_scoped_true_staticRenderFns = [function () {
2063
2424
  var _vm = this,
2064
2425
  _c = _vm._self._c;
2065
2426
  return _c('div', [_c('i', {
@@ -2077,7 +2438,7 @@ var YcCustomerServicevue_type_template_id_e5df1a9e_scoped_true_staticRenderFns =
2077
2438
  return _c('div', [_c('a', [_vm._v("在线客服")])]);
2078
2439
  }];
2079
2440
 
2080
- ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=template&id=e5df1a9e&scoped=true&
2441
+ ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=template&id=fd8ad9e4&scoped=true&
2081
2442
 
2082
2443
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/chat.vue?vue&type=template&id=005a6884&
2083
2444
  var chatvue_type_template_id_005a6884_render = function render() {
@@ -2200,94 +2561,13 @@ var chatvue_type_template_id_005a6884_render = function render() {
2200
2561
  };
2201
2562
  var chatvue_type_template_id_005a6884_staticRenderFns = [];
2202
2563
 
2203
- ;// CONCATENATED MODULE: ./src/components/YcCustomerService/chatMixin.js
2204
-
2205
- /* harmony default export */ var chatMixin = ({
2206
- props: {
2207
- visible: Boolean
2208
- },
2209
- data() {
2210
- return {
2211
- textareaValue: "",
2212
- regular: ['发票增值税率', '城市维护建设税', '教育费附加征收率'],
2213
- messagelist: [{
2214
- id: 'admin',
2215
- msg: ['您好,38号客服很高兴为你服务!'],
2216
- isActive: false
2217
- }
2218
- // {id: 'personal', msg: ['消费税?']}
2219
- ],
2220
-
2221
- questions: (__webpack_require__(6671)/* ["default"] */ .Z),
2222
- isActive: false
2223
- };
2224
- },
2225
- methods: {
2226
- close() {
2227
- this.$emit("update:visible", false);
2228
- },
2229
- carriageReturn() {
2230
- let e = window.event || arguments[0];
2231
- if ((e.key == "Enter" || e.code == "Enter" || e.keyCode == 13) && this.textareaValue) {
2232
- this.send();
2233
- }
2234
- },
2235
- send() {
2236
- if (!this.textareaValue.replace(/[^\w\u4E00-\u9FA5]/g, '')) return;
2237
- this.add(this.textareaValue, "personal", () => {
2238
- this.textareaValue = '';
2239
- });
2240
- this.search(this.textareaValue);
2241
- },
2242
- regularClick(msg) {
2243
- this.add(msg);
2244
- this.search(msg);
2245
- },
2246
- search(msg) {
2247
- const list = this.questions.filter(item => item.faq.replace(/[^\w\u4E00-\u9FA5]/g, '').toLowerCase().includes(msg.replace(/[^\w\u4E00-\u9FA5]/g, '').toLowerCase()));
2248
- let [vlaue, based] = ['', ''];
2249
- if (list.length > 1) {
2250
- vlaue = list.reduce((prev, curr) => [...prev, curr.faq], []);
2251
- } else if (list.length == 1) {
2252
- [vlaue, based] = [list[0].msg, list[0].based];
2253
- } else if (["您好", "你好"].includes(msg.replace(/[^\w\u4E00-\u9FA5]/g, ''))) {
2254
- vlaue = '您好!';
2255
- } else {
2256
- vlaue = '请提关键词问题?<br/> 比如: 税率<br/><br/><a href="tel:4000770168">客服热线:<span style="color: #FF575F;">400 0770 168</span></a>';
2257
- }
2258
- this.add(vlaue, 'admin', null, based);
2259
- },
2260
- add(msg, id = "personal", fun, based = "") {
2261
- this.messagelist.push({
2262
- id,
2263
- msg: Array.isArray(msg) ? msg : [msg],
2264
- based,
2265
- isActive: false
2266
- });
2267
- this.$nextTick(() => {
2268
- fun && fun();
2269
- // this.$refs.main.scrollTop += 70
2270
- this.$refs.main.scrollTop = this.$refs.main.scrollHeight;
2271
- // console.log(this.$refs.main.scrollTop, this.$refs.main.scrollHeight)
2272
- });
2273
- },
2274
-
2275
- enlarge() {
2276
- // this.$router.resolve({
2277
- // name: "/question"
2278
- // })
2279
- window.open('/question', '_blank');
2280
- },
2281
- handExpand(item) {
2282
- item.isActive = !item.isActive;
2283
- }
2284
- }
2285
- });
2564
+ // EXTERNAL MODULE: ./src/components/YcCustomerService/chatMixin.js
2565
+ var chatMixin = __webpack_require__(9668);
2286
2566
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/chat.vue?vue&type=script&lang=js&
2287
2567
 
2288
2568
  /* harmony default export */ var chatvue_type_script_lang_js_ = ({
2289
2569
  name: "ChatMini",
2290
- mixins: [chatMixin]
2570
+ mixins: [chatMixin/* default */.Z]
2291
2571
  });
2292
2572
  ;// CONCATENATED MODULE: ./src/components/YcCustomerService/chat.vue?vue&type=script&lang=js&
2293
2573
  /* harmony default export */ var YcCustomerService_chatvue_type_script_lang_js_ = (chatvue_type_script_lang_js_);
@@ -2305,7 +2585,7 @@ var chatvue_type_template_id_005a6884_staticRenderFns = [];
2305
2585
 
2306
2586
  /* normalize component */
2307
2587
 
2308
- var chat_component = normalizeComponent(
2588
+ var chat_component = (0,componentNormalizer/* default */.Z)(
2309
2589
  YcCustomerService_chatvue_type_script_lang_js_,
2310
2590
  chatvue_type_template_id_005a6884_render,
2311
2591
  chatvue_type_template_id_005a6884_staticRenderFns,
@@ -2339,23 +2619,29 @@ var chat_component = normalizeComponent(
2339
2619
  components: {
2340
2620
  chatVue: chat
2341
2621
  },
2342
- mounted() {
2622
+ created() {
2343
2623
  if (!window.whiteList) {
2344
2624
  window.whiteList = [];
2345
2625
  }
2346
2626
  if (!window.whiteList.includes("/question")) {
2347
2627
  window.whiteList.push("/question");
2348
2628
  }
2629
+ this.$router.addRoutes([{
2630
+ path: "/question",
2631
+ name: "question",
2632
+ component: resolve => __webpack_require__.e(/* AMD require */ 50).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(3050)]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this))['catch'](__webpack_require__.oe),
2633
+ hidden: true
2634
+ }]);
2349
2635
  console.log(window.whiteList);
2350
2636
  this.$refs.customer.style.display = "block";
2351
2637
  }
2352
2638
  });
2353
2639
  ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=script&lang=js&
2354
2640
  /* harmony default export */ var components_YcCustomerServicevue_type_script_lang_js_ = (YcCustomerServicevue_type_script_lang_js_);
2355
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=e5df1a9e&prod&lang=scss&scoped=true&
2641
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=fd8ad9e4&prod&lang=scss&scoped=true&
2356
2642
  // extracted by mini-css-extract-plugin
2357
2643
 
2358
- ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=e5df1a9e&prod&lang=scss&scoped=true&
2644
+ ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=fd8ad9e4&prod&lang=scss&scoped=true&
2359
2645
 
2360
2646
  ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue
2361
2647
 
@@ -2366,13 +2652,13 @@ var chat_component = normalizeComponent(
2366
2652
 
2367
2653
  /* normalize component */
2368
2654
 
2369
- var YcCustomerService_component = normalizeComponent(
2655
+ var YcCustomerService_component = (0,componentNormalizer/* default */.Z)(
2370
2656
  components_YcCustomerServicevue_type_script_lang_js_,
2371
- YcCustomerServicevue_type_template_id_e5df1a9e_scoped_true_render,
2372
- YcCustomerServicevue_type_template_id_e5df1a9e_scoped_true_staticRenderFns,
2657
+ YcCustomerServicevue_type_template_id_fd8ad9e4_scoped_true_render,
2658
+ YcCustomerServicevue_type_template_id_fd8ad9e4_scoped_true_staticRenderFns,
2373
2659
  false,
2374
2660
  null,
2375
- "e5df1a9e",
2661
+ "fd8ad9e4",
2376
2662
  null
2377
2663
 
2378
2664
  )