|
@@ -322,7 +322,14 @@
|
|
|
$('input:radio[name="way"]').click(function() {
|
|
|
var checkValue = $('input:radio[name="way"]:checked').val();
|
|
|
$('.match_way').hide(200);
|
|
|
- $('.match').html(checkValue)
|
|
|
+ $('.match').html(checkValue);
|
|
|
+ var selectType = "";
|
|
|
+ if(checkValue === "按标题匹配"){
|
|
|
+ selectType = "title";
|
|
|
+ }else if(checkValue === "按全文匹配"){
|
|
|
+ selectType = "all";
|
|
|
+ }
|
|
|
+ localStorage.selectType = selectType;
|
|
|
});
|
|
|
$(".cancel").click(function() {
|
|
|
$('.match_way').hide(200)
|
|
@@ -674,6 +681,17 @@
|
|
|
$(".confirm").hide();
|
|
|
$(".resetOne").show();
|
|
|
}
|
|
|
+ //关键词选择方式
|
|
|
+ if(localStorage.selectType!==""&&localStorage.selectType!==undefined){
|
|
|
+ var selectType = localStorage.selectType;
|
|
|
+ var type = "";
|
|
|
+ if(selectType === "title"){
|
|
|
+ type = "按标题匹配";
|
|
|
+ }else if (selectType === "all"){
|
|
|
+ type = "按全文匹配";
|
|
|
+ }
|
|
|
+ $("match").text(type);
|
|
|
+ }
|
|
|
//信息类型
|
|
|
if(localStorage.subTypes!==undefined && localStorage.subTypes!==""){
|
|
|
var subType = localStorage.subTypes;
|
|
@@ -831,6 +849,14 @@
|
|
|
}
|
|
|
if(localStorage.selectType!==undefined&&localStorage.selectType!==""){
|
|
|
selectType = localStorage.selectType;
|
|
|
+ }else{
|
|
|
+ var type = $(".mactch").text();
|
|
|
+ if(type === "按标题匹配"){
|
|
|
+ selectType = "title";
|
|
|
+ }else if(type === "按全文匹配"){
|
|
|
+ selectType = "all";
|
|
|
+ }
|
|
|
+ localStorage.selectType = selectType;
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: 'post',
|