|
@@ -75,6 +75,7 @@
|
75
|
75
|
</div>
|
76
|
76
|
</div>
|
77
|
77
|
</div>
|
|
78
|
+ <audio :src="audioSrc" autoplay :style="{ width: '1px', height: '1px' }" ></audio>
|
78
|
79
|
</div>
|
79
|
80
|
</template>
|
80
|
81
|
|
|
@@ -111,7 +112,8 @@ export default {
|
111
|
112
|
disableOnInteraction: false
|
112
|
113
|
}
|
113
|
114
|
},
|
114
|
|
- num: 1
|
|
115
|
+ num: 1,
|
|
116
|
+ audioSrc: ''
|
115
|
117
|
}
|
116
|
118
|
},
|
117
|
119
|
computed: {
|
|
@@ -188,6 +190,7 @@ export default {
|
188
|
190
|
this.timeNum = 0
|
189
|
191
|
window.setTimeout(() => {
|
190
|
192
|
item.show = true
|
|
193
|
+ this.audioSrc = item.audio
|
191
|
194
|
}, 100)
|
192
|
195
|
if (this.userList.length > 2) {
|
193
|
196
|
this.userList.splice(0, 1)
|
|
@@ -225,11 +228,14 @@ export default {
|
225
|
228
|
},
|
226
|
229
|
getPersonList () {
|
227
|
230
|
this.getPerson().then(res => {
|
228
|
|
- if (res) {
|
|
231
|
+ if (res && res.isShow) {
|
|
232
|
+ const wds = (res.words || '').replace('{{name}}', res.personName)
|
|
233
|
+
|
229
|
234
|
this.returnUserList({
|
230
|
235
|
firstName: (res.classId || res.classId === 1) ? '' : res.personName,
|
231
|
|
- words: res.words.replace('{{name}}', res.personName),
|
232
|
|
- show: false
|
|
236
|
+ words: wds,
|
|
237
|
+ show: false,
|
|
238
|
+ audio: `http://ycapi.jcjyhn.com/welcome-api/?t=${wds}&rand=${(new Date()).valueOf()}`
|
233
|
239
|
})
|
234
|
240
|
}
|
235
|
241
|
this.getPersonList()
|