askbot-dragon 1.4.1 → 1.4.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -27,8 +27,8 @@
27
27
  </div>
28
28
  </template>
29
29
  <script>
30
- import { v4 as uuidv4 } from "uuid";
31
30
  let load = require('audio-loader')
31
+ import { v4 as uuidv4 } from "uuid";
32
32
  export default {
33
33
  name: "answer_voice",
34
34
  props: ["msg"],
@@ -50,18 +50,18 @@ export default {
50
50
  computed: {
51
51
  newMsg(){
52
52
  let oldMsg = JSON.parse(JSON.stringify(this.msg));
53
- oldMsg.content.extInfos[0].newnewAvCurrentTime = uuidv4();
53
+ oldMsg.content.extInfos[0].newAvCurrentTime = uuidv4();
54
54
  return oldMsg;
55
55
  }
56
56
  },
57
57
  mounted() {
58
- console.log(120);
58
+ console.log(120,this.newMsg);
59
59
  this.$nextTick(() => {
60
60
  setTimeout(() => {
61
61
  console.log(this._$(`#audioTagCom_${this.newMsg.content.extInfos[0].newAvCurrentTime}`)[0]);
62
62
  this.activeAudio = this._$(`#audioTagCom_${this.newMsg.content.extInfos[0].newAvCurrentTime}`)[0];
63
63
  this.time = "00:00";
64
- load(this.msg.content.url).then(res =>{
64
+ load(this.newMsg.content.url).then(res =>{
65
65
  this.otherTime = this.transTime(res.duration);
66
66
  this.durationNum = res.duration;
67
67
  console.log(res.duration);
@@ -114,7 +114,7 @@ export default {
114
114
  methods: {
115
115
  stopAudioPlay(refId){
116
116
  console.log("stop ", refId, this.newMsg.content.extInfos[0].newAvCurrentTime);
117
- if (refId != this.msg.content.extInfos[0].newAvCurrentTime) {
117
+ if (refId != this.newMsg.content.extInfos[0].newAvCurrentTime) {
118
118
  this.activeAudio.pause();
119
119
  this.isPlay = false;
120
120
  }
@@ -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 @stopOtherAudio="stopOtherAudio" ref="audioTagCell" :msg="answerVoiceObj"></answer-voice>
45
+ <answer-voice :msg="answerVoiceObj"></answer-voice>
46
+ <answer-voice :msg="answerVoiceObj"></answer-voice>
46
47
  <!-- <answer-voice @stopOtherAudio="stopOtherAudio" ref="audioTagCell" :msg="answerVoiceObj1"></answer-voice> -->
47
48
 
48
49
  <!-- <FileType :urls="urls" :color="black"></FileType>-->