|
@@ -311,15 +311,7 @@
|
|
|
$('.classify-show-pop .dialog__btn_confirm').on('click', function() {
|
|
|
$('.classify-show-pop').hide();
|
|
|
setTimeout(function(){
|
|
|
- // 如果是苹果手机,打开时候要设置top
|
|
|
- var agent = navigator.userAgent.toLowerCase();
|
|
|
- var dialog = $('.classify-edit-pop .weui-dialog')
|
|
|
- if( /iphone|ipod|ipad|ios/.test(agent) ){
|
|
|
- dialog.css({ 'top': '30%' })
|
|
|
- } else {
|
|
|
- dialog.css({ 'top': '50%' })
|
|
|
- }
|
|
|
- $('.classify-edit-pop').show();
|
|
|
+ modalOne();
|
|
|
},200)
|
|
|
})
|
|
|
// 关键词分类 - 取消按钮点击事件
|
|
@@ -728,6 +720,23 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ //
|
|
|
+ function modalOne(){
|
|
|
+ // 如果是苹果手机,打开时候要设置top
|
|
|
+ var agent = navigator.userAgent.toLowerCase();
|
|
|
+ var dialog = $('.classify-edit-pop .weui-dialog')
|
|
|
+ if( /iphone|ipod|ipad|ios/.test(agent) ){
|
|
|
+ dialog.css({ 'top': '30%' })
|
|
|
+ } else {
|
|
|
+ dialog.css({ 'top': '50%' })
|
|
|
+ }
|
|
|
+ $('.classify-edit-pop').show()
|
|
|
+ var currentClassifyName = $(".classify").find('.classify-detail').text()
|
|
|
+ if(currentClassifyName.indexOf("未分类")>-1){
|
|
|
+ currentClassifyName = ""
|
|
|
+ }
|
|
|
+ $('input.classify-keyword').val(currentClassifyName).focus()
|
|
|
+ }
|
|
|
</script>
|
|
|
<script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/keyWord.js?v={{Msg "seo" "version"}}21"></script>
|
|
|
<script>
|
|
@@ -770,6 +779,9 @@
|
|
|
$(".enter.addkeyWord").find("input").val("");
|
|
|
$(".enter.addkeyWord").show();
|
|
|
$(".add-keyword-container .addNewKeyword").hide();
|
|
|
+ setTimeout(function(){
|
|
|
+ modalOne();
|
|
|
+ },200)
|
|
|
})
|
|
|
// 通过判断是那个隐藏来判断是添加关键词还是添加新分类
|
|
|
$(".addNewKeyword i").on('click', function () {
|