2021-07-23 12:10:24 +08:00
|
|
|
<%
|
|
|
|
function layoutDiv() {
|
|
|
|
var el = '';
|
2022-11-14 00:28:48 +08:00
|
|
|
const cmt = page.cmt;
|
|
|
|
if (cmt && cmt.service && (cmt.service.length > 0)) {
|
|
|
|
const name = cmt.service;
|
|
|
|
const body = cmt[name];
|
|
|
|
el += '<div id="' + name + '"';
|
|
|
|
for (let key of Object.keys(body)) {
|
|
|
|
if (body[key] !== null) {
|
|
|
|
el += ' ' + key + '="' + body[key] + '"';
|
|
|
|
}
|
2021-07-23 12:10:24 +08:00
|
|
|
}
|
2022-11-14 00:28:48 +08:00
|
|
|
el += '></div>';
|
2021-07-23 12:10:24 +08:00
|
|
|
}
|
|
|
|
return el;
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
|
2024-01-19 13:51:55 +08:00
|
|
|
<%- icon('default:loading') %>
|
2021-07-23 12:10:24 +08:00
|
|
|
|
|
|
|
<%- layoutDiv() %>
|