wangshan 5 жил өмнө
parent
commit
fd4c07bd19

+ 6 - 2
src/web/templates/weixin/vipsubscribe/keyWord.html

@@ -232,9 +232,11 @@
         weui.loading();
         setTimeout(function(){
             weui.loading().hide();
-            if(history.state){
+            if(window.location.search.indexOf("page=1")>-1){
+				history.replaceState("{id:1}","","/front/vipsubscribe/toSetKeyWordPage")
+            }else if(history.state){
                 window.history.go(-1)
-            }
+			}
         },500)
         var a_items = [];//全部数据
         var classify_name = "";//分类名称
@@ -493,6 +495,7 @@
         }
         //跳转附加词
         function toappendkey(th){
+			history.replaceState("","","/front/vipsubscribe/toSetKeyWordPage?page=1")
             if(!$('.enter.addkeyWord').is(':hidden')){
                 if($('.addkeyWord input.enterOne').val()==""){
                     return
@@ -510,6 +513,7 @@
         }
         //
         function tonotkey(th){
+			history.replaceState("","","/front/vipsubscribe/toSetKeyWordPage?page=1")
             if(!$('.enter.addkeyWord').is(':hidden')){
                 if($('.addkeyWord input.enterOne').val()==""){
                     return