高级理财规划师
body {
fontfamily: Arial, sansserif;
margin: 0;
padding: 20px;
}
h1 {
textalign: center;
marginbottom: 30px;
}
p {
lineheight: 1.5;
}
.queryform {
width: 80%;
margin: 0 auto;
}
label {
display: block;
marginbottom: 10px;
}
input[type="text"], textarea {
width: 100%;
padding: 10px;
marginbottom: 15px;
}
button {
padding: 10px 20px;
backgroundcolor: 007BFF;
color: white;
border: none;
cursor: pointer;
margintop: 20px;
}
.result {
margintop: 50px;
padding: 20px;
border: 1px solid ccc;
borderradius: 5px;
}
高级理财规划师成绩查询
// 假设我们有一个成绩查询API
function fetchResults(name, registration, date) {
// 假设API地址为:https://api.example.com/理财规划/成绩?name={name}®istration={registration}&date={date}
fetch('https://api.example.com/理财规划/成绩?name=' name '®istration=' registration '&date=' date)
.then(response => response.json())
.then(data => {
document.getElementById('resultcontainer').innerHTML = `
详细信息:${data.description}
`;
document.getElementById('resultcontainer').style.display = 'block';
})
.catch(error => {
document.getElementById('resultcontainer').innerHTML = `
查询出错,可能的原因:${error.message}
`;});
}
document.querySelector('form').addEventListener('submit', e => {
e.preventDefault();
fetchResults(
document.getElementById('name').value,
document.getElementById('registration').value,
document.getElementById('date').value
);
});