askbot-dragon 0.6.23 → 0.6.27
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.
- package/package.json +1 -1
- package/public/index.html +1 -1
- package/src/App.vue +2 -1
- package/src/assets/js/script.js +37 -0
- package/src/assets/less/common.css +17 -7
- package/src/assets/less/converSationContainer/common.less +23 -4583
- package/src/assets/less/converSationContainer/converSatonContainer.less +1 -0
- package/src/assets/less/iconfont.css +17 -0
- package/src/assets/less/ticketMessage.less +89 -197
- package/src/components/ConversationContainer.vue +337 -511
- package/src/components/actionSatisfaction.vue +76 -0
- package/src/components/actionSendToBot.vue +53 -0
- package/src/components/answerDissatisfaction.vue +61 -0
- package/src/components/answerRadio.vue +61 -0
- package/src/components/askVideo.vue +46 -0
- package/src/components/associationIntention.vue +93 -0
- package/src/components/botActionSatisfactor.vue +69 -0
- package/src/components/feedBack.vue +49 -29
- package/src/components/formTemplate.vue +151 -73
- package/src/components/loadingProcess.vue +176 -0
- package/src/components/message/TextMessage.vue +47 -12
- package/src/components/message/TicketMessage.vue +16 -22
- package/src/components/message/swiper/ticketSwiper.vue +11 -37
- package/src/components/msgLoading.vue +231 -0
- package/src/components/recommend.vue +75 -0
- package/src/components/voiceComponent.vue +102 -0
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
|
|
8
8
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
9
9
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
10
|
-
<link href="//at.alicdn.com/t/font_1566110_eump2lzv89s.css"/>
|
|
10
|
+
<link rel="stylesheet" href="//at.alicdn.com/t/font_1566110_eump2lzv89s.css"/>
|
|
11
11
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
|
|
12
12
|
<script src="https://static.guoranbot.com/ckeditor5-build-classic/0.3.7/build/ckeditor.js"></script>
|
|
13
13
|
<style>
|
package/src/App.vue
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const displays = document.querySelectorAll('.note-display');
|
|
2
|
+
const transitionDuration = 900;
|
|
3
|
+
function displasss(){
|
|
4
|
+
displays.forEach(display => {
|
|
5
|
+
let note = parseFloat(display.dataset.note);
|
|
6
|
+
let [int, dec] = display.dataset.note.split('.');
|
|
7
|
+
[int, dec] = [Number(int), Number(dec)];
|
|
8
|
+
strokeTransition(display, note);
|
|
9
|
+
increaseNumber(display, int, 'int');
|
|
10
|
+
increaseNumber(display, dec, 'dec');
|
|
11
|
+
})
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function strokeTransition(display, note) {
|
|
15
|
+
let progress = display.querySelector('.circle__progress--fill');
|
|
16
|
+
let radius = progress.r.baseVal.value;
|
|
17
|
+
let circumference = 2 * Math.PI * radius;
|
|
18
|
+
let offset = circumference * (10 - note) / 10;
|
|
19
|
+
progress.style.setProperty('--initialStroke', circumference);
|
|
20
|
+
progress.style.setProperty('--transitionDuration', `${transitionDuration}ms`);
|
|
21
|
+
|
|
22
|
+
setTimeout(() => progress.style.strokeDashoffset = offset, 100);
|
|
23
|
+
}
|
|
24
|
+
function increaseNumber(display, number, className) {
|
|
25
|
+
let element = display.querySelector(`.percent__${className}`),
|
|
26
|
+
decPoint = className === 'int' ? '.' : '',
|
|
27
|
+
interval = transitionDuration / number,
|
|
28
|
+
counter = 0;
|
|
29
|
+
|
|
30
|
+
let increaseInterval = setInterval(() => {
|
|
31
|
+
if (counter === number) { window.clearInterval(increaseInterval); }
|
|
32
|
+
|
|
33
|
+
element.textContent = counter + decPoint;
|
|
34
|
+
counter++;
|
|
35
|
+
}, interval);
|
|
36
|
+
}
|
|
37
|
+
export {displasss}
|