|
|
@ -616,11 +616,16 @@ class PollNew extends Component {
|
|
|
|
// let name="Anchor_"+index;
|
|
|
|
// let name="Anchor_"+index;
|
|
|
|
console.log("scrollToAnchor");
|
|
|
|
console.log("scrollToAnchor");
|
|
|
|
console.log(index);
|
|
|
|
console.log(index);
|
|
|
|
|
|
|
|
try {
|
|
|
|
if (index) {
|
|
|
|
if (index) {
|
|
|
|
let anchorElement = document.getElementById(index);
|
|
|
|
let anchorElement = document.getElementById(index);
|
|
|
|
// if(anchorElement) { anchorElement.scrollIntoView(); }
|
|
|
|
// if(anchorElement) { anchorElement.scrollIntoView(); }
|
|
|
|
$("html").animate({scrollTop: $(anchorElement).offset().top - 150})
|
|
|
|
$("html").animate({scrollTop: $(anchorElement).offset().top - 150})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//新增添加题目 有new
|
|
|
|
//新增添加题目 有new
|
|
|
|
addMytopic = (index, pollid, Insertposition, Whether, id,inty) => {
|
|
|
|
addMytopic = (index, pollid, Insertposition, Whether, id,inty) => {
|
|
|
|