yc-ui2 0.1.1-beta07 → 0.1.1-beta09
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/css/25.6e3f4a2f.css +1 -0
- package/dist/css/50.6a139aa9.css +2 -0
- package/dist/css/525.6a139aa9.css +2 -0
- package/dist/yc-ui2.common.525.js +216 -0
- package/dist/yc-ui2.common.525.js.map +1 -0
- package/dist/yc-ui2.common.js +488 -196
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.css +1 -1
- package/dist/yc-ui2.umd.50.js +216 -0
- package/dist/yc-ui2.umd.50.js.map +1 -0
- package/dist/yc-ui2.umd.js +488 -196
- package/dist/yc-ui2.umd.js.map +1 -1
- package/dist/yc-ui2.umd.min.25.js +2 -0
- package/dist/yc-ui2.umd.min.25.js.map +1 -0
- package/dist/yc-ui2.umd.min.js +1 -1
- package/dist/yc-ui2.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/router/index.js +0 -13
package/dist/yc-ui2.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.el-dialog__wrapper[data-v-2248e29b]{display:flex;justify-content:center;align-items:center}[data-v-2248e29b] .el-dialog{margin-top:0!important;border-radius:8px}[data-v-2248e29b] .el-dialog__header{background-color:#f2f6fc;border-radius:8px 8px 0 0}.el-dialog__body[data-v-2248e29b]{display:flex;justify-content:center}.chat{width:350px;height:480px;position:fixed;bottom:10px;right:55px;z-index:2001;background-color:#fff;border-radius:12px;border:1px solid #e6ebf5;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);overflow:hidden}.chat>header{display:flex;justify-content:flex-start;align-items:center;background-color:#ff575f;font-size:16px;padding:10px;font-weight:400;color:#fafdff}.chat>header>img{width:44px;height:44px;border-radius:50%;margin-right:10px;transition:all .3s linear}.chat>header>img:focus,.chat>header>img:hover{transform:scale(1.2) rotate(15deg)}.chat>header i{cursor:pointer;position:absolute;top:5px;width:20px;height:20px;border-radius:6px;display:flex;justify-content:center;align-items:center;transition:all .3s linear}.chat>header i:focus,.chat>header i:hover{transform:scale(1.2);background-color:hsla(7,100%,74%,.8)}.chat>header i.el-icon-close{right:10px}.chat>header i.icon-enlarge{right:35px}.chat>header i>img{width:12px}.chat>main{width:100%;height:60%;overflow-y:auto;padding-bottom:20px;background-color:#f7f7f9}.chat>main::-webkit-scrollbar{width:6px}.chat>main::-webkit-scrollbar-track{background:#efefef;border-radius:2px}.chat>main::-webkit-scrollbar-thumb{background:#ff8879;border-radius:10px}.chat>main::-webkit-scrollbar-thumb:hover{background:#ff755d}.chat>main .message{display:flex;gap:15px;position:relative;margin:20px 5px 0 5px;opacity:0}.chat>main .message .avatar{width:30px;height:30px;border-radius:50%}.chat>main .message .content{width:-moz-fit-content;width:fit-content;max-width:250px;font-weight:400;font-size:12px;color:#4c4c4d;line-height:20px;padding:10px;border-radius:10px;background-color:#fff}.chat>main .message .content .href{cursor:pointer;display:block;color:#ff575f;margin-bottom:.5rem}.chat>main .message .content .href:hover{text-decoration:underline}.chat>main .message .content>.based{cursor:pointer;color:#909399;display:flex;align-items:flex-start;justify-content:flex-start;border-top:1px solid #ebebed;padding-top:5px;margin-top:5px;gap:5px}.chat>main .message .content>.based>span:first-child{white-space:nowrap;color:#4c4c4d;border-radius:10px;background-color:#eeeef0;padding:0 7px}.chat>main .message .content>.based>span:last-child{width:100%;position:relative;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:12px}.chat>main .message .content>.based>span:last-child .el-icon-d-arrow-right{position:absolute;right:0;bottom:5px;transform:rotate(90deg);transition:all .35s linear}.chat>main .message .content>.based>span:last-child.is-active{overflow:visible;white-space:normal}.chat>main .message .content>.based>span:last-child.is-active .el-icon-d-arrow-right{transform:rotate(270deg)}.chat>main .message .content>.based>span:last-child:hover{color:#ff575f}.chat>main .message.admin{animation:animation01 .3s linear 1.5s forwards}.chat>main .message.admin .content:before{content:"";position:absolute;top:2px;left:37px;transform:rotate(-45deg);border-width:10px;border-style:solid;border-color:transparent transparent transparent #fff}.chat>main .message.personal{animation:animation01 .3s linear .3s forwards;flex-direction:row-reverse}.chat>main .message.personal .content:after{content:"";position:absolute;top:2px;right:37px;transform:rotate(-45deg);border-width:10px;border-style:solid;border-color:transparent transparent #fff transparent}@keyframes animation01{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.chat>nav{background-color:#f7f7f9;border-bottom:1px solid #e7e7ea;padding:5px 10px;display:flex}.chat>nav .el-button{font-size:12px;font-weight:400;color:#4c4c4d;background-color:#fff!important;border:1px solid #e7e7ea;padding:5px 8px}.chat>.el-textarea{border-color:transparent}.chat>.el-textarea textarea{overflow-y:hidden;padding-right:65px;font-weight:400;color:#19191a;font-size:12px;font-family:Source Han Sans CN-Regular,Source Han Sans CN}.chat>.el-textarea textarea,.chat>.el-textarea textarea:focus{border-color:transparent}.chat>.el-button{position:absolute;bottom:10px;right:10px}.customerService[data-v-
|
1
|
+
.el-dialog__wrapper[data-v-2248e29b]{display:flex;justify-content:center;align-items:center}[data-v-2248e29b] .el-dialog{margin-top:0!important;border-radius:8px}[data-v-2248e29b] .el-dialog__header{background-color:#f2f6fc;border-radius:8px 8px 0 0}.el-dialog__body[data-v-2248e29b]{display:flex;justify-content:center}.chat{width:350px;height:480px;position:fixed;bottom:10px;right:55px;z-index:2001;background-color:#fff;border-radius:12px;border:1px solid #e6ebf5;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);overflow:hidden}.chat>header{display:flex;justify-content:flex-start;align-items:center;background-color:#ff575f;font-size:16px;padding:10px;font-weight:400;color:#fafdff}.chat>header>img{width:44px;height:44px;border-radius:50%;margin-right:10px;transition:all .3s linear}.chat>header>img:focus,.chat>header>img:hover{transform:scale(1.2) rotate(15deg)}.chat>header i{cursor:pointer;position:absolute;top:5px;width:20px;height:20px;border-radius:6px;display:flex;justify-content:center;align-items:center;transition:all .3s linear}.chat>header i:focus,.chat>header i:hover{transform:scale(1.2);background-color:hsla(7,100%,74%,.8)}.chat>header i.el-icon-close{right:10px}.chat>header i.icon-enlarge{right:35px}.chat>header i>img{width:12px}.chat>main{width:100%;height:60%;overflow-y:auto;padding-bottom:20px;background-color:#f7f7f9}.chat>main::-webkit-scrollbar{width:6px}.chat>main::-webkit-scrollbar-track{background:#efefef;border-radius:2px}.chat>main::-webkit-scrollbar-thumb{background:#ff8879;border-radius:10px}.chat>main::-webkit-scrollbar-thumb:hover{background:#ff755d}.chat>main .message{display:flex;gap:15px;position:relative;margin:20px 5px 0 5px;opacity:0}.chat>main .message .avatar{width:30px;height:30px;border-radius:50%}.chat>main .message .content{width:-moz-fit-content;width:fit-content;max-width:250px;font-weight:400;font-size:12px;color:#4c4c4d;line-height:20px;padding:10px;border-radius:10px;background-color:#fff}.chat>main .message .content .href{cursor:pointer;display:block;color:#ff575f;margin-bottom:.5rem}.chat>main .message .content .href:hover{text-decoration:underline}.chat>main .message .content>.based{cursor:pointer;color:#909399;display:flex;align-items:flex-start;justify-content:flex-start;border-top:1px solid #ebebed;padding-top:5px;margin-top:5px;gap:5px}.chat>main .message .content>.based>span:first-child{white-space:nowrap;color:#4c4c4d;border-radius:10px;background-color:#eeeef0;padding:0 7px}.chat>main .message .content>.based>span:last-child{width:100%;position:relative;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:12px}.chat>main .message .content>.based>span:last-child .el-icon-d-arrow-right{position:absolute;right:0;bottom:5px;transform:rotate(90deg);transition:all .35s linear}.chat>main .message .content>.based>span:last-child.is-active{overflow:visible;white-space:normal}.chat>main .message .content>.based>span:last-child.is-active .el-icon-d-arrow-right{transform:rotate(270deg)}.chat>main .message .content>.based>span:last-child:hover{color:#ff575f}.chat>main .message.admin{animation:animation01 .3s linear 1.5s forwards}.chat>main .message.admin .content:before{content:"";position:absolute;top:2px;left:37px;transform:rotate(-45deg);border-width:10px;border-style:solid;border-color:transparent transparent transparent #fff}.chat>main .message.personal{animation:animation01 .3s linear .3s forwards;flex-direction:row-reverse}.chat>main .message.personal .content:after{content:"";position:absolute;top:2px;right:37px;transform:rotate(-45deg);border-width:10px;border-style:solid;border-color:transparent transparent #fff transparent}@keyframes animation01{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.chat>nav{background-color:#f7f7f9;border-bottom:1px solid #e7e7ea;padding:5px 10px;display:flex}.chat>nav .el-button{font-size:12px;font-weight:400;color:#4c4c4d;background-color:#fff!important;border:1px solid #e7e7ea;padding:5px 8px}.chat>.el-textarea{border-color:transparent}.chat>.el-textarea textarea{overflow-y:hidden;padding-right:65px;font-weight:400;color:#19191a;font-size:12px;font-family:Source Han Sans CN-Regular,Source Han Sans CN}.chat>.el-textarea textarea,.chat>.el-textarea textarea:focus{border-color:transparent}.chat>.el-button{position:absolute;bottom:10px;right:10px}.customerService[data-v-7ccf92c4]{position:fixed;right:0;bottom:35px;z-index:2001}.customerService>div[data-v-7ccf92c4]{cursor:pointer;position:absolute;right:0;display:flex;align-items:center;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04)}.customerService>div:hover>div[data-v-7ccf92c4]:first-child{color:#ff4949}.customerService>div:hover>div:first-child i[data-v-7ccf92c4]{animation-name:animateRotate-7ccf92c4;animation-duration:.5s;animation-iteration-count:infinite}.customerService>div>div[data-v-7ccf92c4]:first-child{width:50px;height:50px;text-align:center;line-height:50px;font-size:18px}.customerService>div>div[data-v-7ccf92c4]:last-child{opacity:0;padding:10px;border-radius:6px;position:absolute;min-height:50px;display:flex;flex-direction:column;justify-content:space-around;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04)}.customerService>div>div[data-v-7ccf92c4]:last-child:after{content:"";position:absolute;top:calc(50% - 10px);right:-20px;border-width:10px;border-style:solid;border-color:transparent transparent transparent #fff;filter:drop-shadow(1px 1px 1px rgba(0,0,0,.2))}.customerService>div>div:last-child a[data-v-7ccf92c4]{color:#333;font-size:14px;display:block}.customerService .mobile[data-v-7ccf92c4]{bottom:50px;border-bottom:1px solid #e6ebf5}.customerService .mobile:hover>div[data-v-7ccf92c4]:last-child{left:-210px;opacity:1;animation-name:animateMobile-7ccf92c4;animation-duration:.5s}.customerService .mobile>div[data-v-7ccf92c4]:last-child{left:-120vw;width:190px;bottom:0}.customerService .mobile>div:last-child a[data-v-7ccf92c4]{width:-moz-fit-content;width:fit-content;position:relative;margin-top:5px;text-indent:5px}.customerService .mobile>div:last-child a[data-v-7ccf92c4]:hover{color:#ff4949}.customerService .mobile>div:last-child a[data-v-7ccf92c4]:hover:before{width:100%;right:auto;left:0}.customerService .mobile>div:last-child a[data-v-7ccf92c4]:before{content:"";width:0;height:1px;opacity:.6;background:#ff4949;transition:all .5s linear;position:absolute;right:0;bottom:-2px}.customerService .mobile>div[data-v-7ccf92c4]:last-child:after{top:calc(100% - 35px)}@keyframes animateMobile-7ccf92c4{0%{left:-200vw;opacity:0}0.1%{left:-310px;opacity:0}to{left:-210px;opacity:1}}.customerService .headset[data-v-7ccf92c4]{bottom:0}.customerService .headset:hover>div[data-v-7ccf92c4]:last-child{left:-110px;opacity:1;animation-name:animateHeadset-7ccf92c4;animation-duration:.5s}.customerService .headset>div[data-v-7ccf92c4]:last-child{left:-120vw;width:90px}@keyframes animateHeadset-7ccf92c4{0%{left:-120vw;opacity:0}0.1%{left:-210px;opacity:.5}to{left:-110px;opacity:1}}@keyframes animateRotate-7ccf92c4{0%{transform:rotate(0deg)}20%{transform:rotate(7deg)}40%{transform:rotate(0deg)}80%{transform:rotate(-7deg)}to{transform:rotate(0deg)}}
|
@@ -0,0 +1,216 @@
|
|
1
|
+
"use strict";
|
2
|
+
((typeof self !== 'undefined' ? self : this)["webpackChunkyc_ui2"] = (typeof self !== 'undefined' ? self : this)["webpackChunkyc_ui2"] || []).push([[50],{
|
3
|
+
|
4
|
+
/***/ 3050:
|
5
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
6
|
+
|
7
|
+
// ESM COMPAT FLAG
|
8
|
+
__webpack_require__.r(__webpack_exports__);
|
9
|
+
|
10
|
+
// EXPORTS
|
11
|
+
__webpack_require__.d(__webpack_exports__, {
|
12
|
+
"default": function() { return /* binding */ question; }
|
13
|
+
});
|
14
|
+
|
15
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/question.vue?vue&type=template&id=224b0f0a&
|
16
|
+
var render = function render() {
|
17
|
+
var _vm = this,
|
18
|
+
_c = _vm._self._c;
|
19
|
+
return _c('div', {
|
20
|
+
staticClass: "chatPage"
|
21
|
+
}, [_vm._m(0), _c('div', {
|
22
|
+
staticClass: "main"
|
23
|
+
}, [_c('div', [_c('main', {
|
24
|
+
ref: "main"
|
25
|
+
}, [_c('p', [_vm._v("今天" + _vm._s(_vm.currData))]), _vm._l(_vm.messagelist, function (item, index) {
|
26
|
+
return _c('div', {
|
27
|
+
key: index,
|
28
|
+
class: ['message', item.id]
|
29
|
+
}, [_c('img', {
|
30
|
+
staticClass: "avatar",
|
31
|
+
attrs: {
|
32
|
+
"src": '/cloud-img/customerService/' + item.id + '.jpg'
|
33
|
+
}
|
34
|
+
}), _c('div', {
|
35
|
+
staticClass: "content"
|
36
|
+
}, [_vm._l(item.msg, function (msg, index) {
|
37
|
+
return _c('span', {
|
38
|
+
key: msg + index,
|
39
|
+
class: item.msg.length > 1 ? 'href' : '',
|
40
|
+
domProps: {
|
41
|
+
"innerHTML": _vm._s((item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg)
|
42
|
+
},
|
43
|
+
on: {
|
44
|
+
"click": function ($event) {
|
45
|
+
item.msg.length > 1 && _vm.regularClick(msg);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
});
|
49
|
+
}), item.based ? _c('div', {
|
50
|
+
staticClass: "based",
|
51
|
+
on: {
|
52
|
+
"click": function ($event) {
|
53
|
+
$event.preventDefault();
|
54
|
+
return _vm.handExpand(item);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}, [_c('span', [_vm._v("依据")]), _c('span', {
|
58
|
+
class: {
|
59
|
+
'is-active': item.isActive
|
60
|
+
}
|
61
|
+
}, [_vm._v(_vm._s(item.based)), _c('i', {
|
62
|
+
staticClass: "el-icon-d-arrow-right"
|
63
|
+
})])]) : _vm._e()], 2)]);
|
64
|
+
})], 2), _c('footer', [_c('el-input', {
|
65
|
+
attrs: {
|
66
|
+
"type": "textarea",
|
67
|
+
"maxlength": "500",
|
68
|
+
"autosize": {
|
69
|
+
minRows: 6,
|
70
|
+
maxRows: 6
|
71
|
+
},
|
72
|
+
"autofocus": "true",
|
73
|
+
"resize": "none",
|
74
|
+
"placeholder": "请输入你要咨询的问题"
|
75
|
+
},
|
76
|
+
nativeOn: {
|
77
|
+
"keyup": function ($event) {
|
78
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
79
|
+
return _vm.carriageReturn.apply(null, arguments);
|
80
|
+
}
|
81
|
+
},
|
82
|
+
model: {
|
83
|
+
value: _vm.textareaValue,
|
84
|
+
callback: function ($$v) {
|
85
|
+
_vm.textareaValue = $$v;
|
86
|
+
},
|
87
|
+
expression: "textareaValue"
|
88
|
+
}
|
89
|
+
}), _c('el-button', {
|
90
|
+
style: !_vm.textareaValue ? 'background-color: #F7F7F9;color: #FF575F;border-color: transparent;' : '',
|
91
|
+
attrs: {
|
92
|
+
"type": "primary",
|
93
|
+
"disabled": !_vm.textareaValue
|
94
|
+
},
|
95
|
+
on: {
|
96
|
+
"click": _vm.send
|
97
|
+
}
|
98
|
+
}, [_vm._v("发送")])], 1)]), _c('aside', [_c('el-collapse', {
|
99
|
+
attrs: {
|
100
|
+
"accordion": ""
|
101
|
+
},
|
102
|
+
model: {
|
103
|
+
value: _vm.activeNames,
|
104
|
+
callback: function ($$v) {
|
105
|
+
_vm.activeNames = $$v;
|
106
|
+
},
|
107
|
+
expression: "activeNames"
|
108
|
+
}
|
109
|
+
}, _vm._l(_vm.questionsList, function (item, key, index) {
|
110
|
+
return _c('el-collapse-item', {
|
111
|
+
key: key,
|
112
|
+
attrs: {
|
113
|
+
"name": index
|
114
|
+
}
|
115
|
+
}, [_c('template', {
|
116
|
+
slot: "title"
|
117
|
+
}, [_c('img', {
|
118
|
+
attrs: {
|
119
|
+
"src": "/cloud-img/customerService/ellipticalWenh.png"
|
120
|
+
}
|
121
|
+
}), _vm._v(_vm._s(key) + " ")]), _vm._l(item, function (faq) {
|
122
|
+
return _c('div', {
|
123
|
+
key: faq,
|
124
|
+
domProps: {
|
125
|
+
"innerHTML": _vm._s(faq)
|
126
|
+
},
|
127
|
+
on: {
|
128
|
+
"click": function ($event) {
|
129
|
+
return _vm.regularClick(faq);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
});
|
133
|
+
})], 2);
|
134
|
+
}), 1)], 1)])]);
|
135
|
+
};
|
136
|
+
var staticRenderFns = [function () {
|
137
|
+
var _vm = this,
|
138
|
+
_c = _vm._self._c;
|
139
|
+
return _c('header', {
|
140
|
+
staticStyle: {
|
141
|
+
"background": "url('/cloud-img/customerService/chatTop.png') center",
|
142
|
+
"background-size": "cover"
|
143
|
+
}
|
144
|
+
}, [_c('div', [_c('h3', [_vm._v("小优客服")]), _c('span', [_vm._v("Problem Help")])]), _c('p', [_vm._v("小优为您提供24小时服务")])]);
|
145
|
+
}];
|
146
|
+
|
147
|
+
;// CONCATENATED MODULE: ./src/components/YcCustomerService/question.vue?vue&type=template&id=224b0f0a&
|
148
|
+
|
149
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
150
|
+
var es_array_push = __webpack_require__(7658);
|
151
|
+
// EXTERNAL MODULE: ./src/components/YcCustomerService/chatMixin.js
|
152
|
+
var chatMixin = __webpack_require__(9668);
|
153
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/question.vue?vue&type=script&lang=js&
|
154
|
+
|
155
|
+
|
156
|
+
/* harmony default export */ var questionvue_type_script_lang_js_ = ({
|
157
|
+
name: "questionChat",
|
158
|
+
mixins: [chatMixin/* default */.Z],
|
159
|
+
data() {
|
160
|
+
return {
|
161
|
+
activeNames: [1]
|
162
|
+
};
|
163
|
+
},
|
164
|
+
computed: {
|
165
|
+
currData() {
|
166
|
+
const currData = new Date();
|
167
|
+
return `${currData.getHours()}:${currData.getMinutes()}`;
|
168
|
+
},
|
169
|
+
questionsList() {
|
170
|
+
return this.questions.reduce((prev, curr) => {
|
171
|
+
// eslint-disable-next-line no-prototype-builtins
|
172
|
+
if (prev.hasOwnProperty(curr.type)) {
|
173
|
+
prev[curr.type].push(curr.faq);
|
174
|
+
} else {
|
175
|
+
prev[curr.type] = [curr.faq];
|
176
|
+
}
|
177
|
+
return prev;
|
178
|
+
}, {});
|
179
|
+
}
|
180
|
+
}
|
181
|
+
});
|
182
|
+
;// CONCATENATED MODULE: ./src/components/YcCustomerService/question.vue?vue&type=script&lang=js&
|
183
|
+
/* harmony default export */ var YcCustomerService_questionvue_type_script_lang_js_ = (questionvue_type_script_lang_js_);
|
184
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/question.vue?vue&type=style&index=0&id=224b0f0a&prod&lang=scss&
|
185
|
+
// extracted by mini-css-extract-plugin
|
186
|
+
|
187
|
+
;// CONCATENATED MODULE: ./src/components/YcCustomerService/question.vue?vue&type=style&index=0&id=224b0f0a&prod&lang=scss&
|
188
|
+
|
189
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
190
|
+
var componentNormalizer = __webpack_require__(1001);
|
191
|
+
;// CONCATENATED MODULE: ./src/components/YcCustomerService/question.vue
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
;
|
196
|
+
|
197
|
+
|
198
|
+
/* normalize component */
|
199
|
+
|
200
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
201
|
+
YcCustomerService_questionvue_type_script_lang_js_,
|
202
|
+
render,
|
203
|
+
staticRenderFns,
|
204
|
+
false,
|
205
|
+
null,
|
206
|
+
null,
|
207
|
+
null
|
208
|
+
|
209
|
+
)
|
210
|
+
|
211
|
+
/* harmony default export */ var question = (component.exports);
|
212
|
+
|
213
|
+
/***/ })
|
214
|
+
|
215
|
+
}]);
|
216
|
+
//# sourceMappingURL=yc-ui2.umd.50.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"yc-ui2.umd.50.js","mappings":";;;;;;;;;;;;;;;AAAA,IAAIA,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAE;EAAC,IAAIC,GAAG,GAAC,IAAI;IAACC,EAAE,GAACD,GAAG,CAACE,KAAK,CAACD,EAAE;EAAC,OAAOA,EAAE,CAAC,KAAK,EAAC;IAACE,WAAW,EAAC;EAAU,CAAC,EAAC,CAACH,GAAG,CAACI,EAAE,CAAC,CAAC,CAAC,EAACH,EAAE,CAAC,KAAK,EAAC;IAACE,WAAW,EAAC;EAAM,CAAC,EAAC,CAACF,EAAE,CAAC,KAAK,EAAC,CAACA,EAAE,CAAC,MAAM,EAAC;IAACI,GAAG,EAAC;EAAM,CAAC,EAAC,CAACJ,EAAE,CAAC,GAAG,EAAC,CAACD,GAAG,CAACM,EAAE,CAAC,IAAI,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AC,CAAC,CAAC,CAAC;AAC9S,CAAC,CAAC;;;;;;;;;;AE8FF;AACA,qEAAe;EACfiD,IAAA;EACAC,MAAA,GAAAF,wBAAA;EACAG,KAAA;IACA;MACAT,WAAA;IACA;EACA;EACAU,QAAA;IACAlD,SAAA;MACA,MAAAA,QAAA,OAAAmD,IAAA;MACA,UAAAnD,QAAA,CAAAoD,QAAA,MAAApD,QAAA,CAAAqD,UAAA;IACA;IACAZ,cAAA;MACA,YAAAa,SAAA,CAAAC,MAAA,EAAAC,IAAA,EAAAC,IAAA;QACA;QACA,IAAAD,IAAA,CAAAE,cAAA,CAAAD,IAAA,CAAAhC,IAAA;UACA+B,IAAA,CAAAC,IAAA,CAAAhC,IAAA,EAAAkC,IAAA,CAAAF,IAAA,CAAAd,GAAA;QACA;UACAa,IAAA,CAAAC,IAAA,CAAAhC,IAAA,KAAAgC,IAAA,CAAAd,GAAA;QACA;QACA,OAAAa,IAAA;MACA;IACA;EACA;AACA,CAAC;;AC7H+P,CAAC,uFAAe,gCAAG,EAAC;;ACApR;;;;;;;AEAuF;AAC3B;AACL;AACvD,CAAsF;;;AAGtF;AACsG;AACtG,gBAAgB,sCAAU;AAC1B,EAAE,kDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,6CAAe","sources":["webpack://yc-ui2/./src/components/YcCustomerService/question.vue","webpack://yc-ui2/./src/components/YcCustomerService/question.vue?c4b4","webpack://yc-ui2/src/components/YcCustomerService/question.vue","webpack://yc-ui2/./src/components/YcCustomerService/question.vue?ae6c","webpack://yc-ui2/./src/components/YcCustomerService/question.vue?9254","webpack://yc-ui2/./src/components/YcCustomerService/question.vue?61e6","webpack://yc-ui2/./src/components/YcCustomerService/question.vue?a2db"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"chatPage\"},[_vm._m(0),_c('div',{staticClass:\"main\"},[_c('div',[_c('main',{ref:\"main\"},[_c('p',[_vm._v(\"今天\"+_vm._s(_vm.currData))]),_vm._l((_vm.messagelist),function(item,index){return _c('div',{key:index,class:['message', item.id]},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":'/cloud-img/customerService/' + item.id + '.jpg'}}),_c('div',{staticClass:\"content\"},[_vm._l((item.msg),function(msg,index){return _c('span',{key:msg + index,class:item.msg.length > 1 ? 'href' : '',domProps:{\"innerHTML\":_vm._s((item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg)},on:{\"click\":function($event){item.msg.length > 1 && _vm.regularClick(msg)}}})}),(item.based)?_c('div',{staticClass:\"based\",on:{\"click\":function($event){$event.preventDefault();return _vm.handExpand(item)}}},[_c('span',[_vm._v(\"依据\")]),_c('span',{class:{ 'is-active': item.isActive }},[_vm._v(_vm._s(item.based)),_c('i',{staticClass:\"el-icon-d-arrow-right\"})])]):_vm._e()],2)])})],2),_c('footer',[_c('el-input',{attrs:{\"type\":\"textarea\",\"maxlength\":\"500\",\"autosize\":{ minRows: 6, maxRows: 6 },\"autofocus\":\"true\",\"resize\":\"none\",\"placeholder\":\"请输入你要咨询的问题\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.carriageReturn.apply(null, arguments)}},model:{value:(_vm.textareaValue),callback:function ($$v) {_vm.textareaValue=$$v},expression:\"textareaValue\"}}),_c('el-button',{style:(!_vm.textareaValue\n ? 'background-color: #F7F7F9;color: #FF575F;border-color: transparent;'\n : ''),attrs:{\"type\":\"primary\",\"disabled\":!_vm.textareaValue},on:{\"click\":_vm.send}},[_vm._v(\"发送\")])],1)]),_c('aside',[_c('el-collapse',{attrs:{\"accordion\":\"\"},model:{value:(_vm.activeNames),callback:function ($$v) {_vm.activeNames=$$v},expression:\"activeNames\"}},_vm._l((_vm.questionsList),function(item,key,index){return _c('el-collapse-item',{key:key,attrs:{\"name\":index}},[_c('template',{slot:\"title\"},[_c('img',{attrs:{\"src\":\"/cloud-img/customerService/ellipticalWenh.png\"}}),_vm._v(_vm._s(key)+\" \")]),_vm._l((item),function(faq){return _c('div',{key:faq,domProps:{\"innerHTML\":_vm._s(faq)},on:{\"click\":function($event){return _vm.regularClick(faq)}}})})],2)}),1)],1)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('header',{staticStyle:{\"background\":\"url('/cloud-img/customerService/chatTop.png') center\",\"background-size\":\"cover\"}},[_c('div',[_c('h3',[_vm._v(\"小优客服\")]),_c('span',[_vm._v(\"Problem Help\")])]),_c('p',[_vm._v(\"小优为您提供24小时服务\")])])\n}]\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./question.vue?vue&type=template&id=224b0f0a&\"","<template>\r\n <div class=\"chatPage\">\r\n <header\r\n style=\"\r\n background: url('/cloud-img/customerService/chatTop.png') center\r\n no-repeat cover;\r\n background-size: cover;\r\n \"\r\n >\r\n <div>\r\n <h3>小优客服</h3>\r\n <span>Problem Help</span>\r\n </div>\r\n <p>小优为您提供24小时服务</p>\r\n </header>\r\n <div class=\"main\">\r\n <div>\r\n <main ref=\"main\">\r\n <p>今天{{ currData }}</p>\r\n <div\r\n v-for=\"(item, index) in messagelist\"\r\n :key=\"index\"\r\n :class=\"['message', item.id]\"\r\n >\r\n <img\r\n class=\"avatar\"\r\n :src=\"'/cloud-img/customerService/' + item.id + '.jpg'\"\r\n />\r\n <div class=\"content\">\r\n <span\r\n v-for=\"(msg, index) in item.msg\"\r\n :key=\"msg + index\"\r\n v-html=\"(item.msg.length > 1 ? 1 + index + '. ' : ' ') + msg\"\r\n :class=\"item.msg.length > 1 ? 'href' : ''\"\r\n @click=\"item.msg.length > 1 && regularClick(msg)\"\r\n ></span>\r\n <div\r\n class=\"based\"\r\n v-if=\"item.based\"\r\n @click.prevent=\"handExpand(item)\"\r\n >\r\n <span>依据</span\r\n ><span :class=\"{ 'is-active': item.isActive }\"\r\n >{{ item.based }}<i class=\"el-icon-d-arrow-right\"></i\r\n ></span>\r\n </div>\r\n </div>\r\n </div>\r\n </main>\r\n <footer>\r\n <el-input\r\n type=\"textarea\"\r\n maxlength=\"500\"\r\n :autosize=\"{ minRows: 6, maxRows: 6 }\"\r\n autofocus=\"true\"\r\n resize=\"none\"\r\n placeholder=\"请输入你要咨询的问题\"\r\n v-model=\"textareaValue\"\r\n @keyup.enter.native=\"carriageReturn\"\r\n >\r\n </el-input>\r\n <el-button\r\n type=\"primary\"\r\n :disabled=\"!textareaValue\"\r\n :style=\"\r\n !textareaValue\r\n ? 'background-color: #F7F7F9;color: #FF575F;border-color: transparent;'\r\n : ''\r\n \"\r\n @click=\"send\"\r\n >发送</el-button\r\n >\r\n </footer>\r\n </div>\r\n <aside>\r\n <el-collapse v-model=\"activeNames\" accordion>\r\n <el-collapse-item\r\n v-for=\"(item, key, index) in questionsList\"\r\n :key=\"key\"\r\n :name=\"index\"\r\n >\r\n <template slot=\"title\">\r\n <img src=\"/cloud-img/customerService/ellipticalWenh.png\" />{{\r\n key\r\n }}\r\n </template>\r\n <div\r\n v-for=\"faq in item\"\r\n :key=\"faq\"\r\n v-html=\"faq\"\r\n @click=\"regularClick(faq)\"\r\n ></div>\r\n </el-collapse-item>\r\n </el-collapse>\r\n </aside>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport chatMixin from \"./chatMixin\"\r\nexport default {\r\n name: \"questionChat\",\r\n mixins: [chatMixin],\r\n data() {\r\n return {\r\n activeNames: [1],\r\n }\r\n },\r\n computed: {\r\n currData() {\r\n const currData = new Date()\r\n return `${currData.getHours()}:${currData.getMinutes()}`\r\n },\r\n questionsList() {\r\n return this.questions.reduce((prev, curr) => {\r\n // eslint-disable-next-line no-prototype-builtins\r\n if (prev.hasOwnProperty(curr.type)) {\r\n prev[curr.type].push(curr.faq)\r\n } else {\r\n prev[curr.type] = [curr.faq]\r\n }\r\n return prev\r\n }, {})\r\n },\r\n },\r\n}\r\n</script>\r\n<style lang=\"scss\">\r\n#app {\r\n min-width: auto;\r\n overflow: hidden;\r\n // height: 100vh;\r\n}\r\n\r\n.chatPage {\r\n background-color: #ffffff;\r\n\r\n > header {\r\n height: 8vw;\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n gap: 5vw;\r\n padding-left: 8vw;\r\n // background: url(\"/cloud-img/customerService/chatTop.png\");\r\n background-position: center center;\r\n background-repeat: no-repeat;\r\n background-size: cover;\r\n\r\n > div {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n // flex-direction: row-reverse;\r\n h3 {\r\n height: 1vw;\r\n margin-top: 0px;\r\n font-size: 2.125rem;\r\n font-weight: bold;\r\n color: #191a2c;\r\n font-family: Source Han Sans CN-Bold, Source Han Sans CN;\r\n }\r\n\r\n span {\r\n font-size: 1rem;\r\n font-family: LXGW New Clear Gothic-Regular, LXGW New Clear Gothic;\r\n font-weight: 400;\r\n color: #666;\r\n }\r\n }\r\n\r\n p {\r\n font-size: 1rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n color: #2e2f42;\r\n }\r\n }\r\n\r\n .main {\r\n display: flex;\r\n\r\n > div {\r\n width: 74vw;\r\n position: relative;\r\n\r\n > main {\r\n height: 62vh;\r\n overflow-y: auto;\r\n padding-bottom: 2vw;\r\n background-color: #f7f7f9;\r\n\r\n // 滚动条宽度\r\n &::-webkit-scrollbar {\r\n width: 6px;\r\n }\r\n\r\n // 滚动条轨道\r\n &::-webkit-scrollbar-track {\r\n background: rgb(239, 239, 239);\r\n border-radius: 2px;\r\n }\r\n\r\n // 小滑块\r\n &::-webkit-scrollbar-thumb {\r\n background: #ff8879;\r\n border-radius: 10px;\r\n }\r\n\r\n &::-webkit-scrollbar-thumb:hover {\r\n background: #ff755d;\r\n }\r\n\r\n > p {\r\n text-align: center;\r\n font-size: 0.875rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n color: #909399;\r\n }\r\n\r\n .message {\r\n display: flex;\r\n gap: 15px;\r\n margin: 1.5vw 1.5vw 0px 1.5vw;\r\n opacity: 0;\r\n\r\n .avatar {\r\n width: 2.5vw;\r\n height: 2.5vw;\r\n min-width: 35px;\r\n min-height: 35px;\r\n border-radius: 50%;\r\n transition: all 0.3s linear;\r\n &:focus,\r\n &:hover {\r\n transform: scale(1.2, 1.2) rotate(15deg);\r\n }\r\n }\r\n\r\n .content {\r\n width: fit-content;\r\n max-width: 50vw;\r\n font-weight: 400;\r\n font-size: 1rem;\r\n color: #4c4c4d;\r\n padding: 10px;\r\n border-radius: 10px;\r\n position: relative;\r\n background-color: #ffffff;\r\n\r\n .href {\r\n cursor: pointer;\r\n display: block;\r\n color: #ff575f;\r\n margin-bottom: 1.5rem;\r\n\r\n &:hover {\r\n text-decoration: underline;\r\n }\r\n }\r\n\r\n > .based {\r\n cursor: pointer;\r\n font-size: 1rem;\r\n font-weight: 400;\r\n color: #909399;\r\n display: flex;\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n border-top: 1px solid #ebebed;\r\n padding-top: 0.625rem;\r\n margin-top: 0.625rem;\r\n gap: 0.625rem;\r\n\r\n & > span:first-child {\r\n white-space: nowrap;\r\n color: #4c4c4d;\r\n border-radius: 18px;\r\n background-color: #eeeef0;\r\n padding: 0.1875rem 0.625rem;\r\n margin-top: -0.1875rem;\r\n }\r\n\r\n & > span:last-child {\r\n width: 100%;\r\n position: relative;\r\n display: inline-block;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n padding-right: 12px;\r\n\r\n .el-icon-d-arrow-right {\r\n position: absolute;\r\n right: 0px;\r\n bottom: 0px;\r\n transform: rotate(90deg);\r\n transition: all 0.35s linear;\r\n }\r\n &.is-active {\r\n overflow: visible;\r\n white-space: normal;\r\n .el-icon-d-arrow-right {\r\n transform: rotate(270deg);\r\n }\r\n }\r\n\r\n &:hover {\r\n color: #ff575f;\r\n }\r\n }\r\n }\r\n }\r\n\r\n &.admin {\r\n animation: animation01 0.3s linear 1.5s forwards;\r\n\r\n .content {\r\n margin-top: 20px;\r\n\r\n &::before {\r\n content: \"\";\r\n position: absolute;\r\n top: 2px;\r\n left: -10px;\r\n transform: rotate(-45deg);\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #fff;\r\n }\r\n\r\n &::after {\r\n content: \"小优客服【38号为您服务】\";\r\n width: 200px;\r\n font-size: 0.875rem;\r\n font-family: Source Han Sans CN-Medium, Source Han Sans CN;\r\n font-weight: 500;\r\n color: #8b8c8f;\r\n position: absolute;\r\n left: 0px;\r\n top: -20px;\r\n }\r\n }\r\n }\r\n\r\n &.personal {\r\n animation: animation01 0.3s linear 0.3s forwards;\r\n flex-direction: row-reverse;\r\n\r\n .content::after {\r\n content: \"\";\r\n position: absolute;\r\n top: 2px;\r\n right: -10px;\r\n transform: rotate(-45deg);\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent #ffffff transparent;\r\n }\r\n }\r\n\r\n @keyframes animation01 {\r\n 0% {\r\n transform: translateY(20px);\r\n opacity: 0;\r\n }\r\n\r\n 100% {\r\n transform: translateY(0px);\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n }\r\n\r\n footer {\r\n height: 30vh;\r\n border: 1px solid #e7e7ea;\r\n\r\n > .el-textarea {\r\n border-color: transparent;\r\n\r\n textarea {\r\n overflow-y: hidden;\r\n // padding-right: 65px;\r\n font-weight: 400;\r\n color: #19191a;\r\n font-size: 1rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n }\r\n\r\n textarea,\r\n textarea:focus {\r\n border-color: transparent;\r\n }\r\n }\r\n\r\n > .el-button {\r\n float: right;\r\n // position: absolute;\r\n // bottom: 40px;\r\n // right: 40px;\r\n z-index: 1;\r\n font-size: 0.875rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n border-radius: 4px;\r\n margin-right: 2vw;\r\n width: 5vw;\r\n min-width: 92px;\r\n }\r\n }\r\n }\r\n\r\n aside {\r\n width: 26vw;\r\n height: 92vh;\r\n padding: 1vw;\r\n overflow-y: auto;\r\n background-color: #ffffff;\r\n\r\n .el-collapse-item__header {\r\n color: #373a3c;\r\n font-size: 1.5rem;\r\n font-weight: 500;\r\n font-family: Source Han Sans CN-Medium, Source Han Sans CN;\r\n padding: 2rem;\r\n background-color: #f00;\r\n background: linear-gradient(#ffdad4, #ffa9a3);\r\n\r\n &.is-active {\r\n color: #ffffff;\r\n background: linear-gradient(#ff897a, #ff645a);\r\n\r\n i {\r\n color: #ffffff;\r\n }\r\n }\r\n\r\n img {\r\n width: 2.25rem;\r\n height: 2.25rem;\r\n float: left;\r\n margin-left: -0.5rem;\r\n margin-right: 0.5rem;\r\n }\r\n\r\n i {\r\n font-size: 2rem;\r\n color: #ff575f;\r\n font-weight: 900;\r\n }\r\n }\r\n\r\n .el-collapse-item__content {\r\n font-size: 1rem;\r\n font-family: Source Han Sans CN-Regular, Source Han Sans CN;\r\n font-weight: 400;\r\n padding: 20px 20px 20px 40px;\r\n color: #000000;\r\n background-color: #f7f7f9;\r\n\r\n > div {\r\n position: relative;\r\n margin-top: 1rem;\r\n cursor: pointer;\r\n transition: all 0.3s linear;\r\n\r\n &:first-child {\r\n margin-top: 0px;\r\n }\r\n\r\n &::before {\r\n content: \"\";\r\n position: absolute;\r\n top: 5px;\r\n left: -15px;\r\n // transform: rotate(-45deg);\r\n // float: left;\r\n border-width: 10px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #ffa9a3;\r\n }\r\n\r\n &:hover {\r\n color: #ff575f;\r\n transform: translate(0.5rem);\r\n\r\n &::before {\r\n border-color: transparent transparent transparent #ff575f;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./question.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./question.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./question.vue?vue&type=style&index=0&id=224b0f0a&prod&lang=scss&\"","import { render, staticRenderFns } from \"./question.vue?vue&type=template&id=224b0f0a&\"\nimport script from \"./question.vue?vue&type=script&lang=js&\"\nexport * from \"./question.vue?vue&type=script&lang=js&\"\nimport style0 from \"./question.vue?vue&type=style&index=0&id=224b0f0a&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","_c","_self","staticClass","_m","ref","_v","_s","currData","_l","messagelist","item","index","key","class","id","attrs","msg","length","domProps","on","click","$event","regularClick","based","preventDefault","handExpand","isActive","_e","minRows","maxRows","nativeOn","keyup","type","indexOf","_k","keyCode","carriageReturn","apply","arguments","model","value","textareaValue","callback","$$v","expression","style","send","activeNames","questionsList","slot","faq","staticRenderFns","staticStyle","chatMixin","name","mixins","data","computed","Date","getHours","getMinutes","questions","reduce","prev","curr","hasOwnProperty","push"],"sourceRoot":""}
|