yc-ui2 0.1.1-beta11 → 0.1.1-beta13

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,112 +2,6 @@
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
-
111
5
  /***/ 9662:
112
6
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
113
7
 
@@ -1676,96 +1570,6 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1676
1570
  });
1677
1571
 
1678
1572
 
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
-
1769
1573
  /***/ }),
1770
1574
 
1771
1575
  /***/ 5066:
@@ -1915,22 +1719,7 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1915
1719
  /******/ return module.exports;
1916
1720
  /******/ }
1917
1721
  /******/
1918
- /******/ // expose the modules object (__webpack_modules__)
1919
- /******/ __webpack_require__.m = __webpack_modules__;
1920
- /******/
1921
1722
  /************************************************************************/
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
- /******/
1934
1723
  /******/ /* webpack/runtime/define property getters */
1935
1724
  /******/ !function() {
1936
1725
  /******/ // define getter functions for harmony exports
@@ -1943,37 +1732,6 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1943
1732
  /******/ };
1944
1733
  /******/ }();
1945
1734
  /******/
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
- /******/
1977
1735
  /******/ /* webpack/runtime/global */
1978
1736
  /******/ !function() {
1979
1737
  /******/ __webpack_require__.g = (function() {
@@ -1991,52 +1749,6 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1991
1749
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
1992
1750
  /******/ }();
1993
1751
  /******/
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
- /******/
2040
1752
  /******/ /* webpack/runtime/make namespace object */
2041
1753
  /******/ !function() {
2042
1754
  /******/ // define __esModule on exports
@@ -2053,175 +1765,6 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
2053
1765
  /******/ __webpack_require__.p = "";
2054
1766
  /******/ }();
2055
1767
  /******/
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
- /******/
2225
1768
  /************************************************************************/
2226
1769
  var __webpack_exports__ = {};
2227
1770
  // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
@@ -2340,8 +1883,104 @@ var es_array_push = __webpack_require__(7658);
2340
1883
 
2341
1884
  ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue?vue&type=style&index=0&id=2248e29b&prod&lang=scss&scoped=true&
2342
1885
 
2343
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
2344
- var componentNormalizer = __webpack_require__(1001);
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
+
2345
1984
  ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue
2346
1985
 
2347
1986
 
@@ -2351,7 +1990,7 @@ var componentNormalizer = __webpack_require__(1001);
2351
1990
 
2352
1991
  /* normalize component */
2353
1992
 
2354
- var component = (0,componentNormalizer/* default */.Z)(
1993
+ var component = normalizeComponent(
2355
1994
  components_YcSlideVerifyvue_type_script_lang_js_,
2356
1995
  render,
2357
1996
  staticRenderFns,
@@ -2363,8 +2002,8 @@ var component = (0,componentNormalizer/* default */.Z)(
2363
2002
  )
2364
2003
 
2365
2004
  /* harmony default export */ var YcSlideVerify = (component.exports);
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=6c2807a4&scoped=true&
2367
- var YcCustomerServicevue_type_template_id_6c2807a4_scoped_true_render = function render() {
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=777e6b16&scoped=true&
2006
+ var YcCustomerServicevue_type_template_id_777e6b16_scoped_true_render = function render() {
2368
2007
  var _vm = this,
2369
2008
  _c = _vm._self._c;
2370
2009
  return _c('div', {
@@ -2410,7 +2049,7 @@ var YcCustomerServicevue_type_template_id_6c2807a4_scoped_true_render = function
2410
2049
  }
2411
2050
  }, [_vm._m(1), _vm._m(2)])])], 1);
2412
2051
  };
