var TempPreviewPanel = {
template: '
',
props: [],
data: function() {
return {
}
},
methods: {
listDetail: function() {
var vm = this
guidanceAPI.listDetail({
modelCode: vm.modelCode
}).then(function(res) {
var data = res.data
if(data) {
vm.content = data.content
vm.modelName = data.modelName
vm.imgs = _.map(data.imagesUrls, function(s) {
return httpRequest.getImgUrl(s)
})
}
})
},
getDetail: function (){
var regN = /\n/g;
var regRN = /\r\n/g;
var content = detail.content.replace(/ /g, " ");
content = content.replace(regN,"
");
var p = ""+content+"
",
images = "";
for(i=0; i -1)){
src = getImgUrl(detail.images[i]);
}
images += "";
}
$(".content").append(p+images);
},
goBack: function() {
this.$router.back()
}
}
}