askbot-dragon 1.3.31 → 1.3.32
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
CHANGED
|
@@ -105,10 +105,18 @@ export default {
|
|
|
105
105
|
});
|
|
106
106
|
},
|
|
107
107
|
methods: {
|
|
108
|
+
stopAudioPlay(refId){
|
|
109
|
+
console.log("stop ", refId, this.msg.content.extInfos[0].avCurrentTime);
|
|
110
|
+
if (refId != this.msg.content.extInfos[0].avCurrentTime) {
|
|
111
|
+
this.activeAudio.pause();
|
|
112
|
+
this.isPlay = false;
|
|
113
|
+
}
|
|
114
|
+
},
|
|
108
115
|
bofang() {
|
|
109
116
|
if (this.activeAudio.paused) {
|
|
110
117
|
this.activeAudio.play();
|
|
111
118
|
this.isPlay = true;
|
|
119
|
+
this.$emit("stopOtherAudio", this.msg.content.extInfos[0].avCurrentTime);
|
|
112
120
|
} else {
|
|
113
121
|
this.activeAudio.pause();
|
|
114
122
|
this.isPlay = false;
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
<feed-back :feedBack="feedBack"></feed-back>
|
|
43
43
|
<voice-compontent></voice-compontent> -->
|
|
44
44
|
<ai-guide :aiGuide="ActionAiGuideObj"></ai-guide>
|
|
45
|
-
<answer-voice :msg="answerVoiceObj"></answer-voice>
|
|
45
|
+
<answer-voice @stopOtherAudio="stopOtherAudio" ref="audioTagCell" :msg="answerVoiceObj"></answer-voice>
|
|
46
|
+
<answer-voice @stopOtherAudio="stopOtherAudio" ref="audioTagCell" :msg="answerVoiceObj1"></answer-voice>
|
|
46
47
|
|
|
47
48
|
<!-- <FileType :urls="urls" :color="black"></FileType>-->
|
|
48
49
|
<!-- <FileType :urls="urls" :color="black"></FileType>
|
|
@@ -118,13 +119,29 @@ export default {
|
|
|
118
119
|
return {
|
|
119
120
|
black:'',
|
|
120
121
|
answerVoiceObj: {
|
|
121
|
-
id: "
|
|
122
|
+
id: "643f8e7c235d0d20541170d712",
|
|
122
123
|
intentId: 152859,
|
|
123
124
|
nodeId: "643ce95db62c5d38f1706242",
|
|
124
125
|
type: "answer_voice",
|
|
125
126
|
content: {
|
|
126
127
|
filenName: "二月兰.mp3",
|
|
127
|
-
url: "https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/6b11f188b3cb4d73ba8305039f32d0da/2023/04/19/14/47/5ffbef1135ae52eb2bb5029323f5404c/二月兰.mp3"
|
|
128
|
+
url: "https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/6b11f188b3cb4d73ba8305039f32d0da/2023/04/19/14/47/5ffbef1135ae52eb2bb5029323f5404c/二月兰.mp3",
|
|
129
|
+
extInfo: [{
|
|
130
|
+
avCurrentTime: 123
|
|
131
|
+
}]
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
answerVoiceObj1: {
|
|
135
|
+
id: "643f8e7c235d0d20541170d712",
|
|
136
|
+
intentId: 152859,
|
|
137
|
+
nodeId: "643ce95db62c5d38f1706242",
|
|
138
|
+
type: "answer_voice",
|
|
139
|
+
content: {
|
|
140
|
+
filenName: "二月兰.mp3",
|
|
141
|
+
url: "https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/6b11f188b3cb4d73ba8305039f32d0da/2023/04/19/14/47/5ffbef1135ae52eb2bb5029323f5404c/二月兰.mp3",
|
|
142
|
+
extInfo: [{
|
|
143
|
+
avCurrentTime: 1234
|
|
144
|
+
}]
|
|
128
145
|
}
|
|
129
146
|
},
|
|
130
147
|
answerDocknowledge: {
|