|
@@ -248,7 +248,7 @@ function showAlls(){
|
|
|
alert("请稍后再试"+st)
|
|
|
}
|
|
|
})
|
|
|
- window.location.reload()
|
|
|
+ window.location.href="/swordfish/page";
|
|
|
})
|
|
|
$("html,body").addClass("overflow-hidden");
|
|
|
})
|
|
@@ -281,7 +281,7 @@ function showAlls(){
|
|
|
alert("请稍后再试"+st)
|
|
|
}
|
|
|
})
|
|
|
- window.location.reload()
|
|
|
+ window.location.href="/swordfish/page";
|
|
|
})
|
|
|
$("#txt_tip").text(contents+strs)
|
|
|
$(".visible").show()
|
|
@@ -464,7 +464,7 @@ $(function(){
|
|
|
liobj.next(".child-node").find("li:eq(1)").append('<div class="com-last">全国</div>');
|
|
|
}
|
|
|
}
|
|
|
- var setKeyWord = function(type,keys,searchnameIsExsit){
|
|
|
+ var setKeyWord = function(type,keys){
|
|
|
if(typeof(keys) == "undefined" || keys.length == 0){
|
|
|
return;
|
|
|
}
|
|
@@ -472,13 +472,7 @@ $(function(){
|
|
|
keys[i] = keys[i].replace(/\+/g," ");
|
|
|
KeyWordDialog.AppendNode($("#"+type+"-keyword"),keys[i]);
|
|
|
}
|
|
|
- if(!searchnameIsExsit){
|
|
|
- $("#"+type+"-content li:first .com-last").remove();
|
|
|
- $("#"+type+"-content li:first").append('<div class="com-last">'+keys.join(";")+'</div>');
|
|
|
- commonAjaxReq($("#tender-keyword"),type);
|
|
|
- }else{
|
|
|
- $("#"+type+"-content li:first").append('<div class="com-last">'+keys.join(";")+'</div>');
|
|
|
- }
|
|
|
+ $("#"+type+"-content li:first").append('<div class="com-last">'+keys.join(";")+'</div>');
|
|
|
}
|
|
|
var setScope = function(type,scope){
|
|
|
var dialogObj = $("#"+type+"-scope");
|
|
@@ -504,6 +498,36 @@ $(function(){
|
|
|
}
|
|
|
$("body").append($("#tender-keyword").clone().removeAttr("id").attr("id","bid-keyword"))
|
|
|
.append($("#tender-scope").clone().removeAttr("id").attr("id","bid-scope"));
|
|
|
+ var searchnameIsExsit = false;
|
|
|
+ if(msgset == ""){
|
|
|
+ if(typeof(searchname) != "undefined" && searchname.length > 0 ){
|
|
|
+ msgset = {};
|
|
|
+ msgset[s_type] = {"a_key":[searchname],"s_scope":"A"};
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if (typeof(searchname) != "undefined" && searchname.length > 0 ){
|
|
|
+ if(typeof(msgset[s_type]) != "undefined"){
|
|
|
+ var keywordes = msgset[s_type].a_key;
|
|
|
+ if(typeof(keywordes) != "undefined" && keywordes.length > 0){
|
|
|
+ for(var i=0;i<keywordes.length;i++){
|
|
|
+ var keywordesArr = keywordes[i].split("+");
|
|
|
+ for(var k=0;k<keywordesArr.length;k++){
|
|
|
+ if(keywordesArr[k] == searchname){
|
|
|
+ searchnameIsExsit = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(!searchnameIsExsit){
|
|
|
+ keywordes.push(searchname);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ msgset[s_type]["a_key"] = [searchname];
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ msgset[s_type] = {"a_key":[searchname]};
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if(typeof(msgset.tender) != "undefined"){
|
|
|
setKeyWord("tender",msgset.tender.a_key,false);
|
|
|
setScope("tender",msgset.tender.s_scope);
|
|
@@ -540,9 +564,17 @@ $(function(){
|
|
|
turnOn($(this));
|
|
|
}
|
|
|
//判断是不是开,是开再判断是不是在有效期内,如果不在有效期内,则进行提示并存快照
|
|
|
-
|
|
|
commonAjaxReq(null,$(this).attr("v"));
|
|
|
});
|
|
|
+ //直接订阅带过来的关键字不存在
|
|
|
+ if(typeof(searchname) != "undefined" && searchname.length > 0){
|
|
|
+ //自动打开
|
|
|
+ if(!$("#"+s_type +"-on-off").hasClass("open")){
|
|
|
+ $("#"+s_type+"-on-off").click();
|
|
|
+ }else if(!searchnameIsExsit){//修改关键词
|
|
|
+ commonAjaxReq($("#"+s_type+"-keyword"),s_type);
|
|
|
+ }
|
|
|
+ }
|
|
|
//收费规则
|
|
|
$(".rule").closest(".parent-node").click(function(){
|
|
|
$(".credit-dialog").show();
|
|
@@ -587,32 +619,4 @@ $(function(){
|
|
|
alert("请输入关键字后预览。")
|
|
|
}
|
|
|
})
|
|
|
- if (typeof(searchname) != "undefined" && searchname.length > 0 ){
|
|
|
- if(typeof(msgset[s_type]) != "undefined"){
|
|
|
- var keywordes = msgset[s_type].a_key
|
|
|
- if(keywordes && keywordes.length > 0){
|
|
|
- var searchnameIsExsit = false;
|
|
|
- for(var i=0;i<keywordes.length;i++){
|
|
|
- var keywordesArr = keywordes[i].split("+");
|
|
|
- for(var k=0;k<keywordesArr.length;k++){
|
|
|
- if(keywordesArr[k] == searchname){
|
|
|
- searchnameIsExsit = true;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if(!searchnameIsExsit){
|
|
|
- keywordes.push(searchname);
|
|
|
- }
|
|
|
- }else{
|
|
|
- keywordes.push(searchname)
|
|
|
- }
|
|
|
-
|
|
|
- }else{
|
|
|
- keywordes.push(searchname);
|
|
|
- }
|
|
|
- setKeyWord(s_type,keywordes,searchnameIsExsit);
|
|
|
- if(!$("#"+s_type +"-on-off").hasClass("open")){
|
|
|
- $("#"+s_type+"-on-off").click();
|
|
|
- }
|
|
|
- }
|
|
|
});
|