| | |
| | | _this.geometry = info.geometry;//弹窗挂载的位置 |
| | | _this.id = info.id; |
| | | _this.entity=info.entity; |
| | | _this.type=info.type; |
| | | _this.content=info.content; |
| | | _this.ctn = $("<div class='bx-popup-ctn' id = '"+_this.id+"'>"); |
| | | |
| | | var entity={"id":_this.id,"dom":_this.ctn}; |
| | | Popup.prototype.dom.push(entity); |
| | | |
| | | $(_this.viewer.container).append( _this.ctn); |
| | | //测试弹窗内容 |
| | | var testConfig = { |
| | | header:_this.entity.title, |
| | | //header:"", |
| | | content:'<img class="image" style="width:100%;height:100%;max-width:200px;max-height:150px" src=""></img>' |
| | | //弹窗内容 |
| | | var testConfig; |
| | | if(_this.type=="image"){ |
| | | testConfig= { |
| | | header:_this.entity.title, |
| | | //header:"", |
| | | content:'<img class="image" style="width:100%;height:100%;max-width:200px;max-height:150px" src=""></img>' |
| | | } |
| | | } |
| | | else if(_this.type=="text"){ |
| | | testConfig= { |
| | | header:_this.entity.title, |
| | | //header:"", |
| | | content:'<textarea class="textarea" style="color:white;width:100%;height:150px;max-width:200px;max-height:150px;background:transparent;"></textarea>' |
| | | } |
| | | } |
| | | _this.ctn.append(_this.createHtml(testConfig.header,testConfig.content,_this.id)); |
| | | |