yc-ui2 0.1.3-beta13 → 0.1.3-beta16

Sign up to get free protection for your applications and to get access to all the features.
@@ -40060,6 +40060,14 @@ module.exports = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgI
40060
40060
 
40061
40061
  /***/ }),
40062
40062
 
40063
+ /***/ 4800:
40064
+ /***/ (function(module) {
40065
+
40066
+ "use strict";
40067
+ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACspJREFUeF7dnGtsHNUVx39n1684thPbJBDzaNrS4lQ8wktACyUJRDiACEkgJNAP8Am+tVJVNVGrUrWVIFLVglSp5dlCFZFApJRACykhBKJWeUFJCDSGKqTQhLywYzv2ete7c6ozdza249fuemfWcKSrHXvv3Hvuf87z3jMrREyqeg4wGzgXsOuzg5a9No7+BxwMWvb6U+BdEbG/IyMJeyZVjQFXAbcCtwCXjHPO3cDLQdshIt44xxv19tAAUtUlwG3AAmBaSIs4BrwCrBeRv4QxR1EBUlUb707gl8A3w2B4lDE/BH4KrBMRLdbcRQNIVecAvwEuLRZzBY6zC1gpIpsKvH/QbeMGSFUNEAPGAJpIZAAZUAZYwVQwQIE6PQj8DCh4nII5z+1GU7Wfm8oXqnYFLUxV64DVgWfKjdXS9jKvd4+IdObLRt4AqeoFwIuAfX6RqBW4SUT+mw/TeQGkqvPMpQImQV9E+hxYKiKbc2U+Z4BU9YfAKiCe6+ATtF8G+JGI/DYX/nICSFVvAv4GWFT8ZSCLvm8VEQsyR6UxAVJVC/h2foHVaiQAOiwFEhGzTSPSqAAF3srAiToqHuvBFut7A8dAMrCGpREBUtVy4CWz/MXiZoKOY2pm6jZs0jsaQH8A7p+giyo2W4+KyA+GG3RYgIK86o1iczHseKrQ1wfpNNh1LAbl5VBWFsn0AyaZKyJbTp90JIC2AteGyqHnwcGDsGcPHD4MPQmICVRUQG0tzPwKzPoWTJkSKhsDBn9TRIbkk0MAUtXbg2Aw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7G57FZFI6qPTR47y+XPryBw8hGfgVFXROH8e1ddeHWZ5y1DgVTfK5AYr4hhEwwOUbLuINFarGAl5vb0kjx5DU32UN9T7LXIq4yKpbNibE0DOYLc9jPLjyBktxYTCKqlusBPmITRapX2M7rYNwbvupWA7qjk3Mrnh5rxfRfClSNumcNLbhmAVIF8+Uv2QmtiVIo0jvqo59utQyePNpNRAij5PC/ORKJ2Uc6VUTbP37UekMQHyJan72C14mLqFWqAcJh6nje0hsZulpnHjWHPmBJAPUufRFcgELJMZa4XDfa+slLrpD+dya84AOZAOL0TlWSSEathcuB1vH1OrmC6S2rOK/1JvljftPN6Mpl9BZOZ4+Y34/laILZS6aaO+gnk6T3lJUD9InY1oj+0fhVpmWkQAN1Nbvmg0bzXSXAUB5EIAjdN5+HeAvcIwcUn5NVPOWpHdvsiX0YIBOiVNXZ/NwfMeArk638nD7a/biMVWSu2MIW8R5jPvuAHqV7uDC8nIrxAuzIeBEPq+g/ATmdI06MW4QucpGkCB2sXoPLQU1V+AfKNQpgq7Tz9C5EHqmtYU+ksvw81bVIAGTqDtny4GWYTozSANhS16rLu0DbWf6Iqvk/qmif8TXcMtxzfm7Z99GzK3IWK/aTbeHymw1OAliG1g6ox/FGp8x4I++31oEjQSA6pHaziROh88O3yfCRo0mYnatf/e6gHQA2Cf1rwDEDvA1Ir/iEw/meviitHv/zpRwnzvl7SBAAAAAElFTkSuQmCC";
40068
+
40069
+ /***/ }),
40070
+
40063
40071
  /***/ 1061:
