瀏覽代碼

fix: 订阅关键词app提醒弹框关闭逻辑

yangfeng 1 年之前
父節點
當前提交
cecf36bf90

+ 6 - 10
src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/js/keyword-info.js

@@ -735,11 +735,7 @@ var vm = new Vue({
                 _this.showToast('保存成功')
                 _this.getPushSetStatus()
                 setTimeout(function () {
-                  if (_this.showPushTip) {
-                    _this.keyInfo.key = ''
-                    _this.keyInfo.matchWay = 1
-                    _this.keyInfo.notKey = ''
-                  } else {
+                  if (!_this.showPushTip) {
                     history.back()
                   }
                 }, 1500)
@@ -752,11 +748,7 @@ var vm = new Vue({
               _this.getPushSetStatus()
               _this.showToast('保存成功')
               setTimeout(function () {
-                if (_this.showPushTip) {
-                  _this.keyInfo.key = ''
-                  _this.keyInfo.matchWay = 1
-                  _this.keyInfo.notKey = ''
-                } else {
+                if (!_this.showPushTip) {
                   history.back()
                 }
               }, 1500)
@@ -1062,6 +1054,10 @@ var vm = new Vue({
           _this.loadingSwitch = false
         }
       })
+    },
+    onCloseDialog: function () {
+      history.back()
+      this.showPushTip = false
     }
   }
 })

+ 1 - 1
src/jfw/modules/app/src/web/templates/vipsubscribe/infoWord.html

@@ -123,7 +123,7 @@
             </div>
         </div>
         <van-dialog class-name="push-dialog" v-model:show="showPushTip" title="" :show-confirm-button="false">
-          <img @click="showPushTip = false" class="dialog-close" src="/jyapp/vipsubscribe/image/dialog-close.png" alt="">
+          <img @click="onCloseDialog" class="dialog-close" src="/jyapp/vipsubscribe/image/dialog-close.png" alt="">
           <div class="dialog-header">
             <h2 class="dialog-title">开启APP提醒</h2>
           </div>