|
@@ -12,13 +12,14 @@ function GuideIntroDialog () {
|
|
|
codes: codes
|
|
|
}
|
|
|
_this.$dialog.modal('hide')
|
|
|
+ _this.$dialog.find('.content-iframe').attr('src', '')
|
|
|
$.ajax({
|
|
|
type: 'post',
|
|
|
url: '/publicapply/free/getJyAdList',
|
|
|
contentType: 'application/json',
|
|
|
data: JSON.stringify(params),
|
|
|
success: function (r) {
|
|
|
- if (r.error_code === 0 && r.data && r.data["pc-guide"] && r.data["pc-guide"].length > 0) {
|
|
|
+ if (r.error_code === 0 && r.data && r.data["pc-guide"] && $.isArray(r.data[_this.ad]) && r.data["pc-guide"].length > 0) {
|
|
|
_this.$dialog.find('.content-iframe').attr('src', _this.iframeUrl)
|
|
|
_this.$dialog.modal('show')
|
|
|
}
|