改变前端提示音

pull/23/head
陶士涵 4 years ago
parent ddda4050da
commit 6c774f7d7e

@ -65,7 +65,10 @@
</div>
<!--//客服代码-->
<audio id="chatMessageAudio">
<source id="chatMessageAudioSource" src="/static/images/alert.mp3" type="audio/mpeg" />
<source id="chatMessageAudioSource" src="/static/images/alert2.ogg" type="audio/mpeg" />
</audio>
<audio id="chatMessageSendAudio">
<source id="chatMessageSendAudioSource" src="/static/images/sent.ogg" type="audio/mpeg" />
</audio>
</template>
</div>
@ -76,5 +79,5 @@
var KEFU_ID='{{.KEFU_ID}}';
var REFER='{{.Refer}}';
</script>
<script src="/static/js/chat-page.js?v=0.3.2"></script>
<script src="/static/js/chat-page.js?v=0.3.3"></script>
</html>

Binary file not shown.

Binary file not shown.

@ -128,6 +128,7 @@ new Vue({
_this.scrollBottom();
_this.messageContent = "";
clearInterval(_this.timer);
_this.sendSound();
});
},
@ -386,6 +387,11 @@ new Vue({
var b = document.getElementById("chatMessageAudio");
var p = b.play();
p && p.then(function(){}).catch(function(e){});
},
sendSound(){
var b = document.getElementById("chatMessageSendAudio");
var p = b.play();
p && p.then(function(){}).catch(function(e){});
}
},
mounted() {

Loading…
Cancel
Save