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