40064
40072
  /***/ (function(module) {
40065
40073
 
@@ -40927,8 +40935,8 @@ var YcCustomerServicevue_type_template_id_20a37cb1_scoped_true_staticRenderFns =
40927
40935
 
40928
40936
  ;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=template&id=20a37cb1&scoped=true&
40929
40937
 
40930
- ;// 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=616710ee&scoped=true&
40931
- var chatvue_type_template_id_616710ee_scoped_true_render = function render() {
40938
+ ;// 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=9b21882e&scoped=true&
40939
+ var chatvue_type_template_id_9b21882e_scoped_true_render = function render() {
40932
40940
  var _vm = this,
40933
40941
  _c = _vm._self._c;
40934
40942
  return _c('div', {
@@ -41046,9 +41054,9 @@ var chatvue_type_template_id_616710ee_scoped_true_render = function render() {
41046
41054
  }
41047
41055
  }, [_vm._v("发送")])], 1);
41048
41056
  };
41049
- var chatvue_type_template_id_616710ee_scoped_true_staticRenderFns = [];
41057
+ var chatvue_type_template_id_9b21882e_scoped_true_staticRenderFns = [];
41050
41058
 
41051
- ;// CONCATENATED MODULE: ./src/components/YcCustomerService/chat.vue?vue&type=template&id=616710ee&scoped=true&
41059
+ ;// CONCATENATED MODULE: ./src/components/YcCustomerService/chat.vue?vue&type=template&id=9b21882e&scoped=true&
41052
41060
 
41053
41061
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.typed-array.to-reversed.js
41054
41062
  var es_typed_array_to_reversed = __webpack_require__(1439);
@@ -44082,7 +44090,7 @@ axios.default = axios;
44082
44090
  /* harmony default export */ var lib_axios = (axios);
44083
44091
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
44084
44092
  var element_ui_common = __webpack_require__(8499);
44085
- ;// CONCATENATED MODULE: ./src/utils/request2.js
44093
+ ;// CONCATENATED MODULE: ./src/utils/request.js
44086
44094
 
44087
44095
 
44088
44096
  lib_axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
@@ -44122,8 +44130,8 @@ service.interceptors.response.use(res => {
44122
44130
  });
44123
44131
  return Promise.reject(error);
44124
44132
  });
44125
- /* harmony default export */ var request2 = (service);
44126
- ;// CONCATENATED MODULE: ./src/api2/customerService.js
44133
+ /* harmony default export */ var utils_request = (service);
44134
+ ;// CONCATENATED MODULE: ./src/api/customerService.js
44127
44135
 
44128
44136
 
44129
44137
  /**
@@ -44132,7 +44140,7 @@ service.interceptors.response.use(res => {
44132
44140
  * @returns {[]}
44133
44141
  */
