|
@@ -20,10 +20,13 @@
|
|
|
opacity: 0.6;
|
|
|
}
|
|
|
.keysexplain{
|
|
|
- position: absolute;
|
|
|
+ position: fixed;
|
|
|
+ height: .8rem;
|
|
|
+ background: rgba(245,244,249,1);
|
|
|
+ width: 100%;
|
|
|
font-size: .3rem;
|
|
|
- top: .18rem;
|
|
|
- margin-left: .3rem;
|
|
|
+ padding-top: .18rem;
|
|
|
+ padding-left: .3rem;
|
|
|
color: #888;
|
|
|
}
|
|
|
.classifyKeysShow{
|
|
@@ -44,6 +47,8 @@
|
|
|
line-height: 1rem;
|
|
|
color:#FFFFFF;
|
|
|
font-size: .32rem;
|
|
|
+ position:fixed;
|
|
|
+ bottom:0px;
|
|
|
}
|
|
|
|
|
|
.classify-show-pop .weui-dialog .weui-dialog__hd {
|
|
@@ -126,7 +131,7 @@
|
|
|
<section class="content">
|
|
|
<!-- 添加关键词 -->
|
|
|
<div class="enter addkeyWord" style="display: none;">
|
|
|
- <input type="text" class="enterOne" placeholder="请输入关键词" maxlength="100" />
|
|
|
+ <input type="text" class="enterOne" placeholder="请输入关键词" maxlength="20" />
|
|
|
<!-- <textarea style="resize:none;" rows="1" class="enterOne" name="" id="" placeholder="请输入关键词" maxlength="100"></textarea> -->
|
|
|
<div class="btnChoose" style="display:none;">
|
|
|
<button onclick="toappendkey(this)">添加 附加词</button>
|
|
@@ -194,7 +199,7 @@
|
|
|
<strong class="weui-dialog__title">关键词分类</strong>
|
|
|
</div>
|
|
|
<div class="weui-dialog__bd">
|
|
|
- <input type="text" class="classify-keyword" placeholder="输入分类名称">
|
|
|
+ <input type="text" class="classify-keyword" maxlength="20" placeholder="输入分类名称">
|
|
|
</div>
|
|
|
<div class="weui-dialog__ft">
|
|
|
<a href="javascript:;" class="dialog__btn dialog__btn_confirm opacity6">确定</a>
|
|
@@ -342,7 +347,7 @@
|
|
|
modifyFlag = true;
|
|
|
kws_count = sessionStorage.kws_count;
|
|
|
$(".kws_count").text(kws_count);
|
|
|
- ///$('.addKeyWord').hide()
|
|
|
+ $('.addKeyWord').hide();
|
|
|
toSetKws();
|
|
|
}else{
|
|
|
//获取用户设置信息类型
|
|
@@ -439,7 +444,7 @@
|
|
|
function toSetKws(){
|
|
|
//分类列表进入
|
|
|
if(kws_index==-1){
|
|
|
- var edhtml = '<input type="text" class="enterOne" placeholder="请输入关键词" maxlength="100">'
|
|
|
+ var edhtml = '<input type="text" class="enterOne" placeholder="请输入关键词" maxlength="20">'
|
|
|
+'<div class="btnChoose">'
|
|
|
if(addition_kws.length>0){
|
|
|
edhtml +='<button onclick="toappendkey(this)">编辑 附加词<i>('+addition_kws.length+')</i></button>'
|
|
@@ -474,7 +479,7 @@
|
|
|
if(kws_tips==undefined){
|
|
|
kws_tips = 0;
|
|
|
}
|
|
|
- if (kws_tips==0&&classify_name.indexOf("未分类")>-1){
|
|
|
+ if (kws_tips==0&&classify_name.indexOf("未分类")>-1&&window.location.search.indexOf("page=2")<0){
|
|
|
//第一次进来分类提示
|
|
|
showMeg();
|
|
|
var param = {};
|
|
@@ -557,7 +562,7 @@
|
|
|
}
|
|
|
//跳转附加词
|
|
|
function toappendkey(th){
|
|
|
- history.replaceState("","","/front/vipsubscribe/toSetKeyWordPage?page=231")
|
|
|
+ history.replaceState("","","/front/vipsubscribe/toSetKeyWordPage?page=242")
|
|
|
if(!$('.enter.addkeyWord').is(':hidden')){
|
|
|
if($('.addkeyWord input.enterOne').val()==""){
|
|
|
return
|
|
@@ -575,7 +580,7 @@
|
|
|
}
|
|
|
//
|
|
|
function tonotkey(th){
|
|
|
- history.replaceState("","","/front/vipsubscribe/toSetKeyWordPage?page=231")
|
|
|
+ history.replaceState("","","/front/vipsubscribe/toSetKeyWordPage?page=242")
|
|
|
if(!$('.enter.addkeyWord').is(':hidden')){
|
|
|
if($('.addkeyWord input.enterOne').val()==""){
|
|
|
return
|
|
@@ -649,6 +654,11 @@
|
|
|
$('.addKeyWord').show();
|
|
|
//
|
|
|
doSessionData();
|
|
|
+ //把kws_name,kws_index,addition_kws,not_kws初始化
|
|
|
+ kws_index = 0;
|
|
|
+ kws_name = "";
|
|
|
+ addition_kws = [];
|
|
|
+ not_kws = [];
|
|
|
}else{
|
|
|
weui.toast('保存出错,稍后再试', {
|
|
|
duration: 2000,
|
|
@@ -717,14 +727,9 @@
|
|
|
a_items[classify_index]["a_key"].splice(kws_index,1);
|
|
|
}
|
|
|
}
|
|
|
- //把kws_name,kws_index,addition_kws,not_kws初始化
|
|
|
- kws_index = 0;
|
|
|
- kws_name = "";
|
|
|
- addition_kws = [];
|
|
|
- not_kws = [];
|
|
|
}
|
|
|
</script>
|
|
|
- <script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/keyWord.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+ <script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/keyWord.js?v={{Msg "seo" "version"}}21"></script>
|
|
|
<script>
|
|
|
// 设置一条空记录,用户第一次进入添加关键词点击确定时候调用
|
|
|
function setEmptyHistory() {
|