|
@@ -6,12 +6,12 @@ $(document).ready(function(){
|
|
$("#sid").val(sid);
|
|
$("#sid").val(sid);
|
|
$("#id").val(surveyId);
|
|
$("#id").val(surveyId);
|
|
loadSurveyData(function(){
|
|
loadSurveyData(function(){
|
|
- $("#surveyList").attr("href","/#/dw/survey");
|
|
|
|
- $("#designSurvey").attr("href","/static/diaowen/design.html?surveyId="+surveyId);
|
|
|
|
|
|
+ $("#surveyList").attr("href","/dw/#/dw/survey");
|
|
|
|
+ $("#designSurvey").attr("href","/dw/static/diaowen/design.html?surveyId="+surveyId);
|
|
$("#dwPhone").hide();
|
|
$("#dwPhone").hide();
|
|
$("#dwPad").hide();
|
|
$("#dwPad").hide();
|
|
var tag = $("#tag").val();
|
|
var tag = $("#tag").val();
|
|
- $("#PcSurvey").attr("src","/static/diaowen/answer-p.html?surveyId="+surveyId+"&sid="+sid+"&tag="+tag);
|
|
|
|
|
|
+ $("#PcSurvey").attr("src","/dw/static/diaowen/answer-p.html?surveyId="+surveyId+"&sid="+sid+"&tag="+tag);
|
|
bindEvent();
|
|
bindEvent();
|
|
if(template!=null && template==="1"){
|
|
if(template!=null && template==="1"){
|
|
$("#editorPreview").hide();
|
|
$("#editorPreview").hide();
|
|
@@ -33,9 +33,9 @@ function bindEvent(){
|
|
if(thHref==="#dwPc"){
|
|
if(thHref==="#dwPc"){
|
|
|
|
|
|
}else if(thHref==="#dwPad"){
|
|
}else if(thHref==="#dwPad"){
|
|
- $("#PadSurvey").attr("src","/static/diaowen/answer-m.html?surveyId="+surveyId+"&sid="+sid+"&tag="+tag);
|
|
|
|
|
|
+ $("#PadSurvey").attr("src","/dw/static/diaowen/answer-m.html?surveyId="+surveyId+"&sid="+sid+"&tag="+tag);
|
|
}else if(thHref==="#dwPhone"){
|
|
}else if(thHref==="#dwPhone"){
|
|
- $("#PhoneSurvey").attr("src","/static/diaowen/answer-m.html?surveyId="+surveyId+"&sid="+sid+"&tag="+tag);
|
|
|
|
|
|
+ $("#PhoneSurvey").attr("src","/dw/static/diaowen/answer-m.html?surveyId="+surveyId+"&sid="+sid+"&tag="+tag);
|
|
}
|
|
}
|
|
$(".dwPreviewBody").hide();
|
|
$(".dwPreviewBody").hide();
|
|
$(thHref).show();
|
|
$(thHref).show();
|
|
@@ -53,7 +53,7 @@ function bindEvent(){
|
|
type: "post",
|
|
type: "post",
|
|
success: function (httpResult){
|
|
success: function (httpResult){
|
|
if(httpResult.resultCode===200){
|
|
if(httpResult.resultCode===200){
|
|
- window.location.href="/#/dw/survey/c/url/"+surveyId;
|
|
|
|
|
|
+ window.location.href="/dw/#/dw/survey/c/url/"+surveyId;
|
|
}else{
|
|
}else{
|
|
alert(httpResult.resultMsg);
|
|
alert(httpResult.resultMsg);
|
|
}
|
|
}
|
|
@@ -61,10 +61,11 @@ function bindEvent(){
|
|
error: function(xmlHttpRequest, textStatus, errorThrown){
|
|
error: function(xmlHttpRequest, textStatus, errorThrown){
|
|
// alert(xmlHttpRequest);
|
|
// alert(xmlHttpRequest);
|
|
if(xmlHttpRequest.status===401){
|
|
if(xmlHttpRequest.status===401){
|
|
- window.location.href="/login";
|
|
|
|
|
|
+ // window.location.href="/dw/#/login";
|
|
|
|
+ window.location.href="/dw/#/401";
|
|
}else if(xmlHttpRequest.status===403){
|
|
}else if(xmlHttpRequest.status===403){
|
|
alert("没有发布权限");
|
|
alert("没有发布权限");
|
|
- // window.location.href="/#/exception/403";
|
|
|
|
|
|
+ // window.location.href="/dw/#/exception/403";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -83,7 +84,8 @@ function loadSurveyData(callback){
|
|
type:"get",
|
|
type:"get",
|
|
success:function(httpResult){
|
|
success:function(httpResult){
|
|
if(httpResult.resultCode==401){
|
|
if(httpResult.resultCode==401){
|
|
- window.location.href="/login";
|
|
|
|
|
|
+ // window.location.href="/dw/#/login";
|
|
|
|
+ window.location.href="/dw/#/401";
|
|
}
|
|
}
|
|
//surveyName
|
|
//surveyName
|
|
if(httpResult.resultCode==200){
|
|
if(httpResult.resultCode==200){
|