|
@@ -538,11 +538,13 @@
|
|
|
}else{
|
|
|
kwsHtml +='<div class="modify" style="display: none;">'
|
|
|
}
|
|
|
+ var p = kws_arr[_keyArr[i]["key"].join(" ")].split("-")[0]
|
|
|
+ console.log("p:"+p)
|
|
|
kwsHtml +='<textarea name="" rows="1" placeholder="" maxlength="20">'+_keyArr[i]["key"].join(" ")+'</textarea>'
|
|
|
+'<button class="addAdjunctWord" onclick="toappendkey(this)">'+ak_remark+' 附加词 <i class="appendkey '+ak_showClass+'">('+appendkeylth+')</i></button>'
|
|
|
+'<button class="addExclusion" onclick="tonotkey(this)">'+nk_remark+' 排除词 <i class="notkey '+nk_showClass+'">('+notkeylth+')</i></button>'
|
|
|
+'<button class="deleteKey">删除</button>'
|
|
|
- +'<button class="ascertainKey" dataIndex="'+i+'" onclick="saveK(this)">确定</button>'
|
|
|
+ +'<button class="ascertainKey" dataIndex="'+p+'" onclick="saveK(this)">确定</button>'
|
|
|
+'</div>'
|
|
|
+'</li>'
|
|
|
}
|
|
@@ -556,7 +558,7 @@
|
|
|
}
|
|
|
//跳转附加词
|
|
|
function toappendkey(th){
|
|
|
- history.replaceState("","","/front/vipsubscribe/toSetKeyWordPage?page=221")
|
|
|
+ history.replaceState("","","/front/vipsubscribe/toSetKeyWordPage?page=231")
|
|
|
if(!$('.enter.addkeyWord').is(':hidden')){
|
|
|
if($('.addkeyWord input.enterOne').val()==""){
|
|
|
return
|
|
@@ -574,7 +576,7 @@
|
|
|
}
|
|
|
//
|
|
|
function tonotkey(th){
|
|
|
- history.replaceState("","","/front/vipsubscribe/toSetKeyWordPage?page=221")
|
|
|
+ history.replaceState("","","/front/vipsubscribe/toSetKeyWordPage?page=231")
|
|
|
if(!$('.enter.addkeyWord').is(':hidden')){
|
|
|
if($('.addkeyWord input.enterOne').val()==""){
|
|
|
return
|
|
@@ -625,6 +627,7 @@
|
|
|
var $this = $(th);
|
|
|
var yuan_index = $this.attr("dataIndex")
|
|
|
kws_name = $(th).siblings('textarea').val();
|
|
|
+ console.log(kws_arr[kws_name])
|
|
|
if(kws_arr[kws_name]!=undefined&&kws_arr[kws_name]!=(yuan_index+"-"+classify_index)){
|
|
|
weui.toast('您设置的关键词已存在,请调整后再添加。', {
|
|
|
duration: 2000,
|
|
@@ -691,7 +694,8 @@
|
|
|
//删除关键词
|
|
|
if(t!="DK"){
|
|
|
kws_arr[kws_name] = kws_index+"-"+classify_index
|
|
|
- if(kws_index == ($(".showKeyWord li").length-1)){
|
|
|
+ console.log(kws_index,"----",$(".showKeyWord li").length)
|
|
|
+ if(kws_index == $(".showKeyWord li").length){
|
|
|
//新加
|
|
|
var karr = {"key":kws_name.split(" "),"appendkey":addition_kws,"notkey":not_kws}
|
|
|
var keyM = [];
|