var pagePath = $("meta[name='_ctx']").attr("content"); pagePath = pagePath.substring(0, pagePath.length - 1); document.writeln("
"); document.writeln("
"); document.writeln("
导航栏
"); document.writeln("
"); document.writeln("
    "); document.writeln("
  • "); document.writeln(" 创新能力体检"); document.writeln("
  • "); document.writeln("
  • "); document.writeln(" 项目能力申报"); document.writeln("
  • "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("

诊断满意度

"); document.writeln("

您对本次诊断是否满意
点击这里进行评价

"); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("

诊断满意度打分 :

"); document.writeln(" ×"); document.writeln("
"); document.writeln("
"); document.writeln("

请针对页面下述诊断报告进行满意度打分及建议

"); document.writeln("
"); document.writeln(" 打分:"); document.writeln("
    "); document.writeln("
  • "); document.writeln("
  • "); document.writeln("
  • "); document.writeln("
  • "); document.writeln("
  • "); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln(" 反馈和建议:"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln(" "); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("

提交成功

"); document.writeln(" ×"); document.writeln("
"); document.writeln("
"); document.writeln("

满意度打分提交成功!

"); document.writeln("

报告详情与打分可前往后台政务服务管理-> 政策雷达查看

"); document.writeln("

点击“确定”返回门户

"); document.writeln("
"); document.writeln("
"); document.writeln(" 确定"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); var star = $("#satisfaction_score").val(); var feedback = $("#report_feedback").val(); $(function() { var url = window.location.href if(star > 0) { $(".fixed-menu .pj-link").hide() } // 评价后显示状态 $("#feedback").val(feedback); for (var i = 1; i <= star; i++) { $('.stars li:nth-child(' + i + ')').css('color', '#F0AD4E'); if (star == 1) { $('#pjdj').text("不满意") } else if (star == 2) { $('#pjdj').text("不太满意") } else if (star == 3) { $('#pjdj').text("马马虎虎") } else if (star == 4) { $('#pjdj').text("比较满意") } else { $('#pjdj').text("满意") } } $(".fixed-menu-nav-list ul li a").each(function () { var menuUrl = $(this).attr("href") var urlIndex = menuUrl.lastIndexOf('/') var pathName = menuUrl.substring(urlIndex+1) if(url.indexOf(pathName) > -1){ $(this).parent().addClass("active") } else { $(this).parent().removeClass("active") } }); //为星星设置hover效果 var isClicked = false; var beforeClickedIndex = -1; var clickNum = 0; //点击同一颗星次数 $('.stars li').hover( function () { if (!isClicked && star<0) { $(this).css('color', '#F0AD4E'); var index = $(this).index(); for (var i = 0; i <= index; i++) { $('li:nth-child(' + i + ')').css('color', '#F0AD4E'); } } }, function () { if (!isClicked && star<0) { $('li').css('color', '#ADADAD'); } } ); //星星点击事件 $('.stars li').click(function () { startVal = $(this).attr("startVal"); $("#startVal").val(startVal); $('li').css('color', '#ADADAD'); isClicked = true; var index = $(this).index()+1; for (var i = 1; i <= index; i++) { $('li:nth-child(' + i + ')').css('color', '#F0AD4E'); star = index if (index == 1) { $('#pjdj').text("不满意") } else if (index == 2) { $('#pjdj').text("不太满意") } else if (index == 3) { $('#pjdj').text("马马虎虎") } else if (index == 4) { $('#pjdj').text("比较满意") } else { $('#pjdj').text("满意") } } // if (index == beforeClickedIndex) { //两次点击同一颗星星 该星星颜色变化 // clickNum++; // if (clickNum % 2 == 1) { // $('li:nth-child(' + (index + 1) + ')').css('color', '#ADADAD'); // if(startVal == 1) { // startVal = 0 // star = 0 // } // $('#pjdj').text("") // console.log("if") // } else { // $('li:nth-child(' + (index + 1) + ')').css('color', '#F0AD4E'); // console.log("else") // } // // } else { // clickNum = 0; // beforeClickedIndex = index; // } // star = startVal }); }); // 评价弹出层 function modaldemo(){ $("#modal-demo").modal("show") }; function modaldemo2(){ // var data = $("#scoreForm").serializeArray(); // data.feedback = "123456"; // console.log(data); if(star > 0) { $("#scoreForm").ajaxSubmit({ url: pagePath + "/policy/submitFeedback", type: "post", data: { feedback: $("#feedback").val() }, dataType: "json", success: function (result) { $(".fixed-menu .pj-link").hide() }, error: function () { errorMessage('系统错误!'); } }); $("#modal-demo").hide(); $("#evaluation").modal("show"); } else { errorMessage("请打分") // alert("请打分") } }; function modalHide() { $("#modal-demo").modal("hide"); $("#evaluation").modal("hide"); }