2413
- var YcCustomerServicevue_type_template_id_6c2807a4_scoped_true_staticRenderFns = [function () {
2052
+ var YcCustomerServicevue_type_template_id_777e6b16_scoped_true_staticRenderFns = [function () {
2414
2053
  var _vm = this,
2415
2054
  _c = _vm._self._c;
2416
2055
  return _c('div', [_c('i', {
@@ -2428,7 +2067,7 @@ var YcCustomerServicevue_type_template_id_6c2807a4_scoped_true_staticRenderFns =
2428
2067
  return _c('div', [_c('a', [_vm._v("在线客服")])]);
2429
2068
  }];
2430
2069
 
2431
- ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=template&id=6c2807a4&scoped=true&
2070
+ ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=template&id=777e6b16&scoped=true&
2432
2071
 
2433
2072
  ;// 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&
2434
2073
  var chatvue_type_template_id_005a6884_render = function render() {
@@ -2551,13 +2190,94 @@ var chatvue_type_template_id_005a6884_render = function render() {
2551
2190
  };
2552
2191
  var chatvue_type_template_id_005a6884_staticRenderFns = [];
2553
2192
 
2554
- // EXTERNAL MODULE: ./src/components/YcCustomerService/chatMixin.js
2555
- var chatMixin = __webpack_require__(7014);
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
+ });
2556
2276
  ;// 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&
2557
2277
 
2558
2278
  /* harmony default export */ var chatvue_type_script_lang_js_ = ({
2559
2279
  name: "ChatMini",
2560
- mixins: [chatMixin/* default */.Z]
2280
+ mixins: [chatMixin]
2561
2281
  });
2562
2282
  ;// CONCATENATED MODULE: ./src/components/YcCustomerService/chat.vue?vue&type=script&lang=js&
2563
2283
  /* harmony default export */ var YcCustomerService_chatvue_type_script_lang_js_ = (chatvue_type_script_lang_js_);
@@ -2575,7 +2295,7 @@ var chatMixin = __webpack_require__(7014);
2575
2295
 
2576
2296
  /* normalize component */
2577
2297
 
2578
- var chat_component = (0,componentNormalizer/* default */.Z)(
2298
+ var chat_component = normalizeComponent(
2579
2299
  YcCustomerService_chatvue_type_script_lang_js_,
2580
2300
  chatvue_type_template_id_005a6884_render,
2581
2301
  chatvue_type_template_id_005a6884_staticRenderFns,
@@ -2589,15 +2309,11 @@ var chat_component = (0,componentNormalizer/* default */.Z)(
2589
2309
  /* harmony default export */ var chat = (chat_component.exports);
2590
2310
  ;// 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/index.vue?vue&type=script&lang=js&
2591
2311
 
2592
- if (!window.whiteList) {
2593
- window.whiteList = [];
2594
- }
2595
- if (!window.whiteList.includes("/question")) {
2596
- window.whiteList.push("/question");
2597
- }
2598
-
2599
2312
  /* harmony default export */ var YcCustomerServicevue_type_script_lang_js_ = ({
2600
2313
  name: "YcCustomerService",
2314
+ components: {
2315
+ chatVue: chat
2316
+ },
2601
2317
  data() {
2602
2318
  return {
2603
2319
  visible: false
@@ -2612,26 +2328,28 @@ if (!window.whiteList.includes("/question")) {
2612
2328
  }
2613
2329
  }
2614
2330
  },
2615
- components: {
2616
- chatVue: chat
2617
- },
2618
- created() {
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
- }]);
2625
- console.log(window.whiteList);
2331
+ // created() {
2332
+ // this.$router.addRoutes([
2333
+ // {
2334
+ // path: "/question",
2335
+ // name: "question",
2336
+ // component: (resolve) =>
2337
+ // require(["comp/YcCustomerService/question"], resolve),
2338
+ // hidden: true,
2339
+ // },
2340
+ // ])
2341
+ // console.log(window.whiteList)
2342
+ // },
2343
+ mounted() {
2626
2344
  this.$refs.customer.style.display = "block";
2627
2345
  }
2628
2346
  });
2629
2347
  ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=script&lang=js&
2630
2348
  /* harmony default export */ var components_YcCustomerServicevue_type_script_lang_js_ = (YcCustomerServicevue_type_script_lang_js_);
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=6c2807a4&prod&lang=scss&scoped=true&
2349
+ ;// 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=777e6b16&prod&lang=scss&scoped=true&
2632
2350
  // extracted by mini-css-extract-plugin
2633
2351
 
2634
- ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=6c2807a4&prod&lang=scss&scoped=true&
2352
+ ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=777e6b16&prod&lang=scss&scoped=true&
2635
2353
 
2636
2354
  ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue
2637
2355
 
@@ -2642,13 +2360,13 @@ if (!window.whiteList.includes("/question")) {
2642
2360
 
2643
2361
  /* normalize component */
2644
2362
 
2645
- var YcCustomerService_component = (0,componentNormalizer/* default */.Z)(
2363
+ var YcCustomerService_component = normalizeComponent(
2646
2364
  components_YcCustomerServicevue_type_script_lang_js_,
2647
- YcCustomerServicevue_type_template_id_6c2807a4_scoped_true_render,
2648
- YcCustomerServicevue_type_template_id_6c2807a4_scoped_true_staticRenderFns,
2365
+ YcCustomerServicevue_type_template_id_777e6b16_scoped_true_render,
2366
+ YcCustomerServicevue_type_template_id_777e6b16_scoped_true_staticRenderFns,
2649
2367
  false,
2650
2368
  null,
2651
- "6c2807a4",
2369
+ "777e6b16",
2652
2370
  null
2653
2371
 
2654
2372
  )