|
|
@@ -133,15 +133,19 @@
|
|
|
let logistic_name = package.order ? (package.order.logistic ? package.order.logistic.name : '') : '';
|
|
|
if (_this.logisticAudioURL[logistic_name]){
|
|
|
audio.src=_this.logisticAudioURL[logistic_name];
|
|
|
- audio.play();
|
|
|
+ setTimeout(()=>{
|
|
|
+ audio.play();
|
|
|
+ },10);
|
|
|
}else {
|
|
|
window.tempTip.setDuration(3000);
|
|
|
- window.axios.post('/package/measureMonitor/speech',{logistic:logistic_name})
|
|
|
+ window.axios.post('package/weigh/measureMonitor/speech',{logistic:logistic_name})
|
|
|
.then(function (response) {
|
|
|
if (response.data){
|
|
|
_this.logisticAudioURL[logistic_name]=response.data;
|
|
|
audio.src=response.data;
|
|
|
- audio.play();
|
|
|
+ setTimeout(()=>{
|
|
|
+ audio.play();
|
|
|
+ },10);
|
|
|
}else window.tempTip.show('没有对应快递名称!');
|
|
|
}).catch(function (err) {
|
|
|
window.tempTip.show('语音合成发生错误:'+err);
|