|
|
|
@ -1124,7 +1124,22 @@
|
|
|
|
|
document.querySelector('.date').innerHTML = '日期:' + new Date().toLocaleDateString().replace(/\//g, '-')
|
|
|
|
|
document.querySelector('#politics').innerHTML = document.querySelector('#politics').innerHTML === '1' ? '党员' : document.querySelector('#politics').innerHTML === '2' ? '团员' : '群众';
|
|
|
|
|
document.querySelector('#sex').innerHTML = document.querySelector('#sex').innerHTML === '0' ? '男' : '女'
|
|
|
|
|
|
|
|
|
|
var postHtml = document.querySelector("#posts").innerHTML;
|
|
|
|
|
const dataArray = postHtml.split("], ");
|
|
|
|
|
const postsArray = dataArray.map(item => {
|
|
|
|
|
const trimmedItem = item.replace("[", "").replace("]", "").trim();
|
|
|
|
|
const lines = trimmedItem.split("\n");
|
|
|
|
|
const postObject = {};
|
|
|
|
|
lines.forEach(line => {
|
|
|
|
|
const [key, value] = line.split("=");
|
|
|
|
|
if (key && value) {
|
|
|
|
|
postObject[key.trim()] = value.trim();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return postObject;
|
|
|
|
|
});
|
|
|
|
|
document.querySelector("#posts").innerHTML = ''
|
|
|
|
|
document.querySelector("#posts").innerHTML = postsArray[0].postName !== undefined ? postsArray[0].postName : ''
|
|
|
|
|
function ChangeRowspanHiddenData()
|
|
|
|
|
{
|
|
|
|
|
var node;
|
|
|
|
|