askbot-dragon 1.3.51 → 1.3.52

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.3.51",
3
+ "version": "1.3.52",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -173,8 +173,8 @@ export default {
173
173
  this.$refs.previewPdf.drawer = true;
174
174
  }
175
175
  this.$refs.previewPdf.fileType = type
176
- this.$refs.previewPdf.tagId = item.tagId
177
- if(item.tagId) {
176
+ this.$refs.previewPdf.tagIds = item.tagIds
177
+ if(item.tagIds) {
178
178
  return
179
179
  }
180
180
  this.$nextTick(() =>{
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div :style="{ width: boxWidth + 'px' }" class="answer-voice">
3
- <audio :id="'audioTagCom_' + msg.id" :src="msg.content.url"></audio>
3
+ <audio :id="'audioTagCom_' + msg.content.extInfos[0].avCurrentTime" :src="msg.content.url"></audio>
4
4
  <div class="audiocon">
5
5
  <!-- 按钮 -->
6
6
  <div class="leftBtn">
@@ -53,8 +53,8 @@ export default {
53
53
  console.log(120);
54
54
  this.$nextTick(() => {
55
55
  setTimeout(() => {
56
- console.log(this._$(`#audioTagCom_${this.msg.id}`)[0]);
57
- this.activeAudio = this._$(`#audioTagCom_${this.msg.id}`)[0];
56
+ console.log(this._$(`#audioTagCom_${this.msg.content.extInfos[0].avCurrentTime}`)[0]);
57
+ this.activeAudio = this._$(`#audioTagCom_${this.msg.content.extInfos[0].avCurrentTime}`)[0];
58
58
  this.time = "00:00";
59
59
  this.otherTime = this.transTime(this.activeAudio.duration);
60
60
  this.durationNum = this.activeAudio.duration;
@@ -65,7 +65,7 @@ export default {
65
65
  } else {
66
66
  this.boxWidth = 160 + this.activeAudio.duration;
67
67
  }
68
- this._$(`#audioTagCom_${this.msg.id}`).on("loadedmetadata", (e) => {
68
+ this._$(`#audioTagCom_${this.msg.content.extInfos[0].avCurrentTime}`).on("loadedmetadata", (e) => {
69
69
  console.log(e.currentTarget);
70
70
  this.time = "00:00";
71
71
  console.log(e.currentTarget.duration);
@@ -89,15 +89,15 @@ export default {
89
89
  false
90
90
  );
91
91
 
92
- this._$(`#audioTagCom_${this.msg.id}`).on("timeupdate", () => {
92
+ this._$(`#audioTagCom_${this.msg.content.extInfos[0].avCurrentTime}`).on("timeupdate", () => {
93
93
  this.updateProgress();
94
94
  });
95
95
 
96
- this._$(`#audioTagCom_${this.msg.id}`).on("timeupdate", () => {
96
+ this._$(`#audioTagCom_${this.msg.content.extInfos[0].avCurrentTime}`).on("timeupdate", () => {
97
97
  this.updateProgress();
98
98
  });
99
99
 
100
- this._$(`#audioTagCom_${this.msg.id}`).on("ended", () => {
100
+ this._$(`#audioTagCom_${this.msg.content.extInfos[0].avCurrentTime}`).on("ended", () => {
101
101
  this.audioEnded();
102
102
  });
103
103
  }, 500);
@@ -6,8 +6,8 @@
6
6
  <i class="iconfont guoran-shanchu"></i>
7
7
  </section>
8
8
  </div>
9
- <template v-if="tagId">
10
- <pdfPosition :tagId="tagId"></pdfPosition>
9
+ <template v-if="tagIds">
10
+ <pdfPosition :tagIds="tagIds"></pdfPosition>
11
11
  </template>
12
12
  <template v-else>
13
13
  <div v-if="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 60px)">
@@ -43,23 +43,28 @@
43
43
  <i class="iconfont guoran-shanchu"></i>
44
44
  </section>
45
45
  </div>
46
- <div v-if="fileType == 'VIDEO'" style="width: 100%;height:calc(100% - 60px)">
47
- <video :src="url" controls width="100%;" height="98%"></video>
48
- </div>
49
- <div v-else-if="fileType == 'HTML'" style="width: 100%;height:calc(100% - 60px)">
50
- <div class="preview_iframe_html" style="text-algin:left" v-html="fileText"></div>
51
- </div>
52
- <template v-else-if="url.includes('https://www') || url.includes('http://www')">
53
- <iframe class="preview_iframe"
54
- :src="url"
55
- width="100%"
56
- height="100%"
57
- scrolling="100%"
58
- frameborder="no"
59
- border="0"></iframe>
46
+ <template v-if="tagIds">
47
+ <pdfPosition :tagIds="tagIds"></pdfPosition>
60
48
  </template>
61
49
  <template v-else>
62
- <iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
50
+ <div v-if="fileType == 'VIDEO'" style="width: 100%;height:calc(100% - 60px)">
51
+ <video :src="url" controls width="100%;" height="98%"></video>
52
+ </div>
53
+ <div v-else-if="fileType == 'HTML'" style="width: 100%;height:calc(100% - 60px)">
54
+ <div class="preview_iframe_html" style="text-algin:left" v-html="fileText"></div>
55
+ </div>
56
+ <template v-else-if="url.includes('https://www') || url.includes('http://www')">
57
+ <iframe class="preview_iframe"
58
+ :src="url"
59
+ width="100%"
60
+ height="100%"
61
+ scrolling="100%"
62
+ frameborder="no"
63
+ border="0"></iframe>
64
+ </template>
65
+ <template v-else>
66
+ <iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
67
+ </template>
63
68
  </template>
64
69
  </el-drawer>
65
70
  </template>
@@ -74,7 +79,7 @@ export default {
74
79
  fileType:"",
75
80
  isPc:true,
76
81
  drawer:false,
77
- tagId:''
82
+ tagIds:[]
78
83
  }
79
84
  },
80
85
  props:{