44134
44142
  function getProblemTypeAndProblem(aiServiceId) {
44135
- return request({
44143
+ return utils_request({
44136
44144
  url: '/aiService/discourse/getProblemTypeAndProblem/' + aiServiceId,
44137
44145
  method: 'GET'
44138
44146
  // params: query
@@ -44148,7 +44156,7 @@ function getProblemTypeAndProblem(aiServiceId) {
44148
44156
  * @returns {{}}
44149
44157
  */
44150
44158
  function findDataByProblem(data) {
44151
- return request2({
44159
+ return utils_request({
44152
44160
  url: '/aiService/discourse/findDataByProblem',
44153
44161
  method: 'POST',
44154
44162
  data
@@ -44163,7 +44171,7 @@ function findDataByProblem(data) {
44163
44171
  * @returns
44164
44172
  */
44165
44173
  function findMaxNumData(aiServiceId) {
44166
- return request2({
44174
+ return utils_request({
44167
44175
  url: '/aiService/discourse/findMaxNumData/' + aiServiceId,
44168
44176
  method: 'GET'
44169
44177
  });
@@ -44252,7 +44260,11 @@ function findServiceFeeAi() {
44252
44260
  problem: msg.replace(/\n/g, ""),
44253
44261
  aiServiceId: 1
44254
44262
  }).then(res => {
44255
- this.add(res?.data?.answer || "您好", 'admin', null, res?.data?.based);
44263
+ if (res && res.data && res.data.answer && res.data.based) {
44264
+ this.add(res.data.answer || "您好", 'admin', null, res.data.based);
44265
+ } else {
44266
+ this.add("您好", 'admin', null, "");
44267
+ }
44256
44268
  });
44257
44269
  },
44258
44270
  add(msg, id = "personal", fun, based = "") {
@@ -44308,10 +44320,10 @@ function findServiceFeeAi() {
44308
44320
  });
44309
44321
  ;// CONCATENATED MODULE: ./src/components/YcCustomerService/chat.vue?vue&type=script&lang=js&
44310
44322
  /* harmony default export */ var YcCustomerService_chatvue_type_script_lang_js_ = (chatvue_type_script_lang_js_);
44311
- ;// 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/chat.vue?vue&type=style&index=0&id=616710ee&prod&lang=scss&scoped=true&
44323
+ ;// 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/chat.vue?vue&type=style&index=0&id=9b21882e&prod&lang=scss&scoped=true&
44312
44324
  // extracted by mini-css-extract-plugin
44313
44325
 
44314
- ;// CONCATENATED MODULE: ./src/components/YcCustomerService/chat.vue?vue&type=style&index=0&id=616710ee&prod&lang=scss&scoped=true&
44326
+ ;// CONCATENATED MODULE: ./src/components/YcCustomerService/chat.vue?vue&type=style&index=0&id=9b21882e&prod&lang=scss&scoped=true&
44315
44327
 
44316
44328
  ;// CONCATENATED MODULE: ./src/components/YcCustomerService/chat.vue
44317
44329
 
@@ -44324,11 +44336,11 @@ function findServiceFeeAi() {
44324
44336
 
44325
44337
  var chat_component = normalizeComponent(
44326
44338
  YcCustomerService_chatvue_type_script_lang_js_,
44327
- chatvue_type_template_id_616710ee_scoped_true_render,
44328
- chatvue_type_template_id_616710ee_scoped_true_staticRenderFns,
44339
+ chatvue_type_template_id_9b21882e_scoped_true_render,
44340
+ chatvue_type_template_id_9b21882e_scoped_true_staticRenderFns,
44329
44341
  false,
44330
44342
  null,
44331
- "616710ee",
44343
+ "9b21882e",
44332
44344
  null
44333
44345
 
44334
44346
  )
@@ -44397,8 +44409,226 @@ var YcCustomerService_component = normalizeComponent(
44397
44409
  )
44398
44410
 
44399
44411
  /* harmony default export */ var YcCustomerService = (YcCustomerService_component.exports);
44400
- ;// 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/YcCA/index.vue?vue&type=template&id=4143c42c&scoped=true&
44401
- var YcCAvue_type_template_id_4143c42c_scoped_true_render = function render() {
44412
+ ;// 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/YcQuestion/index.vue?vue&type=template&id=5c16b181&scoped=true&
44413
+ var YcQuestionvue_type_template_id_5c16b181_scoped_true_render = function render() {
44414
+ var _vm = this,
44415
+ _c = _vm._self._c;
44416
+ return _c('div', {
44417
+ staticClass: "YcQuestion"
44418
+ }, [_c('div', {
44419
+ staticClass: "chatPage"
44420
+ }, [_c('header', {
44421
+ staticStyle: {
44422
+ "background": "url(/cloud-img/customerService/chatTop.png) center",
44423
+ "background-size": "cover"
44424
+ }
44425
+ }, [_c('div', [_c('h3', [_vm._v(_vm._s(_vm.title))]), _c('span', [_vm._v("Problem Help")])]), _c('p', [_vm._v(_vm._s(_vm.commit))])]), _c('div', {
44426
+ staticClass: "main"
44427
+ }, [_c('div', [_c('main', {
44428
+ ref: "main"
44429
+ }, [_c('p', [_vm._v("今天" + _vm._s(_vm.currData))]), _vm._l(_vm.messagelist, function (item, index) {
44430
+ return _c('div', {
44431
+ key: index,
44432
+ class: ['message', item.id]
44433
+ }, [_c('img', {
44434
+ staticClass: "avatar",
44435
+ attrs: {
44436
+ "src": __webpack_require__(7021)(`./${item.id}.jpg`)
44437
+ }
44438
+ }), _c('div', {
44439
+ staticClass: "content",
44440
+ attrs: {
44441
+ "data-before": `${_vm.title}【${_vm.id}号为您服务】`
44442
+ }
44443
+ }, [_vm._l(item.msg, function (msg, index) {
44444
+ return _c('span', {
44445
+ key: msg + index,
44446
+ class: item.msg.length > 1 ? 'href' : '',
44447
+ domProps: {
44448
+ "innerHTML": _vm._s((item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg)
44449
+ },
44450
+ on: {
44451
+ "click": function ($event) {
44452
+ item.msg.length > 1 && _vm.regularClick(msg);
44453
+ }
44454
+ }
44455
+ });
44456
+ }), item.based ? _c('div', {
44457
+ staticClass: "based",
44458
+ on: {
44459
+ "click": function ($event) {
44460
+ $event.preventDefault();
44461
+ return _vm.handExpand(item);
44462
+ }
44463
+ }
44464
+ }, [_c('span', [_vm._v("依据")]), _c('span', {
44465
+ class: {
44466
+ 'is-active': item.isActive
44467
+ }
44468
+ }, [_vm._v(_vm._s(item.based)), _c('i', {
44469
+ staticClass: "el-icon-d-arrow-right"
44470
+ })])]) : _vm._e()], 2)]);
44471
+ })], 2), _c('footer', [_c('el-input', {
44472
+ attrs: {
44473
+ "type": "textarea",
44474
+ "maxlength": "500",
44475
+ "autosize": {
44476
+ minRows: 6,
44477
+ maxRows: 6
44478
+ },
44479
+ "autofocus": "true",
44480
+ "resize": "none",
44481
+ "placeholder": "请输入你要咨询的问题"
44482
+ },
44483
+ nativeOn: {
44484
+ "keyup": function ($event) {
44485
+ if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
44486
+ return _vm.carriageReturn.apply(null, arguments);
44487
+ }
44488
+ },
44489
+ model: {
44490
+ value: _vm.textareaValue,
44491
+ callback: function ($$v) {
44492
+ _vm.textareaValue = $$v;
44493
+ },
44494
+ expression: "textareaValue"
44495
+ }
44496
+ }), _c('el-button', {
44497
+ style: !_vm.textareaValue ? 'background-color: #F7F7F9;color: #FF575F;border-color: transparent;' : '',
44498
+ attrs: {
44499
+ "type": "primary",
44500
+ "disabled": !_vm.textareaValue
44501
+ },
44502
+ on: {
44503
+ "click": _vm.send
44504
+ }
44505
+ }, [_vm._v("发送")])], 1)]), _c('aside', [_c('el-collapse', {
44506
+ attrs: {
44507
+ "accordion": ""
44508
+ },
44509
+ model: {
44510
+ value: _vm.activeNames,
44511
+ callback: function ($$v) {
44512
+ _vm.activeNames = $$v;
44513
+ },
44514
+ expression: "activeNames"
44515
+ }
44516
+ }, _vm._l(_vm.questionsList, function ({
44517
+ discourseVoList,
44518
+ answerTypeId,
44519
+ answerType
44520
+ }) {
44521
+ return _c('el-collapse-item', {
44522
+ key: answerTypeId,
44523
+ attrs: {
44524
+ "name": answerTypeId
44525
+ }
44526
+ }, [_c('template', {
44527
+ slot: "title"
44528
+ }, [_c('img', {
44529
+ attrs: {
44530
+ "src": __webpack_require__(4800)
44531
+ }
44532
+ }), _vm._v(_vm._s(answerType) + " ")]), _vm._l(discourseVoList, function ({
44533
+ problem,
44534
+ problemId
44535
+ }) {
44536
+ return _c('div', {
44537
+ key: problemId,
44538
+ domProps: {
44539
+ "innerHTML": _vm._s(problem)
44540
+ },
44541
+ on: {
44542
+ "click": function ($event) {
44543
+ return _vm.regularClick(problem);
44544
+ }
44545
+ }
44546
+ });
44547
+ })], 2);
44548
+ }), 1)], 1)])])]);
44549
+ };
44550
+ var YcQuestionvue_type_template_id_5c16b181_scoped_true_staticRenderFns = [];
44551
+
44552
+ ;// CONCATENATED MODULE: ./src/components/YcQuestion/index.vue?vue&type=template&id=5c16b181&scoped=true&
44553
+
44554
+ ;// 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/YcQuestion/index.vue?vue&type=script&lang=js&
44555
+
44556
+
44557
+ /* harmony default export */ var YcQuestionvue_type_script_lang_js_ = ({
44558
+ name: "YcQuestion",
44559
+ mixins: [chatMixin],
44560
+ data() {
44561
+ return {
44562
+ activeNames: [1],
44563
+ questionsList: []
44564
+ };
44565
+ },
44566
+ computed: {
44567
+ currData() {
44568
+ const currData = new Date();
44569
+ return `${currData.getHours()}:${currData.getMinutes()}`;
44570
+ }
44571
+ // questionsList() {
44572
+ // return this.questions.reduce((prev, curr) => {
44573
+ // // eslint-disable-next-line no-prototype-builtins
44574
+ // if (prev.hasOwnProperty(curr.type)) {
44575
+ // prev[curr.type].push(curr.faq)
44576
+ // } else {
44577
+ // prev[curr.type] = [curr.faq]
44578
+ // }
44579
+ // return prev
44580
+ // }, {})
44581
+ // },
44582
+ },
44583
+
44584
+ watch: {
44585
+ id(newVal) {
44586
+ this.getProblemTypeAndProblem(newVal);
44587
+ }
44588
+ },
44589
+ created() {
44590
+ this.getProblemTypeAndProblem(this.id);
44591
+ },
44592
+ methods: {
44593
+ getProblemTypeAndProblem(id) {
44594
+ if (id) getProblemTypeAndProblem(id).then(({
44595
+ data
44596
+ }) => {
44597
+ this.questionsList = data;
44598
+ });
44599
+ }
44600
+ }
44601
+ });
44602
+ ;// CONCATENATED MODULE: ./src/components/YcQuestion/index.vue?vue&type=script&lang=js&
44603
+ /* harmony default export */ var components_YcQuestionvue_type_script_lang_js_ = (YcQuestionvue_type_script_lang_js_);
44604
+ ;// 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/YcQuestion/index.vue?vue&type=style&index=0&id=5c16b181&prod&lang=scss&scoped=true&
44605
+ // extracted by mini-css-extract-plugin
44606
+
44607
+ ;// CONCATENATED MODULE: ./src/components/YcQuestion/index.vue?vue&type=style&index=0&id=5c16b181&prod&lang=scss&scoped=true&
44608
+
44609
+ ;// CONCATENATED MODULE: ./src/components/YcQuestion/index.vue
44610
+
44611
+
44612
+
44613
+ ;
44614
+
44615
+
44616
+ /* normalize component */
44617
+
44618
+ var YcQuestion_component = normalizeComponent(
44619
+ components_YcQuestionvue_type_script_lang_js_,
44620
+ YcQuestionvue_type_template_id_5c16b181_scoped_true_render,
44621
+ YcQuestionvue_type_template_id_5c16b181_scoped_true_staticRenderFns,
44622
+ false,
44623
+ null,
44624
+ "5c16b181",
44625
+ null
44626
+
44627
+ )
44628
+
44629
+ /* harmony default export */ var YcQuestion = (YcQuestion_component.exports);
44630
+ ;// 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/YcCA/index.vue?vue&type=template&id=eeb04946&scoped=true&
44631
+ var YcCAvue_type_template_id_eeb04946_scoped_true_render = function render() {
44402
44632
  var _vm = this,
44403
44633
  _c = _vm._self._c;
44404
44634
  return _c('div', [_c('el-form', {
@@ -44530,9 +44760,9 @@ var YcCAvue_type_template_id_4143c42c_scoped_true_render = function render() {
44530
44760
  }
44531
44761
  }, [_vm._v("确 定")])], 1)])], 1);
44532
44762
  };
44533
- var YcCAvue_type_template_id_4143c42c_scoped_true_staticRenderFns = [];
44763
+ var YcCAvue_type_template_id_eeb04946_scoped_true_staticRenderFns = [];
44534
44764
 
44535
- ;// CONCATENATED MODULE: ./src/components/YcCA/index.vue?vue&type=template&id=4143c42c&scoped=true&
44765
+ ;// CONCATENATED MODULE: ./src/components/YcCA/index.vue?vue&type=template&id=eeb04946&scoped=true&
44536
44766
 
44537
44767
  // EXTERNAL MODULE: ./src/utils/mTokenPlugin/mToken.js
44538
44768
  var mToken = __webpack_require__(7899);
@@ -46390,10 +46620,10 @@ function formateTime(dateStr) {
46390
46620
  });
46391
46621
  ;// CONCATENATED MODULE: ./src/components/YcCA/index.vue?vue&type=script&lang=js&
46392
46622
  /* harmony default export */ var components_YcCAvue_type_script_lang_js_ = (YcCAvue_type_script_lang_js_);
46393
- ;// 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/YcCA/index.vue?vue&type=style&index=0&id=4143c42c&prod&lang=scss&scoped=true&
46623
+ ;// 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/YcCA/index.vue?vue&type=style&index=0&id=eeb04946&prod&lang=scss&scoped=true&
46394
46624
  // extracted by mini-css-extract-plugin
46395
46625
 
46396
- ;// CONCATENATED MODULE: ./src/components/YcCA/index.vue?vue&type=style&index=0&id=4143c42c&prod&lang=scss&scoped=true&
46626
+ ;// CONCATENATED MODULE: ./src/components/YcCA/index.vue?vue&type=style&index=0&id=eeb04946&prod&lang=scss&scoped=true&
46397
46627
 
46398
46628
  ;// CONCATENATED MODULE: ./src/components/YcCA/index.vue
46399
46629
 
@@ -46406,11 +46636,11 @@ function formateTime(dateStr) {
46406
46636
 
46407
46637
  var YcCA_component = normalizeComponent(
46408
46638
  components_YcCAvue_type_script_lang_js_,
46409
- YcCAvue_type_template_id_4143c42c_scoped_true_render,
46410
- YcCAvue_type_template_id_4143c42c_scoped_true_staticRenderFns,
46639
+ YcCAvue_type_template_id_eeb04946_scoped_true_render,
46640
+ YcCAvue_type_template_id_eeb04946_scoped_true_staticRenderFns,
46411
46641
  false,
46412
46642
  null,
46413
- "4143c42c",
46643
+ "eeb04946",
46414
46644
  null
46415
46645
 
46416
46646
  )
@@ -46419,11 +46649,9 @@ var YcCA_component = normalizeComponent(
46419
46649
  ;// CONCATENATED MODULE: ./src/packages/index.js
46420
46650
 
46421
46651
 
46422
- // import YcQuestion from 'comp/YcQuestion'
46423
46652
 
46424
- const components = [YcSlideVerify, YcCustomerService,
46425
- // YcQuestion,
46426
- YcCA];
46653
+
46654
+ const components = [YcSlideVerify, YcCustomerService, YcQuestion, YcCA];
46427
46655
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
46428
46656
  const install = function (Vue) {
46429
46657
  // 遍历注册全局组件