|
@@ -6,12 +6,12 @@
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
<title>关键词</title>
|
|
|
- <link rel="stylesheet" href="/jyapp/wx_dataExport/css/base.css?v={{Msg "seo" "version"}}">
|
|
|
- <link rel="stylesheet" href="/jyapp/wx_dataExport/iconfont/iconfont.css?v={{Msg "seo" "version"}}">
|
|
|
- <link rel="stylesheet" href="/jyapp/wx_dataExport/css/weui.min.css?v={{Msg "seo" "version"}}">
|
|
|
- <link rel="stylesheet" href="/jyapp/wx_dataExport/css/keyWord.css?v={{Msg "seo" "version"}}">
|
|
|
- <script src="/jyapp/wx_dataExport/js/rem.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- <script src="/jyapp/js/jquery.js"></script>
|
|
|
+ <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/jyapp/wx_dataExport/css/base.css?v={{Msg "seo" "version"}}">
|
|
|
+ <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/jyapp/wx_dataExport/iconfont/iconfont.css?v={{Msg "seo" "version"}}">
|
|
|
+ <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/jyapp/wx_dataExport/css/weui.min.css?v={{Msg "seo" "version"}}">
|
|
|
+ <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/jyapp/wx_dataExport/css/keyWord.css?v={{Msg "seo" "version"}}">
|
|
|
+ <script src="{{Msg "seo" "cdn"}}/jyapp/wx_dataExport/js/rem.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+ <script src="{{Msg "seo" "cdn"}}/jyapp/js/jquery.js"></script>
|
|
|
</head>
|
|
|
<style>
|
|
|
.keyWord .addKeyWord {
|
|
@@ -38,6 +38,9 @@
|
|
|
body{
|
|
|
background: rgba(245,244,249,1)!important;
|
|
|
}
|
|
|
+ .keyWord .enter .btn .save {
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
</style>
|
|
|
<body>
|
|
|
<div class="app-layout-header">
|
|
@@ -53,7 +56,8 @@
|
|
|
<button class="addExclusion" disabled>添加 排除词</button>
|
|
|
</div>
|
|
|
<div class="btn">
|
|
|
- <button disabled>确认</button>
|
|
|
+ <button class="save" disabled>确认</button>
|
|
|
+ <button class="close">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -106,9 +110,9 @@
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <script src="/wx_dataExport/js/zepto.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- <script src="/wx_dataExport/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- <script src="/wx_dataExport/js/keyWord.js?v={{Msg "seo" "version"}}12"></script>
|
|
|
+ <script src="{{Msg "seo" "cdn"}}/jyapp/wx_dataExport/js/zepto.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+ <script src="{{Msg "seo" "cdn"}}/jyapp/wx_dataExport/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+ <script src="{{Msg "seo" "cdn"}}/jyapp/wx_dataExport/js/keyWord.js?v={{Msg "seo" "version"}}13"></script>
|
|
|
<script>
|
|
|
var keyWordArr = [];
|
|
|
if(localStorage.keyWord !== "" && localStorage.keyWord !== undefined){
|
|
@@ -120,115 +124,105 @@
|
|
|
var exclude = keyWordArr[i].exclude;
|
|
|
if(append !== undefined && exclude === undefined){
|
|
|
keyWordHtml += `
|
|
|
- <li>
|
|
|
- <div class="one">
|
|
|
- <div>
|
|
|
- <span>
|
|
|
- <strong> 关键词:</strong>
|
|
|
- <p class="key">${ keyWordArr[i].keyWord }</p>
|
|
|
- </span>
|
|
|
- <span>
|
|
|
- <strong> 附加词:</strong>
|
|
|
- <p class="addition">${ append }</p>
|
|
|
- </span>
|
|
|
+ <li>
|
|
|
+ <div class="one">
|
|
|
+ <div>
|
|
|
+ <span>
|
|
|
+ <strong> 关键词:</strong>
|
|
|
+ <p class="key">${ keyWordArr[i].keyWord }</p>
|
|
|
+ </span>
|
|
|
+ <span>
|
|
|
+ <strong> 附加词:</strong>
|
|
|
+ <p class="addition">${ append }</p>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <button class="editKeyWord"><i class="iconfont icon-xiugai"></i> 修改</button>
|
|
|
</div>
|
|
|
- <button class="editKeyWord"><i class="iconfont icon-xiugai"></i> 修改</button>
|
|
|
- </div>
|
|
|
- <div class="modify">
|
|
|
- <span contentEditable="true">${ keyWordArr[i].keyWord }</span>
|
|
|
- <button class="addAdjunctWord">编辑 附加词</button>
|
|
|
- <button class="addExclusion">添加 排除词</button>
|
|
|
- <button class="deleteKey">删除</button>
|
|
|
- <button class="ascertainKey">确定</button>
|
|
|
- </div>
|
|
|
- </li>`;
|
|
|
+ <div class="modify">
|
|
|
+ <span contentEditable="true">${ keyWordArr[i].keyWord }</span>
|
|
|
+ <button class="addAdjunctWord">编辑 附加词</button>
|
|
|
+ <button class="addExclusion">添加 排除词</button>
|
|
|
+ <button class="deleteKey">删除</button>
|
|
|
+ <button class="ascertainKey">确定</button>
|
|
|
+ </div>
|
|
|
+ </li>`;
|
|
|
}else if(append === undefined && exclude !== undefined){
|
|
|
keyWordHtml += `
|
|
|
- <li>
|
|
|
- <div class="one">
|
|
|
- <div>
|
|
|
- <span>
|
|
|
- <strong> 关键词:</strong>
|
|
|
- <p class="key">${ keyWordArr[i].keyWord }</p>
|
|
|
- </span>
|
|
|
- <span>
|
|
|
- <strong> 排除词:</strong>
|
|
|
- <p class="exclusion">${ exclude }</p>
|
|
|
- </span>
|
|
|
+ <li>
|
|
|
+ <div class="one">
|
|
|
+ <div>
|
|
|
+ <span>
|
|
|
+ <strong> 关键词:</strong>
|
|
|
+ <p class="key">${ keyWordArr[i].keyWord }</p>
|
|
|
+ </span>
|
|
|
+ <span>
|
|
|
+ <strong> 排除词:</strong>
|
|
|
+ <p class="exclusion">${ exclude }</p>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <button class="editKeyWord"><i class="iconfont icon-xiugai"></i> 修改</button>
|
|
|
</div>
|
|
|
- <button class="editKeyWord"><i class="iconfont icon-xiugai"></i> 修改</button>
|
|
|
- </div>
|
|
|
- <div class="modify">
|
|
|
- <span contentEditable="true">${ keyWordArr[i].keyWord }</span>
|
|
|
- <button class="addAdjunctWord">编辑 附加词</button>
|
|
|
- <button class="addExclusion">添加 排除词</button>
|
|
|
- <button class="deleteKey">删除</button>
|
|
|
- <button class="ascertainKey">确定</button>
|
|
|
- </div>
|
|
|
- </li>`;
|
|
|
+ <div class="modify">
|
|
|
+ <span contentEditable="true">${ keyWordArr[i].keyWord }</span>
|
|
|
+ <button class="addAdjunctWord">编辑 附加词</button>
|
|
|
+ <button class="addExclusion">添加 排除词</button>
|
|
|
+ <button class="deleteKey">删除</button>
|
|
|
+ <button class="ascertainKey">确定</button>
|
|
|
+ </div>
|
|
|
+ </li>`;
|
|
|
}else if(append !== undefined && exclude !== undefined){
|
|
|
keyWordHtml += `
|
|
|
- <li>
|
|
|
- <div class="one">
|
|
|
- <div>
|
|
|
- <span>
|
|
|
- <strong> 关键词:</strong>
|
|
|
- <p class="key">${ keyWordArr[i].keyWord }</p>
|
|
|
- </span>
|
|
|
- <span>
|
|
|
- <strong> 附加词:</strong>
|
|
|
- <p class="addition">${ append }</p>
|
|
|
- </span>
|
|
|
- <span>
|
|
|
- <strong> 排除词:</strong>
|
|
|
- <p class="exclusion">${ exclude }</p>
|
|
|
- </span>
|
|
|
+ <li>
|
|
|
+ <div class="one">
|
|
|
+ <div>
|
|
|
+ <span>
|
|
|
+ <strong> 关键词:</strong>
|
|
|
+ <p class="key">${ keyWordArr[i].keyWord }</p>
|
|
|
+ </span>
|
|
|
+ <span>
|
|
|
+ <strong> 附加词:</strong>
|
|
|
+ <p class="addition">${ append }</p>
|
|
|
+ </span>
|
|
|
+ <span>
|
|
|
+ <strong> 排除词:</strong>
|
|
|
+ <p class="exclusion">${ exclude }</p>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <button class="editKeyWord"><i class="iconfont icon-xiugai"></i> 修改</button>
|
|
|
</div>
|
|
|
- <button class="editKeyWord"><i class="iconfont icon-xiugai"></i> 修改</button>
|
|
|
- </div>
|
|
|
- <div class="modify">
|
|
|
- <span contentEditable="true">${ keyWordArr[i].keyWord }</span>
|
|
|
- <button class="addAdjunctWord">编辑 附加词</button>
|
|
|
- <button class="addExclusion">添加 排除词</button>
|
|
|
- <button class="deleteKey">删除</button>
|
|
|
- <button class="ascertainKey">确定</button>
|
|
|
- </div>
|
|
|
- </li>`;
|
|
|
+ <div class="modify">
|
|
|
+ <span contentEditable="true">${ keyWordArr[i].keyWord }</span>
|
|
|
+ <button class="addAdjunctWord">编辑 附加词</button>
|
|
|
+ <button class="addExclusion">添加 排除词</button>
|
|
|
+ <button class="deleteKey">删除</button>
|
|
|
+ <button class="ascertainKey">确定</button>
|
|
|
+ </div>
|
|
|
+ </li>`;
|
|
|
}else if(append === undefined && exclude === undefined){
|
|
|
keyWordHtml += `
|
|
|
- <li>
|
|
|
- <div class="one">
|
|
|
- <div>
|
|
|
- <span>
|
|
|
- <strong> 关键词:</strong>
|
|
|
- <p class="key">${ keyWordArr[i].keyWord }</p>
|
|
|
- </span>
|
|
|
+ <li>
|
|
|
+ <div class="one">
|
|
|
+ <div>
|
|
|
+ <span>
|
|
|
+ <strong> 关键词:</strong>
|
|
|
+ <p class="key">${ keyWordArr[i].keyWord }</p>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <button class="editKeyWord"><i class="iconfont icon-xiugai"></i> 修改</button>
|
|
|
</div>
|
|
|
- <button class="editKeyWord"><i class="iconfont icon-xiugai"></i> 修改</button>
|
|
|
- </div>
|
|
|
- <div class="modify">
|
|
|
- <span contentEditable="true">${ keyWordArr[i].keyWord }</span>
|
|
|
- <button class="addAdjunctWord">编辑 附加词</button>
|
|
|
- <button class="addExclusion">添加 排除词</button>
|
|
|
- <button class="deleteKey">删除</button>
|
|
|
- <button class="ascertainKey">确定</button>
|
|
|
- </div>
|
|
|
- </li>`;
|
|
|
+ <div class="modify">
|
|
|
+ <span contentEditable="true">${ keyWordArr[i].keyWord }</span>
|
|
|
+ <button class="addAdjunctWord">编辑 附加词</button>
|
|
|
+ <button class="addExclusion">添加 排除词</button>
|
|
|
+ <button class="deleteKey">删除</button>
|
|
|
+ <button class="ascertainKey">确定</button>
|
|
|
+ </div>
|
|
|
+ </li>`;
|
|
|
}
|
|
|
keyWordHtml = keyWordHtml.replace(/,/g, " ");
|
|
|
}
|
|
|
$('.showKeyWord > ul').prepend(keyWordHtml);
|
|
|
//
|
|
|
- $(".showKeyWord").on('click', '.addAdjunctWord',function(e){
|
|
|
- var keyWord = $(this).parent().prev().find('.key').text();
|
|
|
- sessionStorage.removeItem("keyWord");
|
|
|
- window.location.href = "/jyapp/front/dataExport/appended?keyWord="+keyWord;
|
|
|
- });
|
|
|
- $(".showKeyWord").on('click', '.addExclusion',function(e){
|
|
|
- var keyWord = $(this).parent().prev().find('.key').text();
|
|
|
- sessionStorage.removeItem("keyWord");
|
|
|
- window.location.href = "/jyapp/front/dataExport/exclude?keyWord="+keyWord;
|
|
|
- });
|
|
|
}
|
|
|
//
|
|
|
if($(".enterOne").val()!==""){
|
|
@@ -243,13 +237,30 @@
|
|
|
buttonDOM.prop("disabled", true);
|
|
|
var obj = [{"keyWord":keyWord}];
|
|
|
sessionStorage.keyWord = JSON.stringify(obj);
|
|
|
- window.location.href = "/front/wx_dataExport/appended?keyWord="+keyWord;
|
|
|
+ window.location.href = "/jyapp/front/dataExport/appendedInput?keyWord="+keyWord;
|
|
|
});
|
|
|
$(".exclude").on('click', function () {
|
|
|
var keyWord = $(this).parent().prev().val();
|
|
|
var buttonDOM = $('.enter.addkeyWord .btnChoose .exclude');
|
|
|
buttonDOM.prop("disabled", true);
|
|
|
- window.location.href = "/front/wx_dataExport/exclude?keyWord="+keyWord;
|
|
|
+ var obj = [{"keyWord":keyWord}];
|
|
|
+ sessionStorage.keyWord = JSON.stringify(obj);
|
|
|
+ window.location.href = "/jyapp/front/dataExport/excludeInput?keyWord="+keyWord;
|
|
|
+ });
|
|
|
+ //
|
|
|
+ $(".showKeyWord").on('click', '.addAdjunctWord',function(e){
|
|
|
+ var keyWord = $(this).parent().prev().find('.key').text();
|
|
|
+ sessionStorage.removeItem("keyWord");
|
|
|
+ window.location.href = "/jyapp/front/dataExport/appended?keyWord="+keyWord;
|
|
|
+ });
|
|
|
+ $(".showKeyWord").on('click', '.addExclusion',function(e){
|
|
|
+ var keyWord = $(this).parent().prev().find('.key').text();
|
|
|
+ sessionStorage.removeItem("keyWord");
|
|
|
+ window.location.href = "/jyapp/front/dataExport/exclude?keyWord="+keyWord;
|
|
|
+ });
|
|
|
+
|
|
|
+ $('.addkeyWord .btn .close').on('click', function () {
|
|
|
+ window.history.back();
|
|
|
});
|
|
|
|
|
|
|