更新 infowindow-view.js

This commit is contained in:
钟进 2020-06-13 14:42:33 +00:00
parent 2e1e949065
commit ca7e857600

View File

@ -180,10 +180,15 @@ var Infowindow = View.extend({
$video
// .load(this._onLoadVideoSuccess)
.error(this._onLoadImageError)
.error(this._onLoadVideoError)
.attr('src', url);
},
_onLoadVideoError: function () {
this._stopCoverLoader();
this._showInfowindowVideoError();
},
_onLoadVideoSuccess: function () {
var $cover = this.$('.js-cover');
var $img = this.$('.CDB-infowindow-media-item');