askbot-dragon 1.3.51 → 1.3.53
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
|
@@ -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.
|
|
177
|
-
if(item.
|
|
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.
|
|
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,9 @@ export default {
|
|
|
53
53
|
console.log(120);
|
|
54
54
|
this.$nextTick(() => {
|
|
55
55
|
setTimeout(() => {
|
|
56
|
-
console.log(this._$(`#audioTagCom_${this.msg.
|
|
57
|
-
this.activeAudio = this._$(`#audioTagCom_${this.msg.
|
|
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
|
+
this.activeAudio.load()
|
|
58
59
|
this.time = "00:00";
|
|
59
60
|
this.otherTime = this.transTime(this.activeAudio.duration);
|
|
60
61
|
this.durationNum = this.activeAudio.duration;
|
|
@@ -65,7 +66,7 @@ export default {
|
|
|
65
66
|
} else {
|
|
66
67
|
this.boxWidth = 160 + this.activeAudio.duration;
|
|
67
68
|
}
|
|
68
|
-
this._$(`#audioTagCom_${this.msg.
|
|
69
|
+
this._$(`#audioTagCom_${this.msg.content.extInfos[0].avCurrentTime}`).on("loadedmetadata", (e) => {
|
|
69
70
|
console.log(e.currentTarget);
|
|
70
71
|
this.time = "00:00";
|
|
71
72
|
console.log(e.currentTarget.duration);
|
|
@@ -89,15 +90,15 @@ export default {
|
|
|
89
90
|
false
|
|
90
91
|
);
|
|
91
92
|
|
|
92
|
-
this._$(`#audioTagCom_${this.msg.
|
|
93
|
+
this._$(`#audioTagCom_${this.msg.content.extInfos[0].avCurrentTime}`).on("timeupdate", () => {
|
|
93
94
|
this.updateProgress();
|
|
94
95
|
});
|
|
95
96
|
|
|
96
|
-
this._$(`#audioTagCom_${this.msg.
|
|
97
|
+
this._$(`#audioTagCom_${this.msg.content.extInfos[0].avCurrentTime}`).on("timeupdate", () => {
|
|
97
98
|
this.updateProgress();
|
|
98
99
|
});
|
|
99
100
|
|
|
100
|
-
this._$(`#audioTagCom_${this.msg.
|
|
101
|
+
this._$(`#audioTagCom_${this.msg.content.extInfos[0].avCurrentTime}`).on("ended", () => {
|
|
101
102
|
this.audioEnded();
|
|
102
103
|
});
|
|
103
104
|
}, 500);
|
|
@@ -119,18 +119,38 @@ export default {
|
|
|
119
119
|
return {
|
|
120
120
|
black:'',
|
|
121
121
|
answerVoiceObj: {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
122
|
+
"actionCategory": "START_NODE",
|
|
123
|
+
"apiKey": "81d9d6c3f13d4e1aa239cacee3192475",
|
|
124
|
+
"content": {
|
|
125
|
+
"filenName": "合成配音.mp3",
|
|
126
|
+
"extInfos": [
|
|
127
|
+
{
|
|
128
|
+
"duration": 4.752,
|
|
129
|
+
"avCurrentTime": 1683272364032,
|
|
130
|
+
"isShowUploadVideo": true,
|
|
131
|
+
"videoUploadPercent": 0,
|
|
132
|
+
"videoFlag": false
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"recommend": {
|
|
136
|
+
"description": "",
|
|
137
|
+
"list": [
|
|
138
|
+
{
|
|
139
|
+
"ext": {
|
|
140
|
+
"intentValue": []
|
|
141
|
+
},
|
|
142
|
+
"id": "",
|
|
143
|
+
"text": "",
|
|
144
|
+
"type": 0
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"status": false
|
|
148
|
+
},
|
|
149
|
+
"url": "https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/31623ccfe9dd4957bbd59c5823878bbe/2023/05/05/15/39/8755f665880695ca44e7ac7d2cf10d9e/voice_88755f665880695ca44e7ac7d2cf10d9.mp3"
|
|
150
|
+
},
|
|
151
|
+
"id": "6454b2c4cb83047f0816f4b9",
|
|
152
|
+
"type": "answer_voice"
|
|
153
|
+
},
|
|
134
154
|
answerVoiceObj1: {
|
|
135
155
|
id: "643f8e7c235d0d20541170d712",
|
|
136
156
|
intentId: 152859,
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<i class="iconfont guoran-shanchu"></i>
|
|
7
7
|
</section>
|
|
8
8
|
</div>
|
|
9
|
-
<template v-if="
|
|
10
|
-
<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
|
-
<
|
|
47
|
-
<
|
|
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
|
-
<
|
|
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
|
-
|
|
82
|
+
tagIds:[]
|
|
78
83
|
}
|
|
79
84
|
},
|
|
80
85
|
props:{
|