Authored by chaogeng

修改标签请求根路径

@@ -96,7 +96,7 @@ @@ -96,7 +96,7 @@
96 status: $("#rewardstatus1").combobox("getValue"), 96 status: $("#rewardstatus1").combobox("getValue"),
97 type: $("#rewardtype1").combobox("getValue") 97 type: $("#rewardtype1").combobox("getValue")
98 },*/ 98 },*/
99 - url: contextPath + "/labelGroupManage/getLabelGroupList", 99 + url: serverContextPath + "/labelGroupManage/getLabelGroupList",
100 method: 'POST', 100 method: 'POST',
101 loadFilter: function (data) { 101 loadFilter: function (data) {
102 var tmp = defaultLoadFilter(data); 102 var tmp = defaultLoadFilter(data);
@@ -168,7 +168,7 @@ @@ -168,7 +168,7 @@
168 index = $(this).attr("index"); 168 index = $(this).attr("index");
169 $.messager.confirm("确认", "确认删除该分组吗?", function (flag) { 169 $.messager.confirm("确认", "确认删除该分组吗?", function (flag) {
170 if(flag){ 170 if(flag){
171 - $.post(contextPath + "/labelGroupManage/deleteLabelGroup", { 171 + $.post(serverContextPath + "/labelGroupManage/deleteLabelGroup", {
172 id : close_id, 172 id : close_id,
173 }, function(data) { 173 }, function(data) {
174 if (data.code == CODE_SUCCESS) { 174 if (data.code == CODE_SUCCESS) {
@@ -223,7 +223,7 @@ @@ -223,7 +223,7 @@
223 223
224 224
225 $("#activityAddForm").form("submit", { 225 $("#activityAddForm").form("submit", {
226 - url: contextPath + "/labelGroupManage/addUpLabelGroup", 226 + url: serverContextPath + "/labelGroupManage/addUpLabelGroup",
227 onSubmit: function (param) { 227 onSubmit: function (param) {
228 if(data != null){ 228 if(data != null){
229 param.id = data.id; 229 param.id = data.id;
1 //todo 分解成多个接口,或接受参数的方式,实现加载可配置化,而不是笼统的暴力加载方式,太low 1 //todo 分解成多个接口,或接受参数的方式,实现加载可配置化,而不是笼统的暴力加载方式,太low
2 2
3 var contextPath = "/pfcms"; 3 var contextPath = "/pfcms";
4 -var h = "/platform"; 4 +var serverContextPath = "/platform";
5 5
6 document.write("<meta charset='UTF-8'>"); 6 document.write("<meta charset='UTF-8'>");
7 //首先加载样式,保证样式先显示 7 //首先加载样式,保证样式